diff options
author | 2024-07-20 22:41:07 +0800 | |
---|---|---|
committer | 2024-07-20 22:41:07 +0800 | |
commit | 998b17d4440b8559a8bf4926e86f493101995519 (patch) | |
tree | 5dd341a5700e6256a737ea63722d7bfdebcfe8a1 /scripts/generate_rust_analyzer.py | |
parent | LoongArch: Check TIF_LOAD_WATCH to enable user space watchpoint (diff) | |
download | linux-rng-998b17d4440b8559a8bf4926e86f493101995519.tar.xz linux-rng-998b17d4440b8559a8bf4926e86f493101995519.zip |
LoongArch: Make the users of larch_insn_gen_break() constant
LoongArch defines UPROBE_SWBP_INSN as a function call and this breaks
arch_uprobe_trampoline() which uses it to initialize a static variable.
Add the new "__builtin_constant_p" helper, __emit_break(), and redefine
the current users of larch_insn_gen_break() to use it.
Fixes: ff474a78cef5 ("uprobe: Add uretprobe syscall to speed up return probe")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/all/20240614174822.GA1185149@thelio-3990X/
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions