diff options
| author | Martin KaFai Lau <[email protected]> | 2022-08-16 23:17:51 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-08-18 17:06:13 -0700 |
| commit | 2b5a2ecbfdc507af3f2f032bfe7366fba4dabff0 (patch) | |
| tree | 91a4dd886dbab3517efbf91ca071b97925c11d41 /tools/perf/scripts/python | |
| parent | 40cd308ea57cf68ad67f912b98fca570d107cca0 (diff) | |
bpf: Initialize the bpf_run_ctx in bpf_iter_run_prog()
The bpf-iter-prog for tcp and unix sk can do bpf_setsockopt()
which needs has_current_bpf_ctx() to decide if it is called by a
bpf prog. This patch initializes the bpf_run_ctx in
bpf_iter_run_prog() for the has_current_bpf_ctx() to use.
Acked-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions