[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070612183747.GF3457@sequoia.sous-sol.org>
Date: Tue, 12 Jun 2007 11:37:47 -0700
From: Chris Wright <chrisw@...s-sol.org>
To: Stephane Eranian <eranian@....hp.com>
Cc: oprofile-list@...ts.sourceforge.net, wcohen@...hat.com, ak@...e.de,
perfmon@...ali.hpl.hp.com, linux-kernel@...r.kernel.org,
levon@...ementarian.org
Subject: Re: OProfile issues
* Stephane Eranian (eranian@....hp.com) wrote:
> * allocate_msrs() allocates two tables per CPU. One for the
> counters, the other for the eventsel registers. But then
> nmi_setup() copies the cpu_msrs[0] into cpu_msrs[] of all
> other cpus. This operation overrides the cpu_msrs[].counters
> and cpu_msrs[].controls pointers for all CPUs but CPU0.
> But free_msrs() will free the same tables multiple times. This
> causes a kernel dump when you enable certain kernel debugging
> features. The fix is to copy the content of the counters and
> controls array, not the pointers.
This is fixed in 2.6.22-rc4 in commit 0939c17c7bcf1c838bea4445b80a6966809a438f
thanks,
-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists