aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaga Chumbalkar <nagananda.chumbalkar@hp.com>2010-02-23 12:14:58 -0500
committerRobert Richter <robert.richter@amd.com>2010-02-26 09:14:34 -0500
commit8588d1067147e14d1dd521fbadd1d2564f8cc794 (patch)
tree2b2f5bba9c3f8547ac86a1444f8582c3834b4ea8
parent98a2e73a0690b3610f049a64154d8145e5771713 (diff)
oprofile/x86: add comment to counter-in-use warning
Currently, oprofile fails silently on platforms where a non-OS entity such as the system firmware "enables" and uses a performance counter. There is a warning in the code for this case. The warning indicates an already running counter. If oprofile doesn't collect data, then try using a different performance counter on your platform to monitor the desired event. Delete the counter from the desired event by editing the /usr/share/oprofile/<cpu_type>/<cpu>/events file. If the event cannot be monitored by any other counter, contact your hardware or BIOS vendor. Cc: Shashi Belur <shashi-kiran.belur@hp.com> Cc: Tony Jones <tonyj@suse.de> Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com> Signed-off-by: Robert Richter <robert.richter@amd.com>
-rw-r--r--arch/x86/oprofile/op_x86_model.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/oprofile/op_x86_model.h b/arch/x86/oprofile/op_x86_model.h
index 59fa2bdb0da3..ff82a755edd4 100644
--- a/arch/x86/oprofile/op_x86_model.h
+++ b/arch/x86/oprofile/op_x86_model.h
@@ -59,6 +59,15 @@ struct op_counter_config;
59 59
60static inline void op_x86_warn_in_use(int counter) 60static inline void op_x86_warn_in_use(int counter)
61{ 61{
62 /*
63 * The warning indicates an already running counter. If
64 * oprofile doesn't collect data, then try using a different
65 * performance counter on your platform to monitor the desired
66 * event. Delete counter #%d from the desired event by editing
67 * the /usr/share/oprofile/%s/<cpu>/events file. If the event
68 * cannot be monitored by any other counter, contact your
69 * hardware or BIOS vendor.
70 */
62 pr_warning("oprofile: counter #%d on cpu #%d may already be used\n", 71 pr_warning("oprofile: counter #%d on cpu #%d may already be used\n",
63 counter, smp_processor_id()); 72 counter, smp_processor_id());
64} 73}