lkml.org 
[lkml]   [2009]   [Oct]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 19 Oct 2009 11:42:26 +1100
FromAnton Blanchard <>
SubjectRe: [PATCH 3/3] powerpc perf_event: Add alignment-faults and emulation-faults software events

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


\
 
 \ /
  Last update: 2009-10-19 02:47    [from the cache]
©2003-2009