Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pseries: Don't trace hcall tracing wrapper

This doesn't seem very useful to trace before the recursion check, even
if the ftrace code has any recursion checks of its own. Be on the safe
side and don't trace the hcall trace wrappers.

Reported-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210508101455.1578318-3-npiggin@gmail.com

authored by

Nicholas Piggin and committed by
Michael Ellerman
a3f1a39a 2c8c89b9

+2 -2
+2 -2
arch/powerpc/platforms/pseries/lpar.c
··· 1835 1835 static DEFINE_PER_CPU(unsigned int, hcall_trace_depth); 1836 1836 1837 1837 1838 - void __trace_hcall_entry(unsigned long opcode, unsigned long *args) 1838 + notrace void __trace_hcall_entry(unsigned long opcode, unsigned long *args) 1839 1839 { 1840 1840 unsigned long flags; 1841 1841 unsigned int *depth; ··· 1863 1863 local_irq_restore(flags); 1864 1864 } 1865 1865 1866 - void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) 1866 + notrace void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) 1867 1867 { 1868 1868 unsigned long flags; 1869 1869 unsigned int *depth;