summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTomas Glozar <tglozar@redhat.com>2026-08-14 15:55:10 +0200
committerTomas Glozar <tglozar@redhat.com>2026-09-22 13:41:41 +0200
commita506a3de5636400e6a42a63de88968af3e8aa5d3 (patch)
tree5e6186faed25e6cb6260918401ab554496dfb377 /tools/perf/scripts/python/stackcollapse.py
parentb105ffc19d5e53058cba68a9b8b7915216f0bf46 (diff)
rtla/tests: Add unit test for cpu_list_iterate()
cpu_list_iterate() was split out of parse_cpu_set() to hold shared code between it and the newly added function get_possible_cpus(). As its semantics are more complex than parse_cpu_set() - it calls a callback on each element of the list, with possible abort on failure, while parse_cpu_set() cares only about the set defined by the list - it deserves its own test. Test the callback being called correctly as well as the return value and early break on different combinations of comma-separated numbers and ranges. Link: https://lore.kernel.org/r/20260814135511.2207190-5-tglozar@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions