diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2022-11-07 13:33:13 -0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-14 13:21:19 -0300 |
| commit | f1db5a1d1d4de248534567fd95efa570bc693f73 (patch) | |
| tree | 4a95dddd783cee8985528ecc08129d0bf9e742cf /tools/perf/scripts/python | |
| parent | perf stat: Add header for interval in JSON output (diff) | |
| download | linux-f1db5a1d1d4de248534567fd95efa570bc693f73.tar.gz linux-f1db5a1d1d4de248534567fd95efa570bc693f73.zip | |
perf stat: Fix condition in print_interval()
The num_print_interval and config->interval_clear should be checked
together like other places like later in the function. Otherwise,
the --interval-clear option could print the headers for the CSV or
JSON output unnecessarily.
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-9-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
