Lines Matching refs:sample_n_cpus
158 int sample_n_cpus; variable
453 rec = calloc(1, sizeof(*rec) + sample_n_cpus * sizeof(struct record)); in alloc_stats_record()
514 for (i = 0; i < sample_n_cpus; i++) { in alloc_stats_record()
553 for (i = 0; i < sample_n_cpus; i++) in free_stats_record()
700 for (to_cpu = 0; to_cpu < sample_n_cpus; to_cpu++) { in stats_get_cpumap_enqueue()
1197 sample_n_cpus = libbpf_num_possible_cpus(); in sample_setup_maps()
1206 sample_map_count[i] = sample_n_cpus; in sample_setup_maps()
1210 XDP_REDIRECT_ERR_MAX * sample_n_cpus; in sample_setup_maps()
1213 sample_map_count[i] = XDP_ACTION_MAX * sample_n_cpus; in sample_setup_maps()
1215 sample_map_count[i] = sample_n_cpus * sample_n_cpus; in sample_setup_maps()
1398 map_collect_percpu(&sample_mmap[MAP_REDIRECT_ERR][i * sample_n_cpus], in sample_stats_collect()
1403 for (i = 0; i < sample_n_cpus; i++) in sample_stats_collect()
1404 map_collect_percpu(&sample_mmap[MAP_CPUMAP_ENQUEUE][i * sample_n_cpus], in sample_stats_collect()
1413 map_collect_percpu(&sample_mmap[MAP_EXCEPTION][i * sample_n_cpus], in sample_stats_collect()