Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 207) sorted by relevance

123456789

/tools/perf/util/
Dsrccode.c92 struct srcfile *h; in find_srcfile() local
97 hlist_for_each_entry (h, &srcfile_htab[hval], hash_nd) { in find_srcfile()
98 if (!strcmp(fn, h->fn)) { in find_srcfile()
100 list_del(&h->nd); in find_srcfile()
101 list_add(&h->nd, &srcfile_list); in find_srcfile()
102 return h; in find_srcfile()
110 h = list_entry(srcfile_list.prev, struct srcfile, nd); in find_srcfile()
111 free_srcfile(h); in find_srcfile()
120 h = malloc(sizeof(struct srcfile)); in find_srcfile()
121 if (!h) in find_srcfile()
[all …]
Dfncache.c21 unsigned h = 0; in shash() local
23 h = 65599 * h + *s++; in shash()
24 return h ^ (h >> 16); in shash()
29 int h = shash((const unsigned char *)name) % FNHSIZE; in lookup_fncache() local
32 hlist_for_each_entry(n, &fncache_hash[h], nd) { in lookup_fncache()
44 int h = shash((const unsigned char *)name) % FNHSIZE; in update_fncache() local
50 hlist_add_head(&n->nd, &fncache_hash[h]); in update_fncache()
Dhashmap.c106 size_t h, bkt; in hashmap_grow() local
118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
119 hashmap_add_entry(&new_buckets[h], cur); in hashmap_grow()
159 size_t h; in hashmap__insert() local
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
169 hashmap_find_entry(map, key, h, NULL, &entry)) { in hashmap__insert()
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
200 hashmap_add_entry(&map->buckets[h], entry); in hashmap__insert()
209 size_t h; in hashmap__find() local
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find()
[all …]
/tools/include/linux/
Dbits.h23 #define GENMASK_INPUT_CHECK(h, l) \ argument
25 __is_constexpr((l) > (h)), (l) > (h), 0)))
31 #define GENMASK_INPUT_CHECK(h, l) 0 argument
34 #define __GENMASK(h, l) \ argument
36 (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
37 #define GENMASK(h, l) \ argument
38 (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
40 #define __GENMASK_ULL(h, l) \ argument
42 (~ULL(0) >> (BITS_PER_LONG_LONG - 1 - (h))))
43 #define GENMASK_ULL(h, l) \ argument
[all …]
/tools/lib/subcmd/
Dparse-options.h122 #define OPT_ARGUMENT(l, h) { .type = OPTION_ARGUMENT, .long_name = (l), .help = (h) } argument
123 #define OPT_GROUP(h) { .type = OPTION_GROUP, .help = (h) } argument
124 …ne OPT_BIT(s, l, v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .value =… argument
125 …PT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value =… argument
126 …EAN_FLAG(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value … argument
127 #define OPT_BOOLEAN_SET(s, l, v, os, h) \ argument
129 .value = check_vtype(v, bool *), .help = (h), \
131 …e OPT_INCR(s, l, v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .value =… argument
132 …_UINT(s, l, v, h, i) { .type = OPTION_SET_UINT, .short_name = (s), .long_name = (l), .value = che… argument
133 #define OPT_SET_PTR(s, l, v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), … argument
[all …]
/tools/testing/scatterlist/
DMakefile17 …GETS) $(OFILES) scatterlist.c linux/scatterlist.h linux/highmem.h linux/kmemleak.h linux/slab.h as…
25 include: ../../../include/linux/scatterlist.h
28 @touch asm/io.h
29 @touch linux/highmem.h
30 @touch linux/kmemleak.h
31 @touch linux/slab.h
32 @cp $< linux/scatterlist.h
/tools/lib/bpf/
DMakefile135 BPF_HELPER_DEFS := $(OUTPUT)bpf_helper_defs.h
161 @(test -f ../../include/uapi/linux/bpf.h -a -f ../../../include/uapi/linux/bpf.h && ( \
162 (diff -B ../../include/uapi/linux/bpf.h ../../../include/uapi/linux/bpf.h >/dev/null) || \
164 …@(test -f ../../include/uapi/linux/bpf_common.h -a -f ../../../include/uapi/linux/bpf_common.h && …
165 …(diff -B ../../include/uapi/linux/bpf_common.h ../../../include/uapi/linux/bpf_common.h >/dev/null…
167 @(test -f ../../include/uapi/linux/netlink.h -a -f ../../../include/uapi/linux/netlink.h && ( \
168 (diff -B ../../include/uapi/linux/netlink.h ../../../include/uapi/linux/netlink.h >/dev/null) || \
170 @(test -f ../../include/uapi/linux/if_link.h -a -f ../../../include/uapi/linux/if_link.h && ( \
171 (diff -B ../../include/uapi/linux/if_link.h ../../../include/uapi/linux/if_link.h >/dev/null) || \
173 @(test -f ../../include/uapi/linux/if_xdp.h -a -f ../../../include/uapi/linux/if_xdp.h && ( \
[all …]
Dhashmap.c106 size_t h, bkt; in hashmap_grow() local
118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
119 hashmap_add_entry(&new_buckets[h], cur); in hashmap_grow()
159 size_t h; in hashmap__insert() local
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
169 hashmap_find_entry(map, key, h, NULL, &entry)) { in hashmap__insert()
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert()
200 hashmap_add_entry(&map->buckets[h], entry); in hashmap__insert()
209 size_t h; in hashmap__find() local
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find()
[all …]
/tools/usb/usbip/libsrc/
DMakefile.am7 libusbip_la_SOURCES := names.c names.h usbip_host_driver.c usbip_host_driver.h \
8 usbip_device_driver.c usbip_device_driver.h \
9 usbip_common.c usbip_common.h usbip_host_common.h \
10 usbip_host_common.c vhci_driver.c vhci_driver.h \
11 sysfs_utils.c sysfs_utils.h
Dnames.c191 unsigned int h = hashnum(vendorid); in new_vendor() local
193 v = vendors[h]; in new_vendor()
202 v->next = vendors[h]; in new_vendor()
203 vendors[h] = v; in new_vendor()
211 unsigned int h = hashnum((vendorid << 16) | productid); in new_product() local
213 p = products[h]; in new_product()
223 p->next = products[h]; in new_product()
224 products[h] = p; in new_product()
231 unsigned int h = hashnum(classid); in new_class() local
233 c = classes[h]; in new_class()
[all …]
/tools/testing/radix-tree/
DMakefile22 targets: generated/map-shift.h $(TARGETS)
34 $(RM) $(TARGETS) *.o radix-tree.c idr.c generated/map-shift.h
38 $(OFILES): Makefile *.h */*.h generated/map-shift.h \
39 ../../include/linux/*.h \
40 ../../include/asm/*.h \
41 ../../../include/linux/xarray.h \
42 ../../../include/linux/radix-tree.h \
43 ../../../include/linux/idr.h
53 generated/map-shift.h:
54 @if ! grep -qws $(SHIFT) generated/map-shift.h; then \
[all …]
/tools/usb/usbip/
DMakefile.am5 usbip_common.h vhci_driver.h usbip_host_driver.h \
6 list.h sysfs_utils.h usbip_host_common.h)
Dconfigure.ac13 AC_CONFIG_HEADERS([config.h])
31 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h dnl
32 string.h sys/socket.h syslog.h unistd.h])
47 AC_CHECK_HEADER([libudev.h],
51 [AC_MSG_ERROR([Missing /usr/include/libudev.h])])
/tools/testing/selftests/rseq/
DMakefile28 $(OUTPUT)/librseq.so: rseq.c rseq.h rseq-*.h
31 $(OUTPUT)/%: %.c $(TEST_GEN_PROGS_EXTENDED) rseq.h rseq-*.h
35 rseq.h rseq-*.h
39 rseq.h rseq-*.h
/tools/testing/selftests/proc/
Dproc-pid-vm.c150 struct elf64_hdr h; in make_exe() local
154 {&h, sizeof(struct elf64_hdr)}, in make_exe()
161 memset(&h, 0, sizeof(h)); in make_exe()
162 h.e_ident[0] = 0x7f; in make_exe()
163 h.e_ident[1] = 'E'; in make_exe()
164 h.e_ident[2] = 'L'; in make_exe()
165 h.e_ident[3] = 'F'; in make_exe()
166 h.e_ident[4] = 2; in make_exe()
167 h.e_ident[5] = 1; in make_exe()
168 h.e_ident[6] = 1; in make_exe()
[all …]
/tools/virtio/ringtest/
DMakefile10 main.o: main.c main.h
11 ring.o: ring.c main.h
12 ptr_ring.o: ptr_ring.c main.h ../../../include/linux/ptr_ring.h
13 virtio_ring_0_9.o: virtio_ring_0_9.c main.h
14 virtio_ring_poll.o: virtio_ring_poll.c virtio_ring_0_9.c main.h
15 virtio_ring_inorder.o: virtio_ring_inorder.c virtio_ring_0_9.c main.h
/tools/perf/
Dcheck-headers.sh146 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.…
147 check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"'
148 check include/linux/build_bug.h '-I "^#\(ifndef\|endif\)\( \/\/\)* static_assert$"'
149 check include/linux/ctype.h '-I "isdigit("'
160 check_2 tools/perf/util/hashmap.h tools/lib/bpf/hashmap.h
/tools/testing/selftests/cgroup/
DMakefile15 $(OUTPUT)/test_memcontrol: cgroup_util.c ../clone3/clone3_selftests.h
16 $(OUTPUT)/test_kmem: cgroup_util.c ../clone3/clone3_selftests.h
17 $(OUTPUT)/test_core: cgroup_util.c ../clone3/clone3_selftests.h
18 $(OUTPUT)/test_freezer: cgroup_util.c ../clone3/clone3_selftests.h
/tools/perf/trace/beauty/
Ddrm_ioctl.sh7 grep "#define DRM_COMMAND_BASE" $header_dir/drm.h
11 grep "^#define DRM_IOCTL.*DRM_IO" $header_dir/drm.h | \
13 grep "^#define DRM_I915_[A-Z_0-9]\+[ ]\+0x" $header_dir/i915_drm.h | \
Dmmap_flags.sh15 linux_mman=${linux_header_dir}/mman.h
16 arch_mman=${arch_header_dir}/mman.h
32 (egrep $regex ${header_dir}/mman-common.h | \
37 (egrep $regex ${header_dir}/mman.h | \
/tools/testing/selftests/bpf/
DMakefile15 GENHDR := $(GENDIR)/autoconf.h
188 ../../../include/uapi/linux/bpf.h \
197 $(INCLUDE_DIR)/vmlinux.h: $(VMLINUX_BTF) $(BPFTOOL) | $(INCLUDE_DIR)
244 $(OUTPUT)/flow_dissector_load.o: flow_dissector_load.h
292 TRUNNER_EXTRA_HDRS := $$(filter %.h,$(TRUNNER_EXTRA_SOURCES))
293 TRUNNER_TESTS_HDR := $(TRUNNER_TESTS_DIR)/tests.h
296 TRUNNER_BPF_SKELS := $$(patsubst %.c,$$(TRUNNER_OUTPUT)/%.skel.h, \
325 $(TRUNNER_BPF_PROGS_DIR)/*.h \
326 $$(INCLUDE_DIR)/vmlinux.h \
327 $(wildcard $(BPFDIR)/bpf_*.h) \
[all …]
/tools/include/asm-generic/bitops/
Dfls64.h21 __u32 h = x >> 32; in fls64() local
22 if (h) in fls64()
23 return fls(h) + 32; in fls64()
/tools/testing/selftests/futex/functional/
DMakefile7 ../include/futextest.h \
8 ../include/atomic.h \
9 ../include/logging.h
/tools/power/x86/intel-speed-select/
DMakefile30 $(OUTPUT)include/linux/isst_if.h: ../../../../include/uapi/linux/isst_if.h
32 ln -sf $(CURDIR)/../../../../include/uapi/linux/isst_if.h $@
34 prepare: $(OUTPUT)include/linux/isst_if.h
45 rm -rf $(OUTPUT)include/linux/isst_if.h
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/
DMakefile6 modified_srcu_input = $(LINUX_SOURCE)/include/linux/srcu.h \
9 modified_srcu_output = include/linux/srcu.h srcu.c
11 include/linux/srcu.h: srcu.c

123456789