Home
last modified time | relevance | path

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

1234

/tools/testing/selftests/bpf/map_tests/
Darray_map_batch_ops.c76 .value_size = sizeof(__s64), in __test_map_lookup_and_update_batch()
82 int err, step, value_size; in __test_map_lookup_and_update_batch() local
94 value_size = sizeof(__s64); in __test_map_lookup_and_update_batch()
96 value_size *= nr_cpus; in __test_map_lookup_and_update_batch()
99 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
110 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_update_batch()
121 values + total * value_size, in __test_map_lookup_and_update_batch()
Dhtab_map_batch_ops.c83 int err, step, value_size; in __test_map_lookup_and_delete_batch() local
91 .value_size = sizeof(int), in __test_map_lookup_and_delete_batch()
103 value_size = is_pcpu ? sizeof(value) : sizeof(int); in __test_map_lookup_and_delete_batch()
131 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
150 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
162 total * value_size, in __test_map_lookup_and_delete_batch()
216 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_delete_batch()
225 total * value_size, in __test_map_lookup_and_delete_batch()
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c72 __u32 value_size; member
140 .value_size = 180,
195 .value_size = 68,
220 .value_size = 16,
261 .value_size = 48,
306 .value_size = 48,
328 .value_size = 4,
350 .value_size = 4,
372 .value_size = 4,
397 .value_size = 4,
[all …]
/tools/lib/bpf/
Dlibbpf_probes.c204 int key_size, value_size, max_entries, map_flags; in bpf_probe_map_type() local
210 value_size = sizeof(__u32); in bpf_probe_map_type()
216 value_size = sizeof(__u64); in bpf_probe_map_type()
220 value_size = sizeof(__u64); in bpf_probe_map_type()
226 value_size = sizeof(__u64); in bpf_probe_map_type()
238 value_size = 8; in bpf_probe_map_type()
247 value_size = 0; in bpf_probe_map_type()
293 attr.value_size = value_size; in bpf_probe_map_type()
/tools/perf/util/bpf_skel/
Dbperf_leader.bpf.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(struct bpf_perf_event_value));
25 __uint(value_size, sizeof(struct bpf_perf_event_value));
Dbperf_follower.bpf.c12 __uint(value_size, sizeof(struct bpf_perf_event_value));
19 __uint(value_size, sizeof(struct bpf_perf_event_value));
26 __uint(value_size, sizeof(__u32));
Dbpf_prog_profiler.bpf.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(struct bpf_perf_event_value));
26 __uint(value_size, sizeof(struct bpf_perf_event_value));
Dbperf_cgroup.bpf.c19 __uint(value_size, sizeof(int));
27 __uint(value_size, sizeof(__u32));
35 __uint(value_size, sizeof(struct bpf_perf_event_value));
43 __uint(value_size, sizeof(struct bpf_perf_event_value));
/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),
Dtest_pe_preserve_elems.c11 __uint(value_size, sizeof(int));
18 __uint(value_size, sizeof(int));
Dtest_map_in_map.c14 __uint(value_size, sizeof(__u32));
23 __uint(value_size, sizeof(__u32));
Dtest_queue_stack_map.h18 __uint(value_size, sizeof(__u32));
26 __uint(value_size, sizeof(__u32));
Dtailcall_bpf2bpf4.c9 __uint(value_size, sizeof(__u32));
16 __uint(value_size, sizeof(__u32));
Dtest_btf_map_in_map.c25 __uint(value_size, sizeof(int));
65 __uint(value_size, sizeof(int));
115 __uint(value_size, sizeof(int));
Dxdp_redirect_multi_kern.c18 __uint(value_size, sizeof(int));
25 __uint(value_size, sizeof(struct bpf_devmap_val));
Dtest_perf_buffer.c12 __uint(value_size, sizeof(int));
Dxdp_redirect_map.c10 __uint(value_size, sizeof(int));
/tools/bpf/bpftool/
Dmap.c92 return malloc(round_up(info->value_size, 8) * in alloc_value()
95 return malloc(info->value_size); in alloc_value()
128 step = round_up(map_info->value_size, 8); in do_dump_btf()
168 print_hex_data_json(value, info->value_size); in print_entry_json()
183 step = round_up(info->value_size, 8); in print_entry_json()
197 info->value_size); in print_entry_json()
277 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain()
278 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain()
288 if (info->value_size) { in print_entry_plain()
290 fprint_hex(stdout, value, info->value_size, " "); in print_entry_plain()
[all …]
/tools/bpf/bpftool/skeleton/
Dprofiler.bpf.c17 __uint(value_size, sizeof(int));
24 __uint(value_size, sizeof(struct bpf_perf_event_value___local));
31 __uint(value_size, sizeof(struct bpf_perf_event_value___local));
38 __uint(value_size, sizeof(u64));
/tools/perf/tests/
Dbpf-script-test-relocation.c23 unsigned int value_size; member
31 .value_size = sizeof(int),
Dbpf-script-example.c23 unsigned int value_size; member
31 .value_size = sizeof(int),
/tools/perf/util/
Dbpf_map.c23 return malloc(round_up(def->value_size, 8) * sysconf(_SC_NPROCESSORS_CONF)); in bpf_map_def__alloc_value()
25 return malloc(def->value_size); in bpf_map_def__alloc_value()
/tools/perf/include/bpf/
Dbpf.h14 unsigned int value_size; member
25 .value_size = sizeof(type_val), \
Dstdio.h8 .value_size = sizeof(u32),

1234