projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'trace-v5.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux-2.6-microblaze.git]
/
samples
/
ftrace
/
ftrace-direct.c
diff --git
a/samples/ftrace/ftrace-direct.c
b/samples/ftrace/ftrace-direct.c
index
8b551e5
..
e8f1e44
100644
(file)
--- a/
samples/ftrace/ftrace-direct.c
+++ b/
samples/ftrace/ftrace-direct.c
@@
-16,11
+16,14
@@
extern void my_tramp(void *);
#ifdef CONFIG_X86_64
+#include <asm/ibt.h>
+
asm (
" .pushsection .text, \"ax\", @progbits\n"
" .type my_tramp, @function\n"
" .globl my_tramp\n"
" my_tramp:"
+ ASM_ENDBR
" pushq %rbp\n"
" movq %rsp, %rbp\n"
" pushq %rdi\n"