Home
last modified time | relevance | path

Searched refs:btf_key_type_id (Results 1 – 21 of 21) sorted by relevance

/linux/tools/lib/bpf/
H A Dlibbpf_probes.c286 __u32 btf_key_type_id = 0, btf_value_type_id = 0; in probe_map_create() local
316 btf_key_type_id = 1; in probe_map_create()
384 opts.btf_key_type_id = btf_key_type_id; in probe_map_create()
H A Dbpf.h44 __u32 btf_key_type_id; member
H A Dgen_loader.c470 attr.btf_key_type_id = map_attr->btf_key_type_id; in bpf_gen__map_create()
H A Dbpf.c194 attr.btf_key_type_id = OPTS_GET(opts, btf_key_type_id, 0); in bpf_map_create()
H A Dlibbpf.c539 __u32 btf_key_type_id; member
2755 map->btf_key_type_id = def->key_type_id; in fill_map_from_def()
4744 map->btf_key_type_id = 0; in map_fill_btf_type_info()
4845 map->btf_key_type_id = info.btf_key_type_id; in bpf_map__reuse_fd()
5125 create_attr.btf_key_type_id = map->btf_key_type_id; in bpf_object__create_map()
5162 create_attr.btf_key_type_id = 0; in bpf_object__create_map()
5164 map->btf_key_type_id = 0; in bpf_object__create_map()
5198 create_attr.btf_key_type_id = 0; in bpf_object__create_map()
5200 map->btf_key_type_id = 0; in bpf_object__create_map()
10217 map->btf_key_type_id = 0; in bpf_map__set_value_size()
[all …]
/linux/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c24 .btf_key_type_id = 1,
564 bad_xattr.btf_key_type_id = 0; in test_sk_storage_map_basic()
570 bad_xattr.btf_key_type_id = 3; in test_sk_storage_map_basic()
/linux/tools/bpf/bpftool/
H A Dbtf.c581 root_type_ids[root_type_cnt++] = info.btf_key_type_id; in do_dump()
589 root_type_ids[root_type_cnt++] = info.btf_key_type_id; in do_dump()
593 root_type_ids[root_type_cnt++] = info.btf_key_type_id; in do_dump()
H A Dmap.c81 if (map_info->btf_key_type_id) { in do_dump_btf()
84 ret = btf_dumper_type(d, map_info->btf_key_type_id, key); in do_dump_btf()
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage.c128 create_opts.btf_key_type_id = bpf_map__btf_key_type_id(inner_map); in __setup()
/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c114 .btf_key_type_id = 1, in load_prog()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c806 .btf_key_type_id = 1, in create_map_spin_lock()
825 .btf_key_type_id = 1, in create_sk_storage_map()
844 .btf_key_type_id = 1, in create_map_timer()
863 .btf_key_type_id = 1, in create_map_kptr()
/linux/kernel/bpf/
H A Dlocal_storage.c428 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in cgroup_storage_seq_show_elem()
H A Dsyscall.c1219 attr->btf_key_type_id || attr->btf_value_type_id) in map_create()
1221 } else if (attr->btf_key_type_id && !attr->btf_value_type_id) { in map_create()
1351 if (attr->btf_key_type_id || attr->btf_value_type_id || in map_create()
1374 err = map_check_btf(map, token, btf, attr->btf_key_type_id, in map_create()
1380 map->btf_key_type_id = attr->btf_key_type_id; in map_create()
4877 info.btf_key_type_id = map->btf_key_type_id; in bpf_map_get_info_by_fd()
H A Dbpf_local_storage.c678 !attr->btf_key_type_id || !attr->btf_value_type_id) in bpf_local_storage_map_alloc_check()
H A Dhashtab.c1586 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in htab_map_seq_show_elem()
2446 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in htab_percpu_map_seq_show_elem()
H A Darraymap.c494 if (map->btf_key_type_id) in array_map_seq_show_elem()
/linux/include/uapi/linux/
H A Dbpf.h1472 __u32 btf_key_type_id; /* BTF type_id of the key */ member
6599 __u32 btf_key_type_id; member
/linux/tools/include/uapi/linux/
H A Dbpf.h1472 __u32 btf_key_type_id; /* BTF type_id of the key */ member
6599 __u32 btf_key_type_id; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4396 opts.btf_key_type_id = test->key_type_id; in do_test_raw()
4625 opts.btf_key_type_id = 1; in test_btf_id()
4637 map_info.btf_key_type_id != 1 || map_info.btf_value_type_id != 2, in test_btf_id()
4639 err, errno, info[0].id, map_info.btf_id, map_info.btf_key_type_id, in test_btf_id()
5449 opts.btf_key_type_id = test->key_type_id; in do_test_pprint()
/linux/Documentation/bpf/
H A Dbtf.rst608 __u32 btf_key_type_id; /* BTF type_id of the key */
/linux/include/linux/
H A Dbpf.h274 u32 btf_key_type_id; member