Commit c3559f2
bpf: add kfunc bpf_fsession_cookie for TRACING SESSION
Add the kfunc bpf_fsession_cookie(), which is similar to
bpf_session_cookie() and return the address of the session cookie. The
address of the session cookie is stored after session flags, which means
ctx[nr_args + 2].
Inline this kfunc in the verifier too.
Signed-off-by: Menglong Dong <[email protected]>1 parent 05fe721 commit c3559f2
3 files changed
+29
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
| 1739 | + | |
1739 | 1740 | | |
1740 | 1741 | | |
1741 | 1742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12294 | 12294 | | |
12295 | 12295 | | |
12296 | 12296 | | |
| 12297 | + | |
12297 | 12298 | | |
12298 | 12299 | | |
12299 | 12300 | | |
| |||
12367 | 12368 | | |
12368 | 12369 | | |
12369 | 12370 | | |
| 12371 | + | |
12370 | 12372 | | |
12371 | 12373 | | |
12372 | 12374 | | |
| |||
12422 | 12424 | | |
12423 | 12425 | | |
12424 | 12426 | | |
12425 | | - | |
| 12427 | + | |
| 12428 | + | |
12426 | 12429 | | |
12427 | 12430 | | |
12428 | 12431 | | |
| |||
13915 | 13918 | | |
13916 | 13919 | | |
13917 | 13920 | | |
13918 | | - | |
| 13921 | + | |
| 13922 | + | |
13919 | 13923 | | |
13920 | 13924 | | |
13921 | 13925 | | |
| |||
14196 | 14200 | | |
14197 | 14201 | | |
14198 | 14202 | | |
| 14203 | + | |
| 14204 | + | |
| 14205 | + | |
14199 | 14206 | | |
14200 | 14207 | | |
14201 | 14208 | | |
| |||
22025 | 22032 | | |
22026 | 22033 | | |
22027 | 22034 | | |
| 22035 | + | |
| 22036 | + | |
| 22037 | + | |
| 22038 | + | |
| 22039 | + | |
| 22040 | + | |
| 22041 | + | |
| 22042 | + | |
| 22043 | + | |
22028 | 22044 | | |
22029 | 22045 | | |
22030 | 22046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3370 | 3370 | | |
3371 | 3371 | | |
3372 | 3372 | | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
3373 | 3382 | | |
3374 | 3383 | | |
3375 | 3384 | | |
3376 | 3385 | | |
| 3386 | + | |
3377 | 3387 | | |
3378 | 3388 | | |
3379 | 3389 | | |
| |||
0 commit comments