Commit b3783b1
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 b62323c commit b3783b1
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3714 | 3714 | | |
3715 | 3715 | | |
3716 | 3716 | | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
3717 | 3725 | | |
3718 | 3726 | | |
3719 | 3727 | | |
| |||
3754 | 3762 | | |
3755 | 3763 | | |
3756 | 3764 | | |
| 3765 | + | |
3757 | 3766 | | |
3758 | 3767 | | |
3759 | 3768 | | |
| |||
| 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