diff options
author | Eduard Zingerman <[email protected]> | 2024-08-29 14:08:27 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-08-29 18:15:45 -0700 |
commit | a0dbf6d0b21e197bf919591081ff2eb7a34ef982 (patch) | |
tree | 6f9775e32c9c35493efb9e9c4ff5a32a6fd79d37 /tools/perf/scripts/python/libxed.py | |
parent | 866d571e6201cb8ccb18cb8407ab3ad3adb474b8 (diff) |
selftests/bpf: attach struct_ops maps before test prog runs
In test_loader based tests to bpf_map__attach_struct_ops()
before call to bpf_prog_test_run_opts() in order to trigger
bpf_struct_ops->reg() callbacks on kernel side.
This allows to use __retval macro for struct_ops tests.
Signed-off-by: Eduard Zingerman <[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/libxed.py')
0 files changed, 0 insertions, 0 deletions