Home
last modified time | relevance | path

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

/samples/cgroup/
A Dmemcg_event_listener.c114 } map[] = { in read_memcg_events() local
153 for (i = 0; i < ARRAY_SIZE(map); ++i) { in read_memcg_events()
161 map[i].name); in read_memcg_events()
169 ret = get_memcg_counter(line, map[i].name, map[i].new); in read_memcg_events()
176 for (i = 0; i < ARRAY_SIZE(map); ++i) { in read_memcg_events()
179 if (*map[i].new > *map[i].old) { in read_memcg_events()
180 diff = *map[i].new - *map[i].old; in read_memcg_events()
185 diff, map[i].name, in read_memcg_events()
187 *map[i].old, *map[i].new); in read_memcg_events()
189 *map[i].old += diff; in read_memcg_events()
/samples/bpf/
A Dsyscall_tp_kern.c46 static __always_inline void count(void *map) in count() argument
51 value = bpf_map_lookup_elem(map, &key); in count()
55 bpf_map_update_elem(map, &key, &init_val, BPF_NOEXIST); in count()
A Dtracex6.bpf.c56 int BPF_KPROBE(bpf_prog2, struct bpf_map *map) in BPF_KPROBE() argument
63 type = BPF_CORE_READ(map, map_type); in BPF_KPROBE()
A Dmap_perf_test_user.c405 struct bpf_map *map; in fixup_map() local
408 bpf_object__for_each_map(map, obj) { in fixup_map()
409 const char *name = bpf_map__name(map); in fixup_map()
415 bpf_map__set_max_entries(map, num_map_entries); in fixup_map()
430 struct bpf_map *map; in main() local
453 map = bpf_object__find_map_by_name(obj, "inner_lru_hash_map"); in main()
454 if (libbpf_get_error(map)) { in main()
459 inner_lru_hash_size = bpf_map__max_entries(map); in main()
A Dxdp_sample.bpf.c98 const struct bpf_map *map, u32 index) in BPF_PROG() argument
106 const struct bpf_map *map, u32 index) in BPF_PROG() argument
114 const struct bpf_map *map, u32 index) in BPF_PROG() argument
122 const struct bpf_map *map, u32 index) in BPF_PROG() argument
/samples/vfio-mdev/
A Dmbochs.c446 char *map; in mdev_access() local
483 map = kmap(pg); in mdev_access()
485 memcpy(map + poff, buf, count); in mdev_access()
487 memcpy(buf, map + poff, count); in mdev_access()

Completed in 11 milliseconds