7 #include <linux/bitops.h> 23 data = &map_event->
data;
31 for (i = 0; i < 20; i++) {
38 for (i = 0; i < 20; i++) {
56 data = &map_event->
data;
81 cpus =
cpu_map__new(
"0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19");
107 return !strcmp(buf, str);
114 TEST_ASSERT_VAL(
"failed to convert map",
cpu_map_print(
"1,3,5,7,9,11,13,15,17,19,21-40"));
int test__cpu_map_synthesize(struct test *test __maybe_unused, int subtest __maybe_unused)
#define TEST_ASSERT_VAL(text, cond)
struct cpu_map * cpu_map__new_data(struct cpu_map_data *data)
int perf_event__synthesize_cpu_map(struct perf_tool *tool, struct cpu_map *map, perf_event__handler_t process, struct machine *machine)
size_t cpu_map__snprint(struct cpu_map *map, char *buf, size_t size)
void cpu_map__put(struct cpu_map *map)
static int process_event_mask(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused)
static struct perf_tool tool
static int str(yyscan_t scanner, int token)
int test__cpu_map_print(struct test *test __maybe_unused, int subtest __maybe_unused)
static int process_event_cpus(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused)
struct cpu_map * cpu_map__new(const char *cpu_list)
static int cpu_map_print(const char *str)