From: Anton Blanchard <anton@samba.org>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org,
linuxppc-dev@ozlabs.org, paulus@samba.org, mingo@elte.hu
Subject: Re: [PATCH 3/3] powerpc perf_event: Add alignment-faults and emulation-faults software events
Date: Mon, 19 Oct 2009 11:42:26 +1100 [thread overview]
Message-ID: <20091019004226.GT4808@kryten> (raw)
In-Reply-To: <1255909805.4192.5.camel@concordia>
Hi,
> > +#define PPC_WARN_ALIGNMENT(type, regs) \
> > + do { \
> > + perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, \
> > + 1, 0, regs, regs->dar); \
> > + __PPC_WARN_EMULATED(type); \
> > + } while (0)
>
> Does that work with perfxxx configured off?
Yeah, perf_event.h defines an empty version if its configured off:
static inline void
perf_sw_event(u32 event_id, u64 nr, int nmi,
struct pt_regs *regs, u64 addr) { }
Anton
WARNING: multiple messages have this Message-ID (diff)
From: Anton Blanchard <anton@samba.org>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: benh@kernel.crashing.org, mingo@elte.hu, paulus@samba.org,
a.p.zijlstra@chello.nl, linuxppc-dev@ozlabs.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] powerpc perf_event: Add alignment-faults and emulation-faults software events
Date: Mon, 19 Oct 2009 11:42:26 +1100 [thread overview]
Message-ID: <20091019004226.GT4808@kryten> (raw)
In-Reply-To: <1255909805.4192.5.camel@concordia>
Hi,
> > +#define PPC_WARN_ALIGNMENT(type, regs) \
> > + do { \
> > + perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, \
> > + 1, 0, regs, regs->dar); \
> > + __PPC_WARN_EMULATED(type); \
> > + } while (0)
>
> Does that work with perfxxx configured off?
Yeah, perf_event.h defines an empty version if its configured off:
static inline void
perf_sw_event(u32 event_id, u64 nr, int nmi,
struct pt_regs *regs, u64 addr) { }
Anton
next prev parent reply other threads:[~2009-10-19 0:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 11:09 [PATCH 1/3] perf_event: Add alignment-faults and emulation-faults software events Anton Blanchard
2009-10-18 11:11 ` [PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED Anton Blanchard
2009-10-18 11:13 ` [PATCH 3/3] powerpc perf_event: Add alignment-faults and emulation-faults software events Anton Blanchard
2009-10-18 23:50 ` Michael Ellerman
2009-10-18 23:50 ` Michael Ellerman
2009-10-19 0:42 ` Anton Blanchard [this message]
2009-10-19 0:42 ` Anton Blanchard
2009-10-19 7:25 ` Ingo Molnar
2009-10-19 7:25 ` Ingo Molnar
2009-10-18 12:37 ` [PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED Stephen Rothwell
2009-10-18 12:37 ` Stephen Rothwell
2009-10-28 4:46 ` Anton Blanchard
2009-10-28 4:46 ` 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=20091019004226.GT4808@kryten \
--to=anton@samba.org \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=michael@ellerman.id.au \
--cc=mingo@elte.hu \
--cc=paulus@samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.