mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
arm64: frace: use asm EXPORT_SYMBOL()
For a while now it's been possible to use EXPORT_SYMBOL() in assembly files, which allows us to place exports immediately after assembly functions, as we do for C functions. As a step towards removing arm64ksyms.c, let's move the ftrace exports to the assembly files the functions are defined in. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Will Deacon <[email protected]>
This commit is contained in:
1 parent
ac0e8c72b0
commit
dbd3196299
2 files changed
+4
-5
No files matched your search
@@ -28,8 +28,3 @@
|
|||||||
|
|
||||||
#include <asm/checksum.h>
|
#include <asm/checksum.h>
|
||||||
|
|
||||||
#ifdef CONFIG_FUNCTION_TRACER
|
|
||||||
EXPORT_SYMBOL(_mcount);
|
|
||||||
NOKPROBE_SYMBOL(_mcount);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -120,6 +120,8 @@ skip_ftrace_call: // }
|
|||||||
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
|
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
|
||||||
mcount_exit
|
mcount_exit
|
||||||
ENDPROC(_mcount)
|
ENDPROC(_mcount)
|
||||||
|
EXPORT_SYMBOL(_mcount)
|
||||||
|
NOKPROBE(_mcount)
|
||||||
|
|
||||||
#else /* CONFIG_DYNAMIC_FTRACE */
|
#else /* CONFIG_DYNAMIC_FTRACE */
|
||||||
/*
|
/*
|
||||||
@@ -131,6 +133,8 @@ ENDPROC(_mcount)
|
|||||||
ENTRY(_mcount)
|
ENTRY(_mcount)
|
||||||
ret
|
ret
|
||||||
ENDPROC(_mcount)
|
ENDPROC(_mcount)
|
||||||
|
EXPORT_SYMBOL(_mcount)
|
||||||
|
NOKPROBE(_mcount)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* void ftrace_caller(unsigned long return_address)
|
* void ftrace_caller(unsigned long return_address)
|
||||||
|
|||||||
Reference in new issue
Block a user