perf cgroup: Introduce find_cgroup() method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 6 Mar 2018 13:27:00 +0000 (10:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Mar 2018 13:22:25 +0000 (10:22 -0300)
commitb80271f76ac5fe498f8fb701b2745dcd841627cc
tree7093c498410f56cf118f30414791036e374728b0
parentfc9ffb9cf085c78f49d4d1a602d723504c0d9c75
perf cgroup: Introduce find_cgroup() method

To break down complexity in add_cgroup().

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-5yqshcf5hm837n7c86u7lhjf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cgroup.c