]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: add BPF-PROG.TYPE, BPF-PROG.TYPE.RAW, and BPF-PROG.ID columns
authorMasatake YAMATO <yamato@redhat.com>
Tue, 11 Jul 2023 13:12:05 +0000 (22:12 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Wed, 19 Jul 2023 12:19:47 +0000 (21:19 +0900)
commitec2c77da7a6593ef9647156a241dbaecec0245ba
tree6cc3054c6eb12642ba85d9873e31e01a1836b4fc
parent91ea8ff5cf43568cccba41da573bd9a462f17a84
lsfd: add BPF-PROG.TYPE, BPF-PROG.TYPE.RAW, and BPF-PROG.ID columns

Based on these new columsn, the NAME column for "bpf-prog" is
enhanced.

An example output:

  # ./lsfd -p 1 -Q '(TYPE == "bpf-prog")' | head
  COMMAND PID USER ASSOC XMODE     TYPE       SOURCE MNTID INODE NAME
  systemd   1 root    14 rw--- bpf-prog anon_inodefs    15   106 id=1008 type=lsm
  systemd   1 root    26 rw--- bpf-prog anon_inodefs    15   106 id=2073 type=cgroup_device
  systemd   1 root    27 rw--- bpf-prog anon_inodefs    15   106 id=2074 type=cgroup_skb
  systemd   1 root    28 rw--- bpf-prog anon_inodefs    15   106 id=2075 type=cgroup_skb
  systemd   1 root    30 rw--- bpf-prog anon_inodefs    15   106 id=2076 type=cgroup_device
  systemd   1 root    31 rw--- bpf-prog anon_inodefs    15   106 id=2077 type=cgroup_device
  systemd   1 root    32 rw--- bpf-prog anon_inodefs    15   106 id=2078 type=cgroup_device
  systemd   1 root    33 rw--- bpf-prog anon_inodefs    15   106 id=2079 type=cgroup_skb
  systemd   1 root    34 rw--- bpf-prog anon_inodefs    15   106 id=2080 type=cgroup_skb

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-unkn.c
misc-utils/lsfd.1.adoc
misc-utils/lsfd.c
misc-utils/lsfd.h