Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtimer.c22 } hmap SEC(".maps");
233 val = bpf_map_lookup_elem(&hmap, &key); in bpf_timer_test()
257 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
258 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
260 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME); in BPF_PROG2()
262 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
275 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
276 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
279 bpf_map_delete_elem(&hmap, &key); in BPF_PROG2()
280 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
[all …]
H A Dasync_stack_depth.c16 } hmap SEC(".maps");
39 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in pseudo_call_check()
54 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in async_call_root_check()
H A Dtest_spin_lock.c19 } hmap SEC(".maps");
60 val = bpf_map_lookup_elem(&hmap, &key); in bpf_spin_lock_test()
62 bpf_map_update_elem(&hmap, &key, &zero, 0); in bpf_spin_lock_test()
63 val = bpf_map_lookup_elem(&hmap, &key); in bpf_spin_lock_test()
H A Dtimer_crash.c24 } hmap SEC(".maps");
33 void *map = crash_map ? (void *)&hmap : (void *)&amap; in sys_enter()
H A Dwq.c24 } hmap SEC(".maps");
168 return test_hmap_elem_callback(&hmap, &key, wq_callback); in test_call_hash_sleepable()
H A Dexceptions_fail.c27 } hmap SEC(".maps");
101 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in reject_async_callback_throw()
/linux-6.15/tools/testing/selftests/hid/progs/
H A Dhid.c456 } hmap SEC(".maps");
479 if (bpf_map_update_elem(&hmap, key, &init, 0)) in test_inject_input_report_callback()
482 val = bpf_map_lookup_elem(&hmap, key); in test_inject_input_report_callback()
487 if (bpf_wq_init(wq, &hmap, 0) != 0) in test_inject_input_report_callback()
/linux-6.15/fs/xfs/scrub/
H A Dreap.c1079 struct xfs_bmbt_irec hmap; in xreap_bmapi_binval() local
1082 error = xfs_bmapi_read(ip, off, max_off - off, &hmap, in xreap_bmapi_binval()
1086 if (nhmaps != 1 || hmap.br_startblock == DELAYSTARTBLOCK) { in xreap_bmapi_binval()
1091 if (!xfs_bmap_is_real_extent(&hmap)) in xreap_bmapi_binval()
1094 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()