summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-06-22 18:27:48 -0700
committerNamhyung Kim <namhyung@kernel.org>2026-06-30 17:09:13 -0700
commit810d0c911796bdc8ec67d5844b070c7f48bd732a (patch)
tree0a9f645c36debff15914c5c031916aaa54ad6734 /tools/perf/scripts/python/stackcollapse.py
parent32e6312f7e397bf0b731b43a6504966398af0788 (diff)
perf tests workloads: Support sub-second durations in noploop and thloop
Currently, the noploop and thloop workloads only support sleep durations in integer seconds because they parse the argument using atoi() and use alarm() for timer signaling. To support much shorter execution times in tests (speeding up test suites and allowing faster retries), change the input parsing to use atof() for double floating-point seconds. Use ualarm() for fractional durations less than 1.0 seconds, and fall back to alarm() for durations of 1.0 second or more. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers <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