]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/cgtop/cgtop.c
cgtop: major modernizations
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2015 00:04:33 +0000 (02:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2015 00:27:29 +0000 (02:27 +0200)
commit45d7a8bb6c0e0caa4dd2a1cf1108b7ba2c0ebac4
tree8c92582e73bdc41702382c59dbff752ee2742ce5
parent21b735e798c580e7af8c33ace9f8565860b7f8df
cgtop: major modernizations

In preparation of the unified cgroup support, let's clean up cgtop:

a) rework time code to be based on "nsec_t" rather than "struct timespec"

b) Introduce long option --order= for selecting ordering

c) count number of processes only in the main hierarchy, don't bother
   with the controller hierarchies. We don't allow orthogonal
   hierarchies in systemd anymore, hence there's no point to check the
   other hierarchies.

d) Deal with non-monotonic cpuacct values (see #749)

e) When sorting groups, don't do prefix compare when ordering by number
   of tasks, since this is not accumulative for all children.

f) Actually make --cpu without parameter work

g) Don't output control characters when we get them as input.

Fixes #749.
man/systemd-cgtop.xml
src/basic/time-util.c
src/basic/time-util.h
src/cgtop/cgtop.c