]> git.itanic.dy.fi Git - linux-stable/commit
perf tests: Make data symbol test wait for perf to start
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 23 Nov 2023 07:58:47 +0000 (09:58 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 27 Nov 2023 18:40:25 +0000 (15:40 -0300)
commit3b24b15cf6fb2dbe1d009a52c9ddcb7721503d8f
tree1d6677518f6268297e35fb01c16999aedbe84e16
parentfcfb5a6189f55669c931dce9fec85280655c515f
perf tests: Make data symbol test wait for perf to start

The perf data symbol test waits 1 second for perf to run and collect data,
which may be too little if perf takes a long time to start up, which has
been noticed on systems with many CPUs. Use existing wait_for_perf_to_start
helper to wait for perf to start.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: German Gomez <german.gomez@arm.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20231123075848.9652-8-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/test_data_symbol.sh