]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Rename functions and variables for better clarity
authorIan Rogers <irogers@google.com>
Fri, 10 Jan 2025 04:57:32 +0000 (20:57 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 16 Jan 2025 19:01:03 +0000 (11:01 -0800)
commit2e47c503deeeadc1bfa66ece7f75e298a814e94f
tree9f918d5c023c07d3a72d5b0d239ae43a2e263d17
parentf2868b1a66d4f40f07e985b0beead606b2753602
perf test: Rename functions and variables for better clarity

The relationship between subtests and test cases is somewhat
confusing, so let's do away with the notion of sub-tests and switch to
just working with some number of test cases. Add a
test_suite__for_each_test_case as in many cases, except the special
one test case situation, the iteration can just be on all test
cases. Switch variable names to be more intention revealing of what
their value is.

This work was motivated by discussion with Kan where it was noted the
code is becoming overly indented:
https://lore.kernel.org/lkml/20241109160219.49976-1-irogers@google.com/
Unifying more of the sub-test/no-sub-tests avoids one level of
indentation in a number of places.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250110045736.598281-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/builtin-test.c