[PATCH 4/4] powerpc/perf: Use perf_instruction_pointer in callchains

Anton Blanchard anton at samba.org
Wed Jun 27 13:59:28 EST 2012


Hi Scott,

> Won't this break core-fsl-emb, which doesn't define
> perf_instruction_pointer()?

It links ok for me. You should get the default version:

#ifndef perf_misc_flags
# define perf_misc_flags(regs) \
                (user_mode(regs) ? PERF_RECORD_MISC_USER : PERF_RECORD_MISC_KERNEL)
# define perf_instruction_pointer(regs) instruction_pointer(regs)
#endif

Anton


More information about the Linuxppc-dev mailing list