diff options
author | Yonghong Song <[email protected]> | 2020-05-09 10:59:07 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-05-09 17:05:26 -0700 |
commit | e5158d987b72c3f318b4b52a01ac6f3997bd0c00 (patch) | |
tree | 7297cfe0ea166ab5064887fd9af91c9e52bdfc83 /tools/perf/scripts/python | |
parent | 367ec3e4834cbd611401c2c40a23c22c825474f1 (diff) |
bpf: Implement common macros/helpers for target iterators
Macro DEFINE_BPF_ITER_FUNC is implemented so target
can define an init function to capture the BTF type
which represents the target.
The bpf_iter_meta is a structure holding meta data, common
to all targets in the bpf program.
Additional marker functions are called before or after
bpf_seq_read() show()/next()/stop() callback functions
to help calculate precise seq_num and whether call bpf_prog
inside stop().
Two functions, bpf_iter_get_info() and bpf_iter_run_prog(),
are implemented so target can get needed information from
bpf_iter infrastructure and can run the program.
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[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