perf test lock_contention.sh: Skip test if not enough CPUs
authorVeronika Molnarova <vmolnaro@redhat.com>
Tue, 19 Sep 2023 15:02:43 +0000 (17:02 +0200)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 21 Sep 2023 18:55:13 +0000 (11:55 -0700)
commit29441ab3a30a1a5e2dc35ea519bbd5dd210b7666
tree5f4b644d2e59e6f6ffa64878292e63aaab7cbbac
parentfa52d995d1d0b64e75f63571df2e57ba22ff0cb1
perf test lock_contention.sh: Skip test if not enough CPUs

Machines with less then 4 CPUs weren't consistently triggering lock
events required for the test.

Skip the test on those machines. The limit of 4 CPUs is set as it
generates around 100 lock events for a test.

Signed-off-by: Veronika Molnarova <vmolnaro@redhat.com>
Acked-by: Michael Petlan <mpetlan@redhat.com>
Link: https://lore.kernel.org/r/20230919150419.23193-2-vmolnaro@redhat.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/lock_contention.sh