Commit 05fe721
bpf: add kfunc bpf_tracing_is_exit for TRACE_SESSION
If TRACE_SESSION exists, we will use extra 8-bytes in the stack of the
trampoline to store the flags that we needed, and the 8-bytes lie after
the return value, which means ctx[nr_args + 1]. And we will store the
flag "is_exit" to the first bit of it.
Introduce the kfunc bpf_tracing_is_exit(), which is used to tell if it
is fexit currently. Meanwhile, inline it in the verifier.
Signed-off-by: Menglong Dong <[email protected]>
Co-developed-by: Leon Hwang <[email protected]>
Signed-off-by: Leon Hwang <[email protected]>1 parent 4ffdcc3 commit 05fe721
2 files changed
+60
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12293 | 12293 | | |
12294 | 12294 | | |
12295 | 12295 | | |
| 12296 | + | |
12296 | 12297 | | |
12297 | 12298 | | |
12298 | 12299 | | |
| |||
12365 | 12366 | | |
12366 | 12367 | | |
12367 | 12368 | | |
| 12369 | + | |
12368 | 12370 | | |
12369 | 12371 | | |
12370 | 12372 | | |
| |||
12419 | 12421 | | |
12420 | 12422 | | |
12421 | 12423 | | |
12422 | | - | |
| 12424 | + | |
| 12425 | + | |
12423 | 12426 | | |
12424 | 12427 | | |
12425 | 12428 | | |
| |||
22012 | 22015 | | |
22013 | 22016 | | |
22014 | 22017 | | |
| 22018 | + | |
| 22019 | + | |
| 22020 | + | |
| 22021 | + | |
| 22022 | + | |
| 22023 | + | |
| 22024 | + | |
| 22025 | + | |
| 22026 | + | |
| 22027 | + | |
22015 | 22028 | | |
22016 | 22029 | | |
22017 | 22030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3356 | 3356 | | |
3357 | 3357 | | |
3358 | 3358 | | |
3359 | | - | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
3360 | 3380 | | |
3361 | | - | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
3362 | 3405 | | |
3363 | 3406 | | |
3364 | | - | |
| 3407 | + | |
3365 | 3408 | | |
3366 | 3409 | | |
3367 | 3410 | | |
| |||
0 commit comments