summaryrefslogtreecommitdiff
path: root/src/shared/cgroup-show.c
Commit message (Collapse)AuthorAge
* Major cleanup of all leftovers after rebasing on master.Sven Eden2017-03-14
| | | | | | | | The patching of elogind in several steps with only partly rebasing on a common commit with upstream, left the tree in a state, that was unmergeable with master. By rebasing on master and manually cleaning up all commits, this merge is now possible. However, this process left some orphans, that are cleanup now.
* Prep v226: Apply missing fixes and changes to src/sharedSven Eden2017-03-14
|
* cgroup-show: unescape cgroups on presentationLennart Poettering2017-03-14
| | | | | Let's unescape cgroups on presentation, so that we show literal unit names.
* Prep v221: Update and clean up build system to sync with upstreamSven Eden2017-03-14
| | | | | | | | | | | | | | This commit replays the moving around of source files that have been done between systemd-219 and systemd-221. Further the Makefile.am is synchronized with the upstream version and then "re-cleaned". A lot of functions, that are not used anywhere in elogind have been coated into #if 0/#endif directives to further shorten the list of dependencies. All unneeded files have been removed.
* shared: add terminal-util.[ch]Ronny Chevalier2017-03-14
|
* shared: add formats-util.hRonny Chevalier2017-03-14
|
* shared: add process-util.[ch]Ronny Chevalier2017-03-14
|
* util: rework strappenda(), and rename it strjoina()Lennart Poettering2015-02-03
| | | | | | After all it is now much more like strjoin() than strappend(). At the same time, add support for NULL sentinels, even if they are normally not necessary.
* cgroup-show: remove duplicated checkZbigniew Jędrzejewski-Szmek2015-01-22
| | | | After 3637713a20 it is not necessary anymore.
* cgroup-show: don't hit assert, when the extra pids array is emptyLennart Poettering2015-01-22
|
* shared/cgroup-show: simplify show_pid_array()Zbigniew Jędrzejewski-Szmek2015-01-22
| | | | | | int[] should not be used as pid_t[], even if happens to be same thing. Also deduplicating in a quadratic loop right before sorting is unnecessary. Remove custom greedy_realloc implementation.
* delta: draw arrows with draw_special_char()Lennart Poettering2014-04-23
| | | | | | | Let's unify generation of unicode chars at one place. Also, don't add an extra space into chars we print, except for the tree chars where this is really necessary.
* Get rid of our reimplementation of basenameZbigniew Jędrzejewski-Szmek2013-12-06
| | | | | | The only problem is that libgen.h #defines basename to point to it's own broken implementation instead of the GNU one. This can be fixed by #undefining basename.
* Fix bad assert in show_pid_arrayZbigniew Jędrzejewski-Szmek2013-10-14
| | | | | | | This function should get the same treatment as other qsort uses did in 7ff7394 "Never call qsort on potentially NULL arrays". Reported-by: Oleksii Shevchuk <alxchk@gmail.com>
* ModernizationZbigniew Jędrzejewski-Szmek2013-10-13
| | | | Fixes minor leak in error path in device.c.
* Never call qsort on potentially NULL arraysZbigniew Jędrzejewski-Szmek2013-10-13
| | | | | | This extends 62678ded 'efi: never call qsort on potentially NULL arrays' to all other places where qsort is used and it is not obvious that the count is non-zero.
* core: general cgroup reworkLennart Poettering2013-06-27
| | | | | | | | | | | | | | | | Replace the very generic cgroup hookup with a much simpler one. With this change only the high-level cgroup settings remain, the ability to set arbitrary cgroup attributes is removed, so is support for adding units to arbitrary cgroup controllers or setting arbitrary paths for them (especially paths that are different for the various controllers). This also introduces a new -.slice root slice, that is the parent of system.slice and friends. This enables easy admin configuration of root-level cgrouo properties. This replaces DeviceDeny= by DevicePolicy=, and implicitly adds in /dev/null, /dev/zero and friends if DeviceAllow= is used (unless this is turned off by DevicePolicy=).
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-18
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* util: replace decimal_str_max() by a typesafe macro DECIMAL_STR_WIDTH()Lennart Poettering2013-04-16
| | | | | | | DECIMAL_STR_WIDTH() now works on any numeric type, and is easier to distingish from DECIMAL_STR_MAX(). This also replaces another manual implementaiton of ulog10 by this macro.
* nspawn: introduce the new /machine/ tree in the cgroup tree and move ↵Lennart Poettering2013-04-16
| | | | | | | | | | | | | | containers there Containers will now carry a label (normally derived from the root directory name, but configurable by the user), and the container's root cgroup is /machine/<label>. This label is called "machine name", and can cover both containers and VMs (as soon as libvirt also makes use of /machine/). libsystemd-login can be used to query the machine name from a process. This patch also includes numerous clean-ups for the cgroup code.
* shared/cgroup-show: fix leak of "pid"Zbigniew Jędrzejewski-Szmek2013-04-01
|
* systemctl,loginctl,cgls: do not ellipsize cgroup members when --full is ↵Lukas Nykryn2013-01-16
| | | | | | | | | | | | | | | | | | | | specified New file output.h with output flags and modes. --full parameter also for cgls and loginctl. Include 'all' parameter in flags (show_cgroup_by_path, show_cgroup, show_cgroup_and_extra, show_cgroup_and_extra_by_spec). get_process_cmdline with max_length == 0 will not ellipsize output. Replace LINE_MAX with 0 in some calls of get_process_cmdline. [zj: Default to --full when under pager for clgs. Drop '-f' since it wasn't documented and didn't actually work. Reindent a bit. ]
* systemctl: don't show cgroup field for a unit if cgroup is emptyLennart Poettering2012-12-24
|
* util: nicer tree drawingsMichal Schmidt2012-11-12
| | | | Draw trees more similar to pstree/findmnt/lsblk/...
* util : fallback to plain ASCII drawing if locale is not UTF-8Michal Schmidt2012-11-02
| | | | | | | When printing cgroup and sysfs hierarchies, avoid using UTF-8 box drawing characters if the locale is not UTF-8. https://bugzilla.redhat.com/show_bug.cgi?id=871153
* cgls: correctly ellipsize command lines for PIDs >= 1000000Mantas Mikulėnas2012-10-23
|
* util: split-out path-util.[ch]Kay Sievers2012-05-08
|
* systemctl: show main and control PID explicitly in cgroup-showLennart Poettering2012-04-16
| | | | | | | In some cases the main/control PID of a service can be outside of the services cgroups (for example, if logind readjusts the processes' cgroup). In order to clarify this for the user show the main/control PID in the cgroup tree nonetheless, but mark them specially.
* cgls: don't show empty cgroups by defaultLennart Poettering2012-04-16
|
* move more common files to shared/ and add them to shared.laKay Sievers2012-04-12