Repository navigation
Commit 441e8c6
bpf: Return target info when a tracing bpf_link is queried
There is currently no way to discover the target of a tracing program
attachment after the fact. Add this information to bpf_link_info and return
it when querying the bpf_link fd.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210413091607.58945-1-toke@redhat.com1 parent db16c1f commit 441e8c6
4 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
490 | 499 | | |
491 | 500 | | |
492 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5416 | 5416 | | |
5417 | 5417 | | |
5418 | 5418 | | |
| 5419 | + | |
| 5420 | + | |
5419 | 5421 | | |
5420 | 5422 | | |
5421 | 5423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2551 | 2551 | | |
2552 | 2552 | | |
2553 | 2553 | | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
2554 | 2557 | | |
2555 | 2558 | | |
2556 | 2559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5416 | 5416 | | |
5417 | 5417 | | |
5418 | 5418 | | |
| 5419 | + | |
| 5420 | + | |
5419 | 5421 | | |
5420 | 5422 | | |
5421 | 5423 | | |
| |||
0 commit comments