Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tests: Organize cpu_map tests into a single suite

Go from 4 suites to a single suite with 4 test cases.

Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ali Saidi <alisaidi@amazon.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Dmitrii Dolgov <9erthalion6@gmail.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kang Minchul <tegongkang@gmail.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Ming Wang <wangming01@loongson.cn>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Sandipan Das <sandipan.das@amd.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230526215410.2435674-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
5cebb33f 237d41d4

+14 -12
+1 -4
tools/perf/tests/builtin-test.c
··· 88 88 &suite__bpf, 89 89 &suite__thread_map_synthesize, 90 90 &suite__thread_map_remove, 91 - &suite__cpu_map_synthesize, 91 + &suite__cpu_map, 92 92 &suite__synthesize_stat_config, 93 93 &suite__synthesize_stat, 94 94 &suite__synthesize_stat_round, 95 95 &suite__event_update, 96 96 &suite__event_times, 97 97 &suite__backward_ring_buffer, 98 - &suite__cpu_map_print, 99 - &suite__cpu_map_merge, 100 - &suite__cpu_map_intersect, 101 98 &suite__sdt_event, 102 99 &suite__is_printable_array, 103 100 &suite__bitmap_print,
+12 -4
tools/perf/tests/cpumap.c
··· 211 211 return ret; 212 212 } 213 213 214 - DEFINE_SUITE("Synthesize cpu map", cpu_map_synthesize); 215 - DEFINE_SUITE("Print cpu map", cpu_map_print); 216 - DEFINE_SUITE("Merge cpu map", cpu_map_merge); 217 - DEFINE_SUITE("Intersect cpu map", cpu_map_intersect); 214 + static struct test_case tests__cpu_map[] = { 215 + TEST_CASE("Synthesize cpu map", cpu_map_synthesize), 216 + TEST_CASE("Print cpu map", cpu_map_print), 217 + TEST_CASE("Merge cpu map", cpu_map_merge), 218 + TEST_CASE("Intersect cpu map", cpu_map_intersect), 219 + { .name = NULL, } 220 + }; 221 + 222 + struct test_suite suite__cpu_map = { 223 + .desc = "CPU map", 224 + .test_cases = tests__cpu_map, 225 + };
+1 -4
tools/perf/tests/tests.h
··· 118 118 DECLARE_SUITE(session_topology); 119 119 DECLARE_SUITE(thread_map_synthesize); 120 120 DECLARE_SUITE(thread_map_remove); 121 - DECLARE_SUITE(cpu_map_synthesize); 121 + DECLARE_SUITE(cpu_map); 122 122 DECLARE_SUITE(synthesize_stat_config); 123 123 DECLARE_SUITE(synthesize_stat); 124 124 DECLARE_SUITE(synthesize_stat_round); 125 125 DECLARE_SUITE(event_update); 126 126 DECLARE_SUITE(event_times); 127 127 DECLARE_SUITE(backward_ring_buffer); 128 - DECLARE_SUITE(cpu_map_print); 129 - DECLARE_SUITE(cpu_map_merge); 130 - DECLARE_SUITE(cpu_map_intersect); 131 128 DECLARE_SUITE(sdt_event); 132 129 DECLARE_SUITE(is_printable_array); 133 130 DECLARE_SUITE(bitmap_print);