aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2023-04-07 08:14:26 +0000
committerAndrii Nakryiko <[email protected]>2023-04-07 22:28:12 +0000
commitb24f0b049e706c6fc6e822dfc519ee33c3865092 (patch)
treeb9608607cc6c995e338fbf47dacb7b8ef1f3d1cb /scripts/bpf_doc.py
parentselftests/bpf: Use PERF_COUNT_HW_CPU_CYCLES event for get_branch_snapshot (diff)
downloadkernel-b24f0b049e706c6fc6e822dfc519ee33c3865092.tar.gz
kernel-b24f0b049e706c6fc6e822dfc519ee33c3865092.zip
bpftool: Set program type only if it differs from the desired one
After commit d6e6286a12e7 ("libbpf: disassociate section handler on explicit bpf_program__set_type() call"), bpf_program__set_type() will force cleanup the program's SEC() definition, this commit fixed the test helper but missed the bpftool, which leads to bpftool prog autoattach broken as follows: $ bpftool prog load spi-xfer-r1v1.o /sys/fs/bpf/test autoattach Program spi_xfer_r1v1 does not support autoattach, falling back to pinning This patch fix bpftool to set program type only if it differs. Fixes: d6e6286a12e7 ("libbpf: disassociate section handler on explicit bpf_program__set_type() call") Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions