Commit 8744e6e
bpf: core: introduce main_prog_aux for stream access
BPF streams are only valid for the main programs, to make it easier to
access streams from subprogs, introduce main_prog_aux in struct
bpf_prog_aux.
prog->aux->main_prog_aux = prog->aux, for main programs and
prog->aux->main_prog_aux = main_prog->aux, for subprograms.
Make bpf_prog_find_from_stack() use the added main_prog_aux to return
the mainprog when a subprog is found on the stack.
Signed-off-by: Puranjay Mohan <[email protected]>1 parent ec597bd commit 8744e6e
3 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
| 1636 | + | |
1636 | 1637 | | |
1637 | 1638 | | |
1638 | 1639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
3292 | 3293 | | |
3293 | 3294 | | |
3294 | 3295 | | |
3295 | | - | |
3296 | | - | |
3297 | | - | |
| 3296 | + | |
| 3297 | + | |
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21597 | 21597 | | |
21598 | 21598 | | |
21599 | 21599 | | |
| 21600 | + | |
21600 | 21601 | | |
21601 | 21602 | | |
21602 | 21603 | | |
| |||
0 commit comments