]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/ftrace: add FTRACE_GEN_NOP_ASM macro
authorSven Schnelle <svens@linux.ibm.com>
Fri, 24 Sep 2021 13:03:07 +0000 (15:03 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 4 Oct 2021 07:49:37 +0000 (09:49 +0200)
commitf768a20c0a6e5f2396b9ab99bbbfd39d91228df9
treed296e5171468dbb3b150c2d250f104dd7e4d8cb1
parent54235d5cfea05f2891dca71d51d7ab097b53d22b
s390/ftrace: add FTRACE_GEN_NOP_ASM macro

FTRACE_GEN_NOP_ASM(name) can be used to generate assembly functions with
the required information added to allow tracing via kprobes/ftrace. It
adds the nop instruction which will be patched by ftrace later. If the
compiler supports -mnop-mcount it will also add an entry to the
__mcount_loc section.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/ftrace.h