summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJordan Rife <jrife@google.com>2024-05-10 22:02:21 +0300
committerAlexei Starovoitov <ast@kernel.org>2024-05-13 03:10:41 +0300
commit5a047b2226c0511d4528d1467dc90f08fffafc38 (patch)
tree97c820a06655716e8ae686bec0c0ddc5b7310d72 /tools/perf/scripts/python/export-to-postgresql.py
parent5eff48f33fb733de9b88a5381e0428f3e873c670 (diff)
downloadlinux-5a047b2226c0511d4528d1467dc90f08fffafc38.tar.xz
selftests/bpf: Handle ATTACH_REJECT test cases
In preparation to move test cases from bpf/test_sock_addr.c that expect ATTACH_REJECT, this patch adds BPF_SKEL_FUNCS_RAW to generate load and destroy functions that use bpf_prog_attach() to control the attach_type. The normal load functions use bpf_program__attach_cgroup which does not have the same degree of control over the attach type, as bpf_program_attach_fd() calls bpf_link_create() with the attach type extracted from prog using bpf_program__expected_attach_type(). It is currently not possible to modify the attach type before bpf_program__attach_cgroup() is called, since bpf_program__set_expected_attach_type() has no effect after the program is loaded. Signed-off-by: Jordan Rife <jrife@google.com> Link: https://lore.kernel.org/r/20240510190246.3247730-5-jrife@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions