Home
last modified time | relevance | path

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

/linux/samples/bpf/
H A Dxdp_sample_user.c150 struct datarec *sample_mmap[NUM_MAP]; variable
1232 sample_mmap[i] = mmap(NULL, size, PROT_READ | PROT_WRITE, in sample_setup_maps_mappings()
1234 if (sample_mmap[i] == MAP_FAILED) in sample_setup_maps_mappings()
1368 size = sample_map_count[i] * sizeof(**sample_mmap); in sample_exit()
1369 munmap(sample_mmap[i], size); in sample_exit()
1391 map_collect_percpu(sample_mmap[MAP_RX], &rec->rx_cnt); in sample_stats_collect()
1394 map_collect_percpu(sample_mmap[MAP_REDIRECT_ERR], &rec->redir_err[0]); in sample_stats_collect()
1398 map_collect_percpu(&sample_mmap[MAP_REDIRECT_ERR][i * sample_n_cpus], in sample_stats_collect()
1404 map_collect_percpu(&sample_mmap[MAP_CPUMAP_ENQUEUE][i * sample_n_cpus], in sample_stats_collect()
1408 map_collect_percpu(sample_mmap[MAP_CPUMAP_KTHREAD], in sample_stats_collect()
[all …]