pgrep: Match on cgroup v2 paths
You can match or filter on cgroup paths. Currently the match is only done for version 2 cgroups because these are way simpler as they have a unified name and always start with "0::". cgroup v1 can have: named groups "1:name=myspecialname:" controllers "9:blkio:" multiple controllers! "4:cpu,cpuacct:" So they are very much more complicated from a options parsing and cgroup matching point of view. In addition, both my Debian bookworm and bullseye systems use v2 cgroups. $ ./pgrep --cgroup /system.slice/cron.service 760 Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
1
NEWS
1
NEWS
@@ -9,6 +9,7 @@ procps-ng-NEXT
|
||||
* pkill: Check for lt- variants of program name issue #192
|
||||
* pgrep: Add newline after regex error message merge #91
|
||||
* pgrep: Fix selection where uid/gid > 2^31 merge !146
|
||||
* pgrep: Select on cgroup v2 paths issue #168
|
||||
* ps: Add OOM and OOMADJ fields issue #198
|
||||
* ps: Add IO Accounting fields issue #184
|
||||
* ps: Add PSS and USS fields issue #112
|
||||
|
||||
Reference in New Issue
Block a user