OSDN Git Service

perf test: Add kernel lock contention test
authorNamhyung Kim <namhyung@kernel.org>
Sat, 24 Sep 2022 00:42:21 +0000 (17:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:23 +0000 (08:55 -0300)
commitec685de25b6718f85380bb4bbaacf23748708ad0
tree9474c2c9d8cf66fbe0d0e1da1cd13a9fffdc32a3
parent6bbc482017deeacf5c9953bafdeb90517e22dc90
perf test: Add kernel lock contention test

Add a new shell test to check if both normal 'perf lock record' +
contention and BPF (with -b) option are working.

Use 'perf bench sched messaging' as a workload since it creates some
contention for sending and receiving messages.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220924004221.841024-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/lock_contention.sh [new file with mode: 0755]