Commit c51003e
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: 5902da6 ("libbpf: Add uprobe multi link support to bpf_program__attach_usdt")
Suggested-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Tao Chen <chen.dylane@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240925153012.212866-1-chen.dylane@gmail.com1 parent db5ca26 commit c51003e
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7353 | 7353 | | |
7354 | 7354 | | |
7355 | 7355 | | |
7356 | | - | |
| 7356 | + | |
| 7357 | + | |
| 7358 | + | |
| 7359 | + | |
| 7360 | + | |
7357 | 7361 | | |
| 7362 | + | |
| 7363 | + | |
7358 | 7364 | | |
7359 | 7365 | | |
7360 | 7366 | | |
| |||
7444 | 7450 | | |
7445 | 7451 | | |
7446 | 7452 | | |
| 7453 | + | |
7447 | 7454 | | |
7448 | 7455 | | |
7449 | 7456 | | |
| |||
7475 | 7482 | | |
7476 | 7483 | | |
7477 | 7484 | | |
7478 | | - | |
7479 | | - | |
7480 | | - | |
7481 | 7485 | | |
7482 | 7486 | | |
7483 | 7487 | | |
| |||
0 commit comments