Commit 51d6504
bpf: Add struct_ops context information to struct bpf_prog_aux
This patch adds struct_ops context information to struct bpf_prog_aux.
This context information will be used in the kfunc filter.
Currently the added context information includes struct_ops member
offset and a pointer to struct bpf_struct_ops.
Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20250319215358.2287371-2-ameryhung@gmail.com1 parent e16e64f commit 51d6504
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1521 | 1521 | | |
1522 | 1522 | | |
1523 | 1523 | | |
| 1524 | + | |
1524 | 1525 | | |
1525 | 1526 | | |
1526 | 1527 | | |
| |||
1566 | 1567 | | |
1567 | 1568 | | |
1568 | 1569 | | |
| 1570 | + | |
1569 | 1571 | | |
1570 | 1572 | | |
1571 | 1573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22736 | 22736 | | |
22737 | 22737 | | |
22738 | 22738 | | |
22739 | | - | |
| 22739 | + | |
22740 | 22740 | | |
22741 | 22741 | | |
22742 | 22742 | | |
| |||
22787 | 22787 | | |
22788 | 22788 | | |
22789 | 22789 | | |
22790 | | - | |
| 22790 | + | |
| 22791 | + | |
22791 | 22792 | | |
22792 | 22793 | | |
22793 | 22794 | | |
| |||
22826 | 22827 | | |
22827 | 22828 | | |
22828 | 22829 | | |
| 22830 | + | |
| 22831 | + | |
| 22832 | + | |
22829 | 22833 | | |
22830 | 22834 | | |
22831 | 22835 | | |
| |||
0 commit comments