Home
last modified time | relevance | path

Searched refs:value_size (Results 1 – 25 of 132) sorted by relevance

123456

/Linux-v5.4/kernel/bpf/
Dqueue_stack_maps.c53 attr->value_size == 0 || in queue_stack_map_alloc_check()
58 if (attr->value_size > KMALLOC_MAX_SIZE) in queue_stack_map_alloc_check()
75 cost = queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
124 memset(value, 0, qs->map.value_size); in __queue_map_get()
129 ptr = &qs->elements[qs->tail * qs->map.value_size]; in __queue_map_get()
130 memcpy(value, ptr, qs->map.value_size); in __queue_map_get()
154 memset(value, 0, qs->map.value_size); in __stack_map_get()
163 ptr = &qs->elements[index * qs->map.value_size]; in __stack_map_get()
164 memcpy(value, ptr, qs->map.value_size); in __stack_map_get()
228 dst = &qs->elements[qs->head * qs->map.value_size]; in queue_stack_map_push_elem()
[all …]
Dmap_in_map.c55 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
83 meta0->value_size == meta1->value_size && in bpf_map_meta_equal()
Dstackmap.c63 u32 elem_size = sizeof(struct stack_map_bucket) + smap->map.value_size; in prealloc_elems_and_freelist()
87 u32 value_size = attr->value_size; in stack_map_alloc() local
101 value_size < 8 || value_size % 8) in stack_map_alloc()
106 if (value_size % sizeof(struct bpf_stack_build_id) || in stack_map_alloc()
107 value_size / sizeof(struct bpf_stack_build_id) in stack_map_alloc()
110 } else if (value_size / 8 > sysctl_perf_event_max_stack) in stack_map_alloc()
117 cost += n_buckets * (value_size + sizeof(struct stack_map_bucket)); in stack_map_alloc()
129 smap->map.value_size = value_size; in stack_map_alloc()
351 u32 max_depth = map->value_size / stack_map_data_size(map); in BPF_CALL_3()
534 memset(value + trace_len, 0, map->value_size - trace_len); in bpf_stackmap_copy()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf.c110 __u32 value_size; member
178 .value_size = 180,
233 .value_size = 68,
258 .value_size = 16,
299 .value_size = 48,
344 .value_size = 48,
366 .value_size = 4,
388 .value_size = 4,
410 .value_size = 4,
435 .value_size = 4,
[all …]
/Linux-v5.4/samples/bpf/
Dmap_perf_test_kern.c19 .value_size = sizeof(long),
26 .value_size = sizeof(long),
33 .value_size = sizeof(long),
41 .value_size = sizeof(long),
56 .value_size = sizeof(long),
63 .value_size = sizeof(long),
71 .value_size = sizeof(long),
79 .value_size = sizeof(long),
87 .value_size = sizeof(long),
94 .value_size = sizeof(long),
Dxdp_monitor_kern.c12 .value_size = sizeof(u64),
21 .value_size = sizeof(u64),
135 .value_size = sizeof(struct datarec),
142 .value_size = sizeof(struct datarec),
216 .value_size = sizeof(struct datarec),
Dxdp_router_ipv4_kern.c48 .value_size = sizeof(struct trie_value),
57 .value_size = sizeof(u64),
65 .value_size = sizeof(__be64),
73 .value_size = sizeof(struct direct_map),
80 .value_size = sizeof(int),
Dtracex6_kern.c9 .value_size = sizeof(u32),
15 .value_size = sizeof(u64),
21 .value_size = sizeof(struct bpf_perf_event_value),
Dtest_map_in_map_kern.c21 .value_size = sizeof(int),
29 .value_size = sizeof(int),
37 .value_size = sizeof(int),
45 .value_size = sizeof(int),
Dspintest_kern.c17 .value_size = sizeof(long),
23 .value_size = sizeof(long),
30 .value_size = PERF_MAX_STACK_DEPTH * sizeof(u64),
Doffwaketime_kern.c28 .value_size = sizeof(u64),
35 .value_size = sizeof(u64),
47 .value_size = sizeof(struct wokeby_t),
54 .value_size = PERF_MAX_STACK_DEPTH * sizeof(u64),
Dxdp_rxq_info_kern.c29 .value_size = sizeof(struct config),
42 .value_size = sizeof(struct datarec),
52 .value_size = sizeof(struct datarec),
Dxdp_redirect_cpu_kern.c24 .value_size = sizeof(u32),
41 .value_size = sizeof(struct datarec),
49 .value_size = sizeof(struct datarec),
58 .value_size = sizeof(struct datarec),
66 .value_size = sizeof(struct datarec),
76 .value_size = sizeof(u32),
82 .value_size = sizeof(u32),
88 .value_size = sizeof(u32),
96 .value_size = sizeof(struct datarec),
Dtest_current_task_under_cgroup_kern.c17 .value_size = sizeof(u32),
24 .value_size = sizeof(u64),
/Linux-v5.4/tools/bpf/bpftool/
Dmap.c88 return malloc(round_up(info->value_size, 8) * in alloc_value()
91 return malloc(info->value_size); in alloc_value()
175 step = round_up(map_info->value_size, 8); in do_dump_btf()
216 print_hex_data_json(value, info->value_size); in print_entry_json()
231 step = round_up(info->value_size, 8); in print_entry_json()
245 info->value_size); in print_entry_json()
290 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain()
291 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain()
301 if (info->value_size) { in print_entry_plain()
303 fprint_hex(stdout, value, info->value_size, " "); in print_entry_plain()
[all …]
/Linux-v5.4/tools/lib/bpf/
Dlibbpf_probes.c195 int key_size, value_size, max_entries, map_flags; in bpf_probe_map_type() local
201 value_size = sizeof(__u32); in bpf_probe_map_type()
207 value_size = sizeof(__u64); in bpf_probe_map_type()
211 value_size = sizeof(__u64); in bpf_probe_map_type()
217 value_size = sizeof(__u64); in bpf_probe_map_type()
227 value_size = 8; in bpf_probe_map_type()
276 attr.value_size = value_size; in bpf_probe_map_type()
Dbpf.c87 attr.value_size = create_attr->value_size; in bpf_create_map_xattr()
104 int key_size, int value_size, int max_entries, in bpf_create_map_node() argument
113 map_attr.value_size = value_size; in bpf_create_map_node()
124 int value_size, int max_entries, __u32 map_flags) in bpf_create_map() argument
131 map_attr.value_size = value_size; in bpf_create_map()
138 int key_size, int value_size, int max_entries, in bpf_create_map_name() argument
147 map_attr.value_size = value_size; in bpf_create_map_name()
163 attr.value_size = 4; in bpf_create_map_in_map_node()
Dbpf.h44 __u32 value_size; member
57 int key_size, int value_size,
60 int key_size, int value_size,
63 int value_size, int max_entries, __u32 map_flags);
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dpipe.c136 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
137 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
142 action_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare()
143 action_value->value = kmalloc(action_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare()
419 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
420 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
430 match_value->value_size = sizeof(u32); in mlxsw_sp_dpipe_table_host_entry_prepare()
433 match_value->value_size = sizeof(struct in6_addr); in mlxsw_sp_dpipe_table_host_entry_prepare()
440 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_dpipe_table_host_entry_prepare()
445 action_value->value_size = sizeof(u64); in mlxsw_sp_dpipe_table_host_entry_prepare()
[all …]
/Linux-v5.4/drivers/md/persistent-data/
Ddm-btree-internal.h35 __le32 value_size; member
120 uint32_t value_size = le32_to_cpu(n->header.value_size); in value_ptr() local
121 return value_base(n) + (value_size * index); in value_ptr()
Ddm-btree-remove.c59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift() local
70 (nr_entries - shift) * value_size); in node_shift()
78 nr_entries * value_size); in node_shift()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy() local
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
96 shift * value_size); in node_copy()
104 shift * value_size); in node_copy()
115 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at() local
125 nr_to_copy * value_size); in delete_at()
/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dsockmap_verdict_prog.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(int));
25 __uint(value_size, sizeof(int));
Dsample_map_ret0.c8 .value_size = sizeof(long),
15 .value_size = sizeof(long),
/Linux-v5.4/scripts/dtc/
Dfdtput.c60 int value_size = 0; /* size of holding area */ in encode_value() local
83 if (upto + len > value_size) { in encode_value()
84 value_size = (upto + len) + 500; in encode_value()
85 value = realloc(value, value_size); in encode_value()
88 "%d bytes\n", value_size); in encode_value()
/Linux-v5.4/tools/perf/tests/
Dbpf-script-test-relocation.c23 unsigned int value_size; member
31 .value_size = sizeof(int),

123456