Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf test: Do not compare overheads in the zstd comp test

The overhead can vary on each run so it'd make the test failed
sometimes. Also order of hist entry can change.

Use perf report -F option to omit the overhead field and sort the
result alphabetically.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexei Budankov <abudankov@huawei.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: http://lore.kernel.org/lkml/20210812235738.1684583-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Namhyung Kim and committed by
Arnaldo Carvalho de Melo
5f534a81 1d3351e6

+2 -2
+2 -2
tools/perf/tests/shell/record+zstd_comp_decomp.sh
··· 25 25 26 26 check_compressed_output() { 27 27 $perf_tool inject -i $trace_file -o $trace_file.decomp && 28 - $perf_tool report -i $trace_file --stdio | head -n -3 > $trace_file.comp.output && 29 - $perf_tool report -i $trace_file.decomp --stdio | head -n -3 > $trace_file.decomp.output && 28 + $perf_tool report -i $trace_file --stdio -F comm,dso,sym | head -n -3 > $trace_file.comp.output && 29 + $perf_tool report -i $trace_file.decomp --stdio -F comm,dso,sym | head -n -3 > $trace_file.decomp.output && 30 30 diff $trace_file.comp.output $trace_file.decomp.output 31 31 } 32 32