Andrii Nakryiko
c5481f9a95
bpftool: Add bpf_link show and pin support
...
Add `bpftool link show` and `bpftool link pin` commands.
Example plain output for `link show` (with showing pinned paths):
[vmuser@archvm bpf]$ sudo ~/local/linux/tools/bpf/bpftool/bpftool -f link
1: tracing prog 12
prog_type tracing attach_type fentry
pinned /sys/fs/bpf/my_test_link
pinned /sys/fs/bpf/my_test_link2
2: tracing prog 13
prog_type tracing attach_type fentry
3: tracing prog 14
prog_type tracing attach_type fentry
4: tracing prog 15
prog_type tracing attach_type fentry
5: tracing prog 16
prog_type tracing attach_type fentry
6: tracing prog 17
prog_type tracing attach_type fentry
7: raw_tracepoint prog 21
tp 'sys_enter'
8: cgroup prog 25
cgroup_id 584 attach_type egress
9: cgroup prog 25
cgroup_id 599 attach_type egress
10: cgroup prog 25
cgroup_id 614 attach_type egress
11: cgroup prog 25
cgroup_id 629 attach_type egress
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200429001614.1544-9-andriin@fb.com
2020-04-28 17:27:08 -07:00
..
2020-04-03 13:12:26 -07:00
2020-04-14 09:08:23 -03:00
2020-04-05 10:36:18 -07:00
2020-04-28 17:27:08 -07:00
2020-04-21 11:11:55 -07:00
2020-03-25 11:50:48 +01:00
2020-02-19 04:10:32 -07:00
2020-04-04 10:27:00 -07:00
2020-01-26 22:10:10 -05:00
2020-03-25 11:50:48 +01:00
2020-04-28 17:27:08 -07:00
2020-03-23 15:44:21 -04:00
2020-04-10 15:36:22 -07:00
2020-03-25 11:50:48 +01:00
2020-04-28 17:27:08 -07:00
2020-03-25 11:50:48 +01:00
2020-04-22 23:14:46 +02:00
2020-04-02 17:57:10 +01:00
2020-03-25 11:50:48 +01:00
2020-04-14 11:40:05 -03:00
2020-04-20 10:37:02 +02:00
2020-03-25 18:58:11 -07:00
2020-04-03 13:12:26 -07:00
2020-04-28 17:27:08 -07:00
2020-04-07 20:00:16 -07:00
2020-03-25 11:50:48 +01:00
2020-04-17 06:05:29 -04:00
2020-04-21 11:11:56 -07:00
2020-01-13 13:19:39 -05:00