Lines Matching +full:test +full:- +full:cpu

1 /* SPDX-License-Identifier: GPL-2.0 */
31 #define PHYS_ID_PATH "/sys/devices/system/cpu/cpu"
35 * CPU vendor IDs
78 * @cpu: CPU number to which the benchmark will be bound to
82 * NULL if user did not provide parameters and test
86 int cpu;
93 * resctrl_test: resctrl test definition
94 * @name: Test name
95 * @group: Test group - a common name for tests that share some characteristic
96 * (e.g., L3 CAT test belongs to the CAT group). Can be NULL
97 * @resource: Resource to test (e.g., MB, L3, L2, etc.)
98 * @vendor_specific: Bitmask for vendor-specific tests (can be 0 for universal tests)
99 * @disabled: Test is disabled
101 * @run_test: Callback to run the test
102 * @cleanup: Callback to cleanup after the test
110 bool (*feature_check)(const struct resctrl_test *test);
111 int (*run_test)(const struct resctrl_test *test,
117 * resctrl_val_param: resctrl test parameters
121 * @init: Callback function to initialize test environment
122 * @setup: Callback function to setup per test run environment
123 * @measure: Callback that performs the measurement (a single test)
126 * adapted to be relevant to the test. If user does
129 * appropriate for test. NULL if user provided
140 int (*setup)(const struct resctrl_test *test,
177 bool test_resource_feature_check(const struct resctrl_test *test);
184 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu,
195 int resctrl_val(const struct resctrl_test *test,
205 int signal_handler_register(const struct resctrl_test *test);
220 * cache_portion_size - Calculate the size of a cache portion