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

1 /* SPDX-License-Identifier: GPL-2.0 */
30 #define PHYS_ID_PATH "/sys/devices/system/cpu/cpu"
34 * CPU vendor IDs
76 * @cpu: CPU number to which the benchmark will be bound to
80 * NULL if user did not provide parameters and test
84 int cpu; member
91 * resctrl_test: resctrl test definition
92 * @name: Test name
93 * @group: Test group - a common name for tests that share some characteristic
94 * (e.g., L3 CAT test belongs to the CAT group). Can be NULL
95 * @resource: Resource to test (e.g., MB, L3, L2, etc.)
96 * @vendor_specific: Bitmask for vendor-specific tests (can be 0 for universal tests)
97 * @disabled: Test is disabled
99 * @run_test: Callback to run the test
100 * @cleanup: Callback to cleanup after the test
108 bool (*feature_check)(const struct resctrl_test *test);
109 int (*run_test)(const struct resctrl_test *test,
115 * resctrl_val_param: resctrl test parameters
119 * @init: Callback function to initialize test environment
120 * @setup: Callback function to setup per test run environment
121 * @measure: Callback that performs the measurement (a single test)
124 * adapted to be relevant to the test. If user does
127 * appropriate for test. NULL if user provided
138 int (*setup)(const struct resctrl_test *test,
175 bool test_resource_feature_check(const struct resctrl_test *test);
182 int perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu,
193 int resctrl_val(const struct resctrl_test *test,
203 int signal_handler_register(const struct resctrl_test *test);
218 * cache_portion_size - Calculate the size of a cache portion