Commit b2d5fda
bpf: Introduce bpf_in_interrupt kfunc
Filtering pid_tgid is meaningless when the current task is preempted by
an interrupt.
To address this, introduce the bpf_in_interrupt kfunc, which allows BPF
programs to determine whether they are executing in interrupt context.
This enables programs to avoid applying pid_tgid filtering when running
in such contexts.
Signed-off-by: Leon Hwang <[email protected]>1 parent 07f2c0d commit b2d5fda
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3711 | 3711 | | |
3712 | 3712 | | |
3713 | 3713 | | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
3714 | 3722 | | |
3715 | 3723 | | |
3716 | 3724 | | |
| |||
3751 | 3759 | | |
3752 | 3760 | | |
3753 | 3761 | | |
| 3762 | + | |
3754 | 3763 | | |
3755 | 3764 | | |
3756 | 3765 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12259 | 12259 | | |
12260 | 12260 | | |
12261 | 12261 | | |
| 12262 | + | |
12262 | 12263 | | |
12263 | 12264 | | |
12264 | 12265 | | |
| |||
12327 | 12328 | | |
12328 | 12329 | | |
12329 | 12330 | | |
| 12331 | + | |
12330 | 12332 | | |
12331 | 12333 | | |
12332 | 12334 | | |
| |||
21977 | 21979 | | |
21978 | 21980 | | |
21979 | 21981 | | |
| 21982 | + | |
| 21983 | + | |
| 21984 | + | |
| 21985 | + | |
| 21986 | + | |
| 21987 | + | |
| 21988 | + | |
| 21989 | + | |
| 21990 | + | |
21980 | 21991 | | |
21981 | 21992 | | |
21982 | 21993 | | |
| |||
0 commit comments