diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-03-06 15:48:10 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-03-07 10:22:26 -0300 |
commit | 483322dda03a7ad807e82f9c25fac315a4eee1c5 (patch) | |
tree | acca8fbe120fee8d0bf8b71331a14c871d4d689d /tools/perf/util/cgroup.h | |
parent | 69239ec81d596c57e0cf2d2f26cfe92e8cbd0929 (diff) | |
download | lwn-483322dda03a7ad807e82f9c25fac315a4eee1c5.tar.gz lwn-483322dda03a7ad807e82f9c25fac315a4eee1c5.zip |
perf cgroup: Add evlist__add_default_cgroup()
So that tools like 'perf trace' can allow the user to set a cgroup
to be used for all the evsels still without a crgroup setup by
parse_cgroups(), such as the one to use for the syscalls, vfs_getname
and other events involved in strace like syscall tracing.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-zf9jjsbj661r3lk6qb7g8j70@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/cgroup.h')
-rw-r--r-- | tools/perf/util/cgroup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/cgroup.h b/tools/perf/util/cgroup.h index 0e377e6340dd..b213f5e9a3ed 100644 --- a/tools/perf/util/cgroup.h +++ b/tools/perf/util/cgroup.h @@ -22,6 +22,8 @@ struct perf_evlist; struct cgroup *evlist__findnew_cgroup(struct perf_evlist *evlist, char *name); +void evlist__set_default_cgroup(struct perf_evlist *evlist, struct cgroup *cgroup); + int parse_cgroups(const struct option *opt, const char *str, int unset); #endif /* __CGROUP_H__ */ |