]>
git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: add BPF.NAME column
An example output:
$ sudo ./lsfd -oCOMMAND,PID,ASSOC,TYPE,BPF.NAME,NAME -Q '(TYPE =~ "bpf-*")' -p 1
COMMAND PID ASSOC TYPE BPF.NAME NAME
systemd 1 9 bpf_link anon_inode:bpf_link
systemd 1 13 bpf-map cgroup_hash id=391 type=hash-of-maps name=cgroup_hash
systemd 1 14 bpf-prog restrict_filesy id=8210 type=lsm name=restrict_filesy
systemd 1 28 bpf-prog sd_devices id=8298 type=cgroup_device name=sd_devices
systemd 1 29 bpf-prog sd_devices id=8299 type=cgroup_device name=sd_devices
systemd 1 30 bpf-prog sd_devices id=8300 type=cgroup_device name=sd_devices
...
Using memset was suggested by Thomas Weißschuh
<thomas@t-8ch.de>.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>