diff options
| author | Ian Rogers <irogers@google.com> | 2025-06-24 12:03:25 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-07-02 19:11:13 -0700 |
| commit | e9846f5ead26d2ed2eea0987e3991a667fc38d22 (patch) | |
| tree | 705aa9dd2b83a6638ca5e6cd7be41a60e44ad3db /tools/perf/scripts/python/stackcollapse.py | |
| parent | e793e2c0f188fb7a7998224f14241c0d87df5249 (diff) | |
perf test: In forked mode add check that fds aren't leaked
When a test is forked no file descriptors should be open, however,
parent ones may have been inherited - in particular those of the pipes
of other forked child test processes. Add a loop to clean-up/close
those file descriptors prior to running the test. At the end of the
test assert that no additional file descriptors are present as this
would indicate a file descriptor leak.
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250624190326.2038704-6-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
