Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtimer.c26 } hmap SEC(".maps");
264 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
266 if (bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME) != 0) in BPF_PROG2()
288 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
289 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
291 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIME); in BPF_PROG2()
293 bpf_map_update_elem(&hmap, &key, &init, 0); in BPF_PROG2()
306 bpf_map_update_elem(&hmap, &key, &init, 0); in timer_cb3()
307 val = bpf_map_lookup_elem(&hmap, &key); in timer_cb3()
309 bpf_timer_init(&val->timer, &hmap, CLOCK_BOOTTIM in timer_cb3()
[all...]
H A Dtask_work_stress.c31 } hmap SEC(".maps");
47 work = bpf_map_lookup_elem(&hmap, &key); in schedule_task_work()
49 bpf_map_update_elem(&hmap, &key, &empty_work, BPF_NOEXIST); in schedule_task_work()
50 work = bpf_map_lookup_elem(&hmap, &key); in schedule_task_work()
54 err = bpf_task_work_schedule_signal(bpf_get_current_task_btf(), &work->tw, &hmap, in schedule_task_work()
69 err = bpf_map_delete_elem(&hmap, &key); in delete_task_work()
H A Dtask_work_fail.c26 } hmap SEC(".maps");
56 bpf_task_work_schedule_resume(task, &work->tw, &hmap, process_work); in mismatch_map()
68 bpf_task_work_schedule_resume(task, &tw, &hmap, process_work); in no_map_task_work()
79 bpf_task_work_schedule_resume(task, NULL, &hmap, process_work); in task_work_null()
H A Dtask_work.c27 } hmap SEC(".maps");
62 err = bpf_map_update_elem(&hmap, &key, &empty_work, BPF_NOEXIST); in oncpu_hash_map()
65 work = bpf_map_lookup_elem(&hmap, &key); in oncpu_hash_map()
68 bpf_task_work_schedule_resume(task, &work->tw, &hmap, process_work); in oncpu_hash_map()
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.c32 } hmap SEC(".maps");
106 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in reject_async_callback_throw()
/linux/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/fs/xfs/scrub/
H A Dreap.c1352 struct xfs_bmbt_irec hmap; in xreap_bmapi_binval() local
1355 error = xfs_bmapi_read(rs->ip, off, max_off - off, &hmap, in xreap_bmapi_binval()
1359 if (nhmaps != 1 || hmap.br_startblock == DELAYSTARTBLOCK) { in xreap_bmapi_binval()
1364 if (!xfs_bmap_is_real_extent(&hmap)) in xreap_bmapi_binval()
1367 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()