[PATCH] powerpc: kprobes: invoke handlers directly
Michael Ellerman
mpe at ellerman.id.au
Mon Nov 21 21:24:25 AEDT 2016
"Naveen N. Rao" <naveen.n.rao at linux.vnet.ibm.com> writes:
> +#ifdef CONFIG_KPROBES
> + if (kprobe_post_handler(regs))
> + return;
> +#endif
...
> +#ifdef CONFIG_KPROBES
> + if (kprobe_handler(regs))
> + goto bail;
> +#endif
...
> +#ifdef CONFIG_KPROBES
> + if (kprobe_post_handler(regs))
> + return;
> +#endif
...
> +#ifdef CONFIG_KPROBES
> + if (kprobe_post_handler(regs))
> + return;
> +#endif
> +
Sorry too many ifdefs.
Can you please add empty static inline versions for CONFIG_KPROBES=n
that always return false. The compiler will be smart enough to elide
them entirely.
cheers
More information about the Linuxppc-dev
mailing list