mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
perf stat: Fix cgroup display in JSON output
It missed the 'else' keyword after checking json output mode.
Fixes: 41cb875242
("perf stat: Split print_cgroup() function")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: https://lore.kernel.org/r/20221123180208.2068936-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
c66a36af7b
commit
15792642db
@ -175,7 +175,7 @@ static void print_cgroup(struct perf_stat_config *config, struct cgroup *cgrp)
|
||||
|
||||
if (config->json_output)
|
||||
print_cgroup_json(config, cgrp_name);
|
||||
if (config->csv_output)
|
||||
else if (config->csv_output)
|
||||
print_cgroup_csv(config, cgrp_name);
|
||||
else
|
||||
print_cgroup_std(config, cgrp_name);
|
||||
|
Loading…
Reference in New Issue
Block a user