]> git.ipfire.org Git - thirdparty/linux.git/commit
perf tests: Add test for trace output loss
authorBenjamin Peterson <benjamin@engflow.com>
Thu, 7 Nov 2024 23:21:28 +0000 (23:21 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Nov 2024 21:10:40 +0000 (18:10 -0300)
commitf72bcb92e9a1402baedad45dd34abb686ae1e8cb
tree0eb92646ae22c0165ef5075224974060e5d32410
parent1302e352b26f34991b619b5d0b621b76d20a3883
perf tests: Add test for trace output loss

Add a test that checks that trace output is not lost to races. This is
accomplished by tracing the exit_group syscall of "true" multiple times and
checking for correct output.

Signed-off-by: Benjamin Peterson <benjamin@engflow.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Howard Chu <howardchu95@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241107232128.108981-3-benjamin@engflow.com
[ Addressed two ShellCheck warnings ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/trace_exit_race.sh [new file with mode: 0755]