Searched refs:bpf_map_lookup_elem (Results 1 - 25 of 216) sorted by relevance

123456789

/linux-master/tools/testing/selftests/bpf/progs/
H A Dmap_kptr_fail.c31 v = bpf_map_lookup_elem(&array_map, &key);
45 v = bpf_map_lookup_elem(&array_map, &key);
63 v = bpf_map_lookup_elem(&array_map, &key);
81 v = bpf_map_lookup_elem(&array_map, &key);
96 v = bpf_map_lookup_elem(&array_map, &key);
110 v = bpf_map_lookup_elem(&array_map, &key);
133 v = bpf_map_lookup_elem(&array_map, &key);
152 v = bpf_map_lookup_elem(&array_map, &key);
167 v = bpf_map_lookup_elem(&array_map, &key);
184 v = bpf_map_lookup_elem(
[all...]
H A Dtest_sockmap_kern.h99 f = bpf_map_lookup_elem(&sock_skb_opts, &two);
120 f = bpf_map_lookup_elem(&sock_skb_opts, &zero);
156 f = bpf_map_lookup_elem(&sock_skb_opts, &one);
176 f = bpf_map_lookup_elem(&sock_skb_opts, &one);
240 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero);
243 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero);
246 start = bpf_map_lookup_elem(&sock_bytes, &zero);
247 end = bpf_map_lookup_elem(&sock_bytes, &one);
250 start_push = bpf_map_lookup_elem(&sock_bytes, &two);
251 end_push = bpf_map_lookup_elem(
[all...]
H A Dtest_map_in_map.c32 map = bpf_map_lookup_elem(&mim_array, &key);
37 value_p = bpf_map_lookup_elem(map, &key);
41 map = bpf_map_lookup_elem(&mim_hash, &key);
H A Dsample_map_ret0.c26 value = bpf_map_lookup_elem(&htab, &key);
29 value = bpf_map_lookup_elem(&array, &key64);
H A Dtest_obj_id.c21 value = bpf_map_lookup_elem(&test_map_id, &key);
H A Dlsm.c122 value = bpf_map_lookup_elem(&array, &key);
125 value = bpf_map_lookup_elem(&hash, &key);
128 value = bpf_map_lookup_elem(&lru_hash, &key);
131 value = bpf_map_lookup_elem(&percpu_array, &key);
134 value = bpf_map_lookup_elem(&percpu_hash, &key);
137 value = bpf_map_lookup_elem(&lru_percpu_hash, &key);
140 inner_map = bpf_map_lookup_elem(&outer_arr, &key);
142 value = bpf_map_lookup_elem(inner_map, &key);
146 inner_map = bpf_map_lookup_elem(&outer_hash, &key);
148 value = bpf_map_lookup_elem(inner_ma
[all...]
H A Dtimer.c79 lru_timer = bpf_map_lookup_elem(&lru, &lru_key);
105 bpf_map_lookup_elem(map, &lru_key);
130 arr_timer = bpf_map_lookup_elem(&array, &array_key);
136 lru_timer = bpf_map_lookup_elem(&lru, &lru_key);
148 arr_timer = bpf_map_lookup_elem(&array, &array_key);
172 arr_timer = bpf_map_lookup_elem(&array, &array_key);
232 val = bpf_map_lookup_elem(&hmap, &key);
239 val = bpf_map_lookup_elem(&hmap_malloc, &key_malloc);
257 val = bpf_map_lookup_elem(&hmap, &key);
264 val = bpf_map_lookup_elem(
[all...]
H A Dtwfw.c43 const struct twfw_tier_value* tier = bpf_map_lookup_elem(&tiers, &key);
47 struct rule* rule = bpf_map_lookup_elem(&rules, &key);
H A Dget_cgroup_id_kern.c28 expected_pid = bpf_map_lookup_elem(&pidmap, &key);
32 val = bpf_map_lookup_elem(&cg_ids, &key);
H A Dtest_legacy_printk.c32 my_pid = bpf_map_lookup_elem(&my_pid_map, &zero);
40 my_res = bpf_map_lookup_elem(&res_map, &zero);
H A Dtest_log_fixup.c57 value = bpf_map_lookup_elem(&existing_map, &zero);
59 value = bpf_map_lookup_elem(&missing_map, &zero);
H A Dlinked_maps2.c61 value_struct = bpf_map_lookup_elem(&map1, &key_struct);
65 val = bpf_map_lookup_elem(&map2, &key);
69 val = bpf_map_lookup_elem(&map_weak, &key);
H A Dlinked_maps1.c67 value_struct = bpf_map_lookup_elem(&map1, &key_struct);
71 val = bpf_map_lookup_elem(&map2, &key);
75 val = bpf_map_lookup_elem(&map_weak, &key);
H A Dtimer_mim_reject.c56 inner_map = bpf_map_lookup_elem(&outer_arr, &array_key);
60 inner_map2 = bpf_map_lookup_elem(&outer_arr, &array_key2);
64 val = bpf_map_lookup_elem(inner_map, &hash_key);
H A Dtimer_mim.c59 bpf_map_lookup_elem(map, key);
73 inner_map = bpf_map_lookup_elem(&outer_arr, &array_key);
78 val = bpf_map_lookup_elem(inner_map, &hash_key);
/linux-master/tools/perf/include/bpf/
H A Dpid_filter.h18 return bpf_map_lookup_elem(pids, &pid) != NULL;
/linux-master/samples/bpf/
H A Dcpustat_kern.c116 cts = bpf_map_lookup_elem(&my_map, &key);
121 cstate = bpf_map_lookup_elem(&my_map, &key);
126 pts = bpf_map_lookup_elem(&my_map, &key);
131 pstate = bpf_map_lookup_elem(&my_map, &key);
176 val = bpf_map_lookup_elem(&pstate_duration, &key);
199 val = bpf_map_lookup_elem(&cstate_duration, &key);
221 pts = bpf_map_lookup_elem(&my_map, &key);
226 pstate = bpf_map_lookup_elem(&my_map, &key);
231 cstate = bpf_map_lookup_elem(&my_map, &key);
273 val = bpf_map_lookup_elem(
[all...]
H A Dibumad_kern.c85 val = bpf_map_lookup_elem(&read_count, &class);
88 val = bpf_map_lookup_elem(&read_count, &class);
105 val = bpf_map_lookup_elem(&read_count, &class);
108 val = bpf_map_lookup_elem(&read_count, &class);
125 val = bpf_map_lookup_elem(&write_count, &class);
128 val = bpf_map_lookup_elem(&write_count, &class);
H A Dsockex1_user.c49 assert(bpf_map_lookup_elem(map_fd, &key, &tcp_cnt) == 0);
52 assert(bpf_map_lookup_elem(map_fd, &key, &udp_cnt) == 0);
55 assert(bpf_map_lookup_elem(map_fd, &key, &icmp_cnt) == 0);
H A Dlathist_kern.c32 u64 *ts = bpf_map_lookup_elem(&my_map, &cpu);
79 ts = bpf_map_lookup_elem(&my_map, &cpu);
90 val = bpf_map_lookup_elem(&my_lat, &key);
/linux-master/tools/perf/tests/
H A Dbpf-script-example.c15 static void *(*bpf_map_lookup_elem)(void *map, void *key) = variable
50 int *flag = bpf_map_lookup_elem(&flip_table, &ind);
/linux-master/tools/perf/util/bpf_skel/
H A Dfunc_latency.bpf.c58 ok = bpf_map_lookup_elem(&cpu_filter, &cpu);
67 ok = bpf_map_lookup_elem(&task_filter, &pid);
91 start = bpf_map_lookup_elem(&functime, &tid);
108 hist = bpf_map_lookup_elem(&latency, &key);
H A Dbperf_follower.bpf.c58 accum_key = bpf_map_lookup_elem(&filter, &filter_key);
63 diff_val = bpf_map_lookup_elem(&diff_readings, &zero);
67 accum_val = bpf_map_lookup_elem(&accum_readings, accum_key);
H A Dbpf_prog_profiler.bpf.c41 ptr = bpf_map_lookup_elem(&fentry_readings, &zero);
58 before = bpf_map_lookup_elem(&fentry_readings, &zero);
67 accum = bpf_map_lookup_elem(&accum_readings, &zero);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_map_in_map.c53 bpf_map_lookup_elem(map1_fd, &key, &val);
55 bpf_map_lookup_elem(map2_fd, &key, &val);
57 bpf_map_lookup_elem(map3_fd, &key, &val);
66 bpf_map_lookup_elem(map1_fd, &key, &val);
68 bpf_map_lookup_elem(map2_fd, &key, &val);
70 bpf_map_lookup_elem(map4_fd, &key, &val);
77 bpf_map_lookup_elem(map5_fd, &key, &val);

Completed in 135 milliseconds

123456789