From: Craig Small Date: Tue, 1 Dec 2020 09:25:22 +0000 (+1100) Subject: misc: Add notes for time namespace X-Git-Tag: v23.4rc1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c1f1de376112c842e8711d1babfb8352f55ed51;p=psmisc misc: Add notes for time namespace Add Changelog entry, man page and help for time namespace. References: commit 64d29380d249a64ca7b995de77f450ac37646ff4 psmisc/psmisc!25 --- diff --git a/ChangeLog b/ChangeLog index 110afab..44f28be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ Changes in NEXT =============== * pstree: Do not crash on missing processes !21 * pstree: fix layout when using -C !24 + * pstree: add time namespace !25 * fuser: Get less confused about duplicate dev_id !10 * fuser: Only check pathname on non-block devices !31 diff --git a/doc/pstree.1 b/doc/pstree.1 index 82197f3..c1d5adf 100644 --- a/doc/pstree.1 +++ b/doc/pstree.1 @@ -133,7 +133,9 @@ Sort processes with the same parent by PID instead of by name. (Numeric sort.) .IP \fB\-N\fP Show individual trees for each namespace of the type specified. The -available types are: ipc, mnt, net, pid, user, uts. Regular users don't +available types are: +.IR ipc ", " mnt ", " net ", " pid ", " time ", " user ", " uts . +Regular users don't have access to other users' processes information, so the output will be limited. .IP \fB\-p\fP diff --git a/src/pstree.c b/src/pstree.c index 4ac05ad..ad31a92 100644 --- a/src/pstree.c +++ b/src/pstree.c @@ -1209,7 +1209,7 @@ static void usage(void) " -n, --numeric-sort sort output by PID\n" " -N TYPE, --ns-sort=TYPE\n" " sort output by this namespace type\n" - " (cgroup, ipc, mnt, net, pid, user, uts)\n" + " (cgroup, ipc, mnt, net, pid, time, user, uts)\n" " -p, --show-pids show PIDs; implies -c\n")); fprintf(stderr, _( " -s, --show-parents show parents of the selected process\n"