1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/perf/tests/shell/lib
Ian Rogers f68c981be0 perf test: Stat output per thread of just the parent process
Per-thread mode requires either system-wide (-a), a pid (-p) or a tid
(-t).

The stat output tests were using system-wide mode but this is racy when
threads are starting and exiting - something that happens a lot when
running the tests in parallel (perf test -p).

Avoid the race conditions by using pid mode with the pid of the parent
process.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Disha Goel <disgoel@linux.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: K Prateek Nayak <kprateek.nayak@amd.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
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>
Cc: Song Liu <songliubraving@fb.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20240301074639.2260708-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2024-03-21 13:54:39 -03:00
..
coresight.sh perf test: Skip CoreSight tests if cs_etm// event is not available 2023-10-25 10:02:01 -07:00
perf_has_symbol.sh perf tests: Avoid fork in perf_has_symbol test 2024-02-22 09:12:04 -08:00
perf_json_output_lint.py perf stat: Support per-cluster aggregation 2024-02-09 14:59:53 -08:00
perf_metric_validation.py perf test: Simplify metric value validation test final report 2024-02-01 22:16:37 -08:00
perf_metric_validation_rules.json perf test: Add skip list for metrics known would fail 2023-06-21 22:23:57 -07:00
probe.sh perf tests lib probe: Fix shellcheck warning about about missing shebang 2023-08-03 17:01:26 -03:00
probe_vfs_getname.sh perf tests lib probe_vfs_getname: Fix shellcheck warnings about missing shebang/local variables 2023-08-03 17:01:26 -03:00
setup_python.sh perf test: Use common python setup library 2023-12-05 15:48:52 -03:00
stat_output.sh perf test: Stat output per thread of just the parent process 2024-03-21 13:54:39 -03:00
waiting.sh perf tests lib waiting: Fix the shellcheck warnings about missing shebang 2023-08-03 17:01:26 -03:00