From: li nux <lnxluv@yahoo.com>
To: Baruch Even <baruch@ev-en.org>
Cc: linux <linux-kernel@vger.kernel.org>
Subject: Re: oprofile: enabling cpu events
Date: Sun, 8 May 2005 00:20:38 -0700 (PDT) [thread overview]
Message-ID: <20050508072038.24894.qmail@web60512.mail.yahoo.com> (raw)
In-Reply-To: <427CDA00.9040203@ev-en.org>
Thanks Baruch,
But, I am still hitting the same issue.
I am using SuSE 2.6.5, but oprofile code looks
similar.
so i manually made that small change from if
(cpu_model > 3) to if (cpu_model > 100), and did a
make modules and make modules_install.
Then inserted the fresh oprofile module.
# opcontrol --setup --event=CPU_CLK_UNHALTED
You cannot specify any performance counter events
because OProfile is in timer mode.
--- Baruch Even <baruch@ev-en.org> wrote:
> The patch that worked for me against 2.6.6 is
> attached.
>
> Baruch
> > arch/i386/oprofile/nmi_int.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> Index: 2.6.6/arch/i386/oprofile/nmi_int.c
>
===================================================================
> --- 2.6.6.orig/arch/i386/oprofile/nmi_int.c
> +++ 2.6.6/arch/i386/oprofile/nmi_int.c
> @@ -313,7 +313,7 @@ static int __init p4_init(void)
> {
> __u8 cpu_model = current_cpu_data.x86_model;
>
> - if (cpu_model > 3)
> + if (cpu_model > 100)
> return 0;
>
> #ifndef CONFIG_SMP
>
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
next prev parent reply other threads:[~2005-05-08 7:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-07 12:39 li nux
2005-05-07 15:08 ` Baruch Even
2005-05-08 7:20 ` li nux [this message]
2005-05-08 12:29 ` Philippe Elie
2005-05-08 14:20 ` Baruch Even
2005-05-15 11:54 li nux
2005-05-15 13:35 ` John Levon
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=20050508072038.24894.qmail@web60512.mail.yahoo.com \
--to=lnxluv@yahoo.com \
--cc=baruch@ev-en.org \
--cc=linux-kernel@vger.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®