diff options
author | Namhyung Kim <namhyung@kernel.org> | 2022-11-08 00:33:14 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-14 19:21:19 +0300 |
commit | 20e2e31779377b36ada04c06d572ce0b4e234bb1 (patch) | |
tree | 4eb5daefcaf266ec7f51d7e5196494bb5331359b /tools/lib/api/fs/tracing_path.c | |
parent | f1db5a1d1d4de248534567fd95efa570bc693f73 (diff) | |
download | linux-20e2e31779377b36ada04c06d572ce0b4e234bb1.tar.xz |
perf stat: Consolidate condition to print metrics
The pm variable holds an appropriate function to print metrics for CSV
anf JSON already. So we can combine the if statement to simplify the
code a little bit. This also matches to the above condition for non-CSV
and non-JSON case.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.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: Peter Zijlstra <peterz@infradead.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: https://lore.kernel.org/r/20221107213314.3239159-10-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions