diff options
author | WaLyong Cho <walyong.cho@samsung.com> | 2014-04-25 00:50:51 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-04-24 19:21:51 -0400 |
commit | 49e5b2a93339869703d581a06f8d903f8371ab60 (patch) | |
tree | bb5322e6f0d6f664389c716b71a03afaa5fa00c0 /src/bootchart/store.c | |
parent | e6c474723dc66cd4765fd09453d6b48bd5905ba4 (diff) |
bootchart: add control group option
Diffstat (limited to 'src/bootchart/store.c')
-rw-r--r-- | src/bootchart/store.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootchart/store.c b/src/bootchart/store.c index 78c5cf85ec..e0719838d5 100644 --- a/src/bootchart/store.c +++ b/src/bootchart/store.c @@ -37,6 +37,7 @@ #include "strxcpyx.h" #include "store.h" #include "bootchart.h" +#include "cgroup-util.h" /* * Alloc a static 4k buffer for stdio - primarily used to increase @@ -315,6 +316,11 @@ schedstat_next: ps->starttime = strtod(t, NULL) / 1000.0; + if (arg_show_cgroup) + /* if this fails, that's OK */ + cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, + ps->pid, &ps->cgroup); + /* ppid */ sprintf(filename, "%d/stat", pid); fd = openat(procfd, filename, O_RDONLY); |