diff options
| author | Song Liu <[email protected]> | 2020-09-25 13:54:29 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-09-28 21:52:36 +0200 |
| commit | 1b4d60ec162f82ea29a2e7a907b5c6cc9f926321 (patch) | |
| tree | 150d204cf6808e314999690a7f751235b077b448 /tools/perf/scripts/python | |
| parent | 1fd17c8cd0aa636afcf441ee23023b5a7cba4efa (diff) | |
bpf: Enable BPF_PROG_TEST_RUN for raw_tracepoint
Add .test_run for raw_tracepoint. Also, introduce a new feature that runs
the target program on a specific CPU. This is achieved by a new flag in
bpf_attr.test, BPF_F_TEST_RUN_ON_CPU. When this flag is set, the program
is triggered on cpu with id bpf_attr.test.cpu. This feature is needed for
BPF programs that handle perf_event and other percpu resources, as the
program can access these resource locally.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions