Commit d1d7283
LoongArch: BPF: No text_poke() for kernel text
The current implementation of bpf_arch_text_poke() requires 5 nops
at patch site which is not applicable for kernel/module functions.
With CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y, this can be done
by ftrace instead.
See the following commit for details:
* commit b91e014 ("bpf: Make BPF trampoline use register_ftrace_direct() API")
* commit 9cdc3b6 ("LoongArch: ftrace: Add direct call support")
Signed-off-by: Hengqi Chen <[email protected]>1 parent 3ad7a80 commit d1d7283
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
1297 | | - | |
1298 | | - | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1299 | 1302 | | |
1300 | 1303 | | |
1301 | 1304 | | |
| |||
0 commit comments