From: Robert Richter <rric@kernel.org>
To: Anton Blanchard <anton@samba.org>
Cc: x86@kernel.org, mingo@redhat.com, paulus@samba.org,
hpa@zytor.com, oprofile-list@lists.sf.net, tglx@linutronix.de,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 1/2] oprofile: Add HAVE_OPROFILE_NMI_TIMER
Date: Wed, 21 Jan 2015 19:20:15 +0100 [thread overview]
Message-ID: <20150121182015.GA4201@rric.localhost> (raw)
In-Reply-To: <20150121225408.33194932@kryten>
On 21.01.15 22:54:08, Anton Blanchard wrote:
> HAVE_PERF_EVENTS_NMI is used for two things - the oprofile NMI timer
> and the hard lockup detector.
>
> Create HAVE_OPROFILE_NMI_TIMER so an architecture can select them
> separately. On ppc64 we want to add the hard lockup detector, but not
> the oprofile NMI timer fallback.
No, this option should depend on HAVE_PERF_EVENTS_NMI. It uses a perf
counter internally, so if perf supports some sort of 'soft' nmi,
oprofile nmi timer would also work well with it.
I also don't see a reason, why you don't want to support oprofile NMI
timer. Is there any?
> @@ -30,9 +30,12 @@ config OPROFILE_EVENT_MULTIPLEX
> config OPROFILE_NMI_TIMER
> def_bool y
> - depends on PERF_EVENTS && HAVE_PERF_EVENTS_NMI
> + depends on PERF_EVENTS && HAVE_OPROFILE_NMI_TIMER
I understand that you might want to disable NMI_TIMER, though I really
don't see a reason if oprofile is enabled and can support it.
If you don't want NMI_TIMER being enabled, then (order of preference):
* disable it with oprofile (OPROFILE dependency needed for
NMI_TIMER), or
* make the default value for NMI_TIMER !PPC64 and add a prompt to let
the user select/deselect it, or
* disable OPROFILE_NMI_TIMER by adding a !PPC64 dependency.
-Robert
next prev parent reply other threads:[~2015-01-21 18:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 3:46 [PATCH 1/2] oprofile: Add HAVE_OPROFILE_NMI_TIMER Anton Blanchard
2015-01-21 3:46 ` [PATCH 2/2] powerpc: Add ppc64 hard lockup detector support Anton Blanchard
2015-01-21 11:54 ` [PATCH 1/2] oprofile: Add HAVE_OPROFILE_NMI_TIMER Anton Blanchard
2015-01-21 18:20 ` Robert Richter [this message]
2015-01-22 11:31 ` Anton Blanchard
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=20150121182015.GA4201@rric.localhost \
--to=rric@kernel.org \
--cc=anton@samba.org \
--cc=hpa@zytor.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mingo@redhat.com \
--cc=oprofile-list@lists.sf.net \
--cc=paulus@samba.org \
--cc=tglx@linutronix.de \
--cc=x86@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;
as well as URLs for NNTP newsgroup(s).