Lines Matching defs:max
1108 struct perf_cpu_map *map, int max)
1112 mask->nr = BITS_TO_LONGS(max);
1124 static size_t mask_size(struct perf_cpu_map *map, int *max)
1128 *max = 0;
1134 if (bit > *max)
1135 *max = bit;
1138 return sizeof(struct perf_record_record_cpu_map) + BITS_TO_LONGS(*max) * sizeof(long);
1141 void *cpu_map_data__alloc(struct perf_cpu_map *map, size_t *size, u16 *type, int *max)
1160 size_mask = mask_size(map, max);
1176 u16 type, int max)
1185 synthesize_mask((struct perf_record_record_cpu_map *)data->data, map, max);
1195 int max;
1198 event = cpu_map_data__alloc(map, &size, &type, &max);
1206 cpu_map_data__synthesize(&event->data, map, type, max);
1768 int max, err;
1774 ev = cpu_map_data__alloc(evsel->core.own_cpus, &size, &type, &max);
1784 evsel->core.own_cpus, type, max);