Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 42) sorted by relevance

12

/tools/testing/selftests/vDSO/
Dparse_vdso.c134 ELF(Word) *hash = 0; in vdso_init_from_sysinfo_ehdr()
152 hash = (ELF(Word) *) in vdso_init_from_sysinfo_ehdr()
168 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr()
175 vdso_info.nbucket = hash[0]; in vdso_init_from_sysinfo_ehdr()
176 vdso_info.nchain = hash[1]; in vdso_init_from_sysinfo_ehdr()
177 vdso_info.bucket = &hash[2]; in vdso_init_from_sysinfo_ehdr()
178 vdso_info.chain = &hash[vdso_info.nbucket + 2]; in vdso_init_from_sysinfo_ehdr()
185 const char *name, ELF(Word) hash) in vdso_match_version()
218 return def->vd_hash == hash in vdso_match_version()
/tools/testing/selftests/bpf/progs/
Dtest_pkt_md_access.c38 TEST_FIELD(__u8, hash, 0xFF); in process()
39 TEST_FIELD(__u16, hash, 0xFFFF); in process()
40 TEST_FIELD(__u32, hash, 0xFFFFFFFF); in process()
Dtest_select_reuseport_kern.c83 data_check.hash = reuse_md->hash; in _select_by_skb_data()
Dtest_tcpnotify_kern.c70 .hash = 0xef, in bpf_testcb()
Dtest_l4lb_noinline.c218 __u32 hash = get_packet_hash(pckt, is_ipv6); in get_packet_dst() local
219 __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; in get_packet_dst()
222 if (hash != 0x358459b7 /* jhash of ipv4 packet */ && in get_packet_dst()
223 hash != 0x2f4bc6bb /* jhash of ipv6 packet */) in get_packet_dst()
Dtest_xdp_noinline.c555 __u32 *real_pos, hash, key; in get_packet_dst() local
564 hash = get_packet_hash(pckt, hash_16bytes); in get_packet_dst()
565 if (hash != 0x358459b7 /* jhash of ipv4 packet */ && in get_packet_dst()
566 hash != 0x2f4bc6bb /* jhash of ipv6 packet */) in get_packet_dst()
568 key = 2 * vip_info->vip_num + hash % 2; in get_packet_dst()
/tools/testing/selftests/filesystems/incfs/
Dutils.c64 uint8_t hash[SHA256_DIGEST_SIZE]; member
93 memcpy(sb->hash_section.hash, root_hash, SHA256_DIGEST_SIZE); in format_signature()
281 void sha256(const char *data, size_t dsize, char *hash) in sha256() argument
287 SHA256_Final((unsigned char *)hash, &ctx); in sha256()
290 void md5(const char *data, size_t dsize, char *hash) in md5() argument
296 MD5_Final((unsigned char *)hash, &ctx); in md5()
Dutils.h53 void sha256(const char *data, size_t dsize, char *hash);
55 void md5(const char *data, size_t dsize, char *hash);
/tools/testing/selftests/bpf/prog_tests/
Dskb_ctx.c59 skb.hash = 1; in test_skb_ctx()
62 skb.hash = 0; in test_skb_ctx()
/tools/testing/selftests/bpf/
Dtest_tcpnotify.h15 __u8 hash; member
Dtest_select_reuseport_common.h33 __u32 hash; member
Dtest_tcpnotify_user.c39 t->source != 0xbe || t->hash != 0xef) in dummyfn()
/tools/testing/selftests/bpf/verifier/
Dctx_skb.c484 offsetof(struct __sk_buff, hash)),
507 offsetof(struct __sk_buff, hash)),
510 offsetof(struct __sk_buff, hash) + 3),
521 offsetof(struct __sk_buff, hash) + 1),
531 offsetof(struct __sk_buff, hash) + 2),
542 offsetof(struct __sk_buff, hash) + 3),
545 offsetof(struct __sk_buff, hash)),
628 offsetof(struct __sk_buff, hash)),
651 offsetof(struct __sk_buff, hash)),
654 offsetof(struct __sk_buff, hash) + 2),
[all …]
/tools/objtool/
Delf.h44 struct hlist_node hash; member
58 struct hlist_node hash; member
Delf.c53 hash_for_each_possible(sec->symbol_hash, sym, hash, idx) in find_symbol_by_index()
107 hash_for_each_possible(sec->rela->rela_hash, rela, hash, o) in find_rela_by_dest_range()
295 hash_add(sym->sec->symbol_hash, &sym->hash, sym->idx); in read_symbols()
399 hash_add(sec->rela_hash, &rela->hash, rela->offset); in read_relas()
675 hash_del(&sym->hash); in elf_close()
680 hash_del(&rela->hash); in elf_close()
Dcheck.h30 struct hlist_node hash; member
Dorc_gen.c133 hash_add(ip_relasec->rela_hash, &rela->hash, rela->offset); in create_orc_entry()
/tools/perf/lib/
Devlist.c188 int hash; in perf_evlist__id_hash() local
193 hash = hash_64(sid->id, PERF_EVLIST__HLIST_BITS); in perf_evlist__id_hash()
194 hlist_add_head(&sid->node, &evlist->heads[hash]); in perf_evlist__id_hash()
/tools/bpf/bpftool/
Dbtf.c46 struct hlist_node hash; member
570 hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { in delete_btf_table()
571 hash_del(&obj->hash); in delete_btf_table()
667 hash_add(tab->table, &obj_node->hash, obj_node->btf_id); in build_btf_type_table()
714 hash_for_each_possible(btf_prog_table->table, obj, hash, info->id) { in show_btf_plain()
721 hash_for_each_possible(btf_map_table->table, obj, hash, info->id) { in show_btf_plain()
743 hash_for_each_possible(btf_prog_table->table, obj, hash, in show_btf_json()
752 hash_for_each_possible(btf_map_table->table, obj, hash, in show_btf_json()
Dcommon.c418 hash_add(tab->table, &obj_node->hash, obj_node->id); in build_pinned_obj_table()
434 hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { in delete_pinned_obj_table()
435 hash_del(&obj->hash); in delete_pinned_obj_table()
/tools/perf/bench/
DBuild4 perf-y += futex-hash.o
/tools/lib/bpf/
Dhashmap.c126 const void *key, size_t hash, in hashmap_find_entry() argument
135 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry()
/tools/testing/ktest/
Dconfig-bisect.pl249 my ($hash, $config) = @_;
259 ${$hash}{$2} = $1;
261 ${$hash}{$2} = $1;
/tools/perf/Documentation/
Dperf-bench.txt194 *hash*::
195 Suite for evaluating hash tables.
/tools/perf/util/
Devlist.c446 int hash; in perf_evlist__id2sid() local
448 hash = hash_64(id, PERF_EVLIST__HLIST_BITS); in perf_evlist__id2sid()
449 head = &evlist->core.heads[hash]; in perf_evlist__id2sid()
517 int hash; in perf_evlist__event2evsel() local
534 hash = hash_64(id, PERF_EVLIST__HLIST_BITS); in perf_evlist__event2evsel()
535 head = &evlist->core.heads[hash]; in perf_evlist__event2evsel()

12