From: Peter Kjellstrom <cap@nsc.liu.se>
To: linux-kernel@vger.kernel.org
Cc: trivial@kernel.org, levon@movementarian.org
Subject: [PATCH 1/1] oprofile: add a warning for unsuppored CPUs
Date: Wed, 29 Nov 2006 19:54:55 +0100 [thread overview]
Message-ID: <200611291954.57548.cap@nsc.liu.se> (raw)
From: Peter Kjellstrom <cap@nsc.liu.se>
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 <cap@nsc.liu.se>
---
--- a/arch/i386/oprofile/init.c
+++ b/arch/i386/oprofile/init.c
@@ -29,6 +29,8 @@ int __init oprofile_arch_init(struct opr
#ifdef CONFIG_X86_LOCAL_APIC
ret = op_nmi_init(ops);
+ if (ret == -ENODEV)
+ printk(KERN_INFO "oprofile: hardware counters unavailable, unknown cpu.\n");
#endif
#ifdef CONFIG_X86_IO_APIC
if (ret < 0)
reply other threads:[~2006-11-29 18:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200611291954.57548.cap@nsc.liu.se \
--to=cap@nsc.liu.se \
--cc=levon@movementarian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®