From b69d29ce049f12d463a589e18561dd10ee8c09f1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Apr 2012 18:56:18 +0200 Subject: systemctl: show main and control PID explicitly in cgroup-show 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. --- src/shared/cgroup-show.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/cgroup-show.h') diff --git a/src/shared/cgroup-show.h b/src/shared/cgroup-show.h index e1d67a329..dba900a15 100644 --- a/src/shared/cgroup-show.h +++ b/src/shared/cgroup-show.h @@ -23,8 +23,12 @@ ***/ #include +#include int show_cgroup_by_path(const char *path, const char *prefix, unsigned columns, bool kernel_threads, bool all); int show_cgroup(const char *controller, const char *path, const char *prefix, unsigned columns, bool kernel_threads, bool all); +int show_cgroup_and_extra_by_spec(const char *spec, const char *prefix, unsigned n_columns, bool kernel_threads, bool all, const pid_t extra_pids[], unsigned n_extra_pids); +int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, bool all, const pid_t extra_pids[], unsigned n_extra_pids); + #endif -- cgit v1.2.3