diff options
| author | Tao Chen <[email protected]> | 2024-09-25 15:30:12 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-04 00:47:35 +0000 |
| commit | a400d08b3014a4f4e939366bb6fd769b9caff4c9 (patch) | |
| tree | 3c576bfa8a49309d50dcc071e826772bba629819 /scripts/bpf_doc.py | |
| parent | libbpf: Change log level of BTF loading error message (diff) | |
| download | kernel-a400d08b3014a4f4e939366bb6fd769b9caff4c9.tar.gz kernel-a400d08b3014a4f4e939366bb6fd769b9caff4c9.zip | |
libbpf: Fix expected_attach_type set handling in program load callback
Referenced commit broke the logic of resetting expected_attach_type to
zero for allowed program types if kernel doesn't yet support such field.
We do need to overwrite and preserve expected_attach_type for
multi-uprobe though, but that can be done explicitly in
libbpf_prepare_prog_load().
Fixes: 5902da6d8a52 ("libbpf: Add uprobe multi link support to bpf_program__attach_usdt")
Suggested-by: Jiri Olsa <[email protected]>
Signed-off-by: Tao Chen <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
