perf cgroup: Make evlist__find_cgroup() more compact
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 May 2018 14:29:07 +0000 (11:29 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jun 2018 13:28:50 +0000 (10:28 -0300)
commit5dbe23e8772299f227f1ac974752bc853e9814bb
tree71861f4c37a0b20e792003ce4862e58a312296f7
parentf622df5ed768ce7c049af99196c1b7b0a2c0d385
perf cgroup: Make evlist__find_cgroup() more compact

By taking advantage that __get() routines return the pointer to the
object for which a reference count is being get.

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