]> git.baikalelectronics.ru Git - kernel.git/commit
perf cgroup: Maintain cgroup hierarchy
authorNamhyung Kim <namhyung@kernel.org>
Wed, 25 Mar 2020 12:45:31 +0000 (21:45 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Apr 2020 12:37:55 +0000 (09:37 -0300)
commit8b6429f73ca055f07a28c4b041f6675bb74f8406
tree682d45f57bf534a8eda1195c6b46cb8f7be0953c
parent314088891445f7fe692831d04c6b8e2f144c5932
perf cgroup: Maintain cgroup hierarchy

Each cgroup is kept in the perf_env's cgroup_tree sorted by the cgroup
id.  Hist entries have cgroup id can compare it directly and later it
can be used to find a group name using this tree.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200325124536.2800725-5-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cgroup.c
tools/perf/util/cgroup.h
tools/perf/util/env.c
tools/perf/util/env.h
tools/perf/util/machine.c