perf cgroup: Introduce cgroup__get()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 6 Mar 2018 13:18:40 +0000 (10:18 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Mar 2018 13:22:25 +0000 (10:22 -0300)
commitfc9ffb9cf085c78f49d4d1a602d723504c0d9c75
treed123a1a52891cb9a9d44323e50e6168a508ef073
parenta53b646030ee6f65accdc49e772823b8134a37f6
perf cgroup: Introduce cgroup__get()

The refcount operation counterpart to cgroup__put(), use it when reusing
a 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-14ynvrl7y2cz8gyuy5q5v41g@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cgroup.c
tools/perf/util/cgroup.h