diff options
author | Namhyung Kim <namhyung@kernel.org> | 2022-11-14 15:02:19 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-16 09:51:22 -0300 |
commit | 208cbcd21bf57c80ceaf90fcec16cfdfb55a0a4d (patch) | |
tree | 1ecb1c48427a962fca6f540bc4d2b291b9ad551e /tools/memory-model/litmus-tests | |
parent | b2d9832e00a0d93ad6127fa8ccf2b8e0cfe67397 (diff) | |
download | linux-stable-208cbcd21bf57c80ceaf90fcec16cfdfb55a0a4d.tar.gz linux-stable-208cbcd21bf57c80ceaf90fcec16cfdfb55a0a4d.tar.bz2 linux-stable-208cbcd21bf57c80ceaf90fcec16cfdfb55a0a4d.zip |
perf stat: Factor out prepare_interval()
This logic does not print the time directly, but it just puts the
timestamp in the buffer as a prefix. To reduce the confusion, factor
out the code into a separate function.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: Ian Rogers <irogers@google.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/20221114230227.1255976-12-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/memory-model/litmus-tests')
0 files changed, 0 insertions, 0 deletions