[lkml]   [2006]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 1/1] oprofile: add a warning for unsuppored CPUs
From: Peter Kjellstrom <>

Oprofile first tries to setup hardware counter based profiling. If this fails
it falls back to timer mode without any clues as to what went wrong. This
patch adds a warning when no supported CPU is found (typically too new CPU
and/or too old kernel).

Signed-off-by: Peter Kjellstrom <>


--- a/arch/i386/oprofile/init.c
+++ b/arch/i386/oprofile/init.c
@@ -29,6 +29,8 @@ int __init oprofile_arch_init(struct opr

ret = op_nmi_init(ops);
+ if (ret == -ENODEV)
+ printk(KERN_INFO "oprofile: hardware counters unavailable, unknown cpu.\n");
if (ret < 0)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2006-11-29 19:57    [W:0.025 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site