Re: [PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED

2009-10-27 Thread Anton Blanchard
Hi Stephen, I think this last line is not needed? Right you are! Anton -- perf_event wants a separate event for alignment and emulation faults, so create another emulation event. This will make it easy to hook in perf_event at one spot. We pass in regs which will be required for these

[PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED

2009-10-18 Thread Anton Blanchard
perf_event wants a separate event for alignment and emulation faults, so create another PPC_WARN_* define. This will make it easy to hook in perf_event at one spot. We pass in regs which will be required for these events. Signed-off-by: Anton Blanchard an...@samba.org --- Index:

Re: [PATCH 2/3] powerpc: Create PPC_WARN_ALIGNMENT to match PPC_WARN_EMULATED

2009-10-18 Thread Stephen Rothwell
Hi Anton, On Sun, 18 Oct 2009 22:11:26 +1100 Anton Blanchard an...@samba.org wrote: @@ -66,8 +66,12 @@ extern void ppc_warn_emulated_print(cons #else /* !CONFIG_PPC_EMULATED_STATS */ -#define PPC_WARN_EMULATED(type) do { } while (0) +#define __PPC_WARN_EMULATED(type)do { }