]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: show pids targeted by pidfds in NAME column
authorMasatake YAMATO <yamato@redhat.com>
Thu, 4 Aug 2022 15:48:15 +0000 (00:48 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 8 Aug 2022 20:52:46 +0000 (05:52 +0900)
commitba8c749fa54780a7d64bdb89f53ee9893b171401
tree4455fbb9a0084a22c4c96d6c163e6bf5f4e833bd
parent7dc7b6f47aefdf4793c364b2e3402f9cec0524ec
lsfd: show pids targeted by pidfds in NAME column

Example output:

  $ sudo ./lsfd -Q '(NAME =~ "pidfd: .*")'
  COMMAND           PID  ... TYPE       SOURCE ... NAME
  dbus-broker-lau  1010  ... UNKN anon_inodefs ... pidfd: pid=1015 comm=dbus-broker nspid=1015
  dbus-broker-lau 14786  ... UNKN anon_inodefs ... pidfd: pid=14788 comm=dbus-broker nspid=14788
  dbus-broker-lau 15051  ... UNKN anon_inodefs ... pidfd: pid=15053 comm=dbus-broker nspid=15053

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-unkn.c
tests/expected/lsfd/mkfds-pidfd [new file with mode: 0644]
tests/helpers/test_mkfds.c
tests/ts/lsfd/mkfds-pidfd [new file with mode: 0755]