Home
last modified time | relevance | path

Searched refs:sample_n_cpus (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/samples/bpf/
Dxdp_sample_user.c158 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()
[all …]