public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Re: q-tools OOPS: Fixed perfmon.
@ 2003-12-09  0:17 Peter Chubb
  2003-12-09  1:24 ` Matthew Wilcox
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Peter Chubb @ 2003-12-09  0:17 UTC (permalink / raw)
  To: linux-ia64

>>>>> "Stephane" = Stephane Eranian <eranian@hpl.hp.com> writes:

Stephane> I don't think that perfmon-2 support CONFIG_PREEMPT. Try
Stephane> without it.

Here's a  fix for non-preemption safety in perfmon.c.

I haven't tried it while running a preemption stress test, but this
allows q-syscollect to work.

=== arch/ia64/kernel/perfmon.c 1.67 vs edited ==--- 1.67/arch/ia64/kernel/perfmon.c   Tue Oct 28 17:36:50 2003
+++ edited/arch/ia64/kernel/perfmon.c Tue Dec  9 10:55:58 2003
@@ -5475,7 +5475,7 @@
	int this_cpu;
	int ret;
 
-	this_cpu = smp_processor_id();
+	this_cpu = get_cpu();
	min      = pfm_stats[this_cpu].pfm_ovfl_intr_cycles_min;
	max      = pfm_stats[this_cpu].pfm_ovfl_intr_cycles_max;
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-12-09 21:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-09  0:17 q-tools OOPS: Fixed perfmon Peter Chubb
2003-12-09  1:24 ` Matthew Wilcox
2003-12-09  1:57 ` Stephane Eranian
2003-12-09  3:22 ` David Mosberger
2003-12-09 13:46 ` Martin Hicks
2003-12-09 17:26 ` David Mosberger
2003-12-09 21:54 ` Stephane Eranian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox