Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 14 of 14) sorted by relevance

/tools/perf/util/
Dhashmap.h77 struct hashmap_entry **buckets; member
170 for (cur = map->buckets[bkt]; cur; cur = cur->next)
182 for (cur = map->buckets[bkt]; \
193 for (cur = map->buckets \
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
201 for (cur = map->buckets \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
Dhashmap.c45 map->buckets = NULL; in hashmap__init()
71 free(map->buckets); in hashmap__clear()
72 map->buckets = NULL; in hashmap__clear()
124 free(map->buckets); in hashmap_grow()
125 map->buckets = new_buckets; in hashmap_grow()
137 if (!map->buckets) in hashmap_find_entry()
140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry()
200 hashmap_add_entry(&map->buckets[h], entry); in hashmap_insert()
Dftrace.h43 int buckets[]);
68 int buckets[] __maybe_unused) in perf_ftrace__latency_read_bpf()
Dbpf_ftrace.c122 int buckets[]) in perf_ftrace__latency_read_bpf() argument
138 buckets[idx] = 0; in perf_ftrace__latency_read_bpf()
143 buckets[idx] += hist[i]; in perf_ftrace__latency_read_bpf()
/tools/lib/bpf/
Dhashmap.h77 struct hashmap_entry **buckets; member
170 for (cur = map->buckets[bkt]; cur; cur = cur->next)
182 for (cur = map->buckets[bkt]; \
193 for (cur = map->buckets \
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
201 for (cur = map->buckets \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
Dhashmap.c45 map->buckets = NULL; in hashmap__init()
71 free(map->buckets); in hashmap__clear()
72 map->buckets = NULL; in hashmap__clear()
124 free(map->buckets); in hashmap_grow()
125 map->buckets = new_buckets; in hashmap_grow()
137 if (!map->buckets) in hashmap_find_entry()
140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry()
200 hashmap_add_entry(&map->buckets[h], entry); in hashmap_insert()
/tools/perf/
Dbuiltin-ftrace.c685 static void make_histogram(int buckets[], char *buf, size_t len, char *linebuf, in make_histogram() argument
742 buckets[i]++; in make_histogram()
753 static void display_histogram(int buckets[], bool use_nsec) in display_histogram() argument
762 total += buckets[i]; in display_histogram()
772 bar_len = buckets[0] * bar_total / total; in display_histogram()
774 0, 1, "us", buckets[0], bar_len, bar, bar_total - bar_len, ""); in display_histogram()
786 bar_len = buckets[i] * bar_total / total; in display_histogram()
788 start, stop, unit, buckets[i], bar_len, bar, in display_histogram()
792 bar_len = buckets[NUM_BUCKET - 1] * bar_total / total; in display_histogram()
794 1, "...", use_nsec ? "ms" : " s", buckets[NUM_BUCKET - 1], in display_histogram()
[all …]
/tools/testing/selftests/drivers/net/netdevsim/
Dnexthop.sh213 $IP nexthop add id 10 group 1/2 type resilient buckets 4
229 $IP nexthop add id 10 group 1,3/2,2 type resilient buckets 5
259 $IP nexthop add id 10 group 1/2 type resilient buckets 4 &> /dev/null
325 $IP nexthop add id 10 group 1/2 type resilient buckets 6
353 $IP nexthop add id 10 group 1/2 type resilient buckets 6
408 $IP nexthop add id 10 group 1/2 type resilient buckets 8 idle_timer 4
434 type resilient buckets 8 idle_timer 6
469 $IP nexthop add id 10 group 1/2 type resilient buckets 8 $timer 4
504 $IP nexthop add id 10 group 1/2 type resilient buckets 8 $timer 8
535 type resilient buckets 8 $timer 4
[all …]
/tools/testing/selftests/net/forwarding/
Drouter_mpath_nh_res.sh168 ip nexthop add id 103 group 101/102 type resilient buckets 512 \
174 ip nexthop add id 106 group 104/105 type resilient buckets 512 \
180 ip nexthop add id 203 group 201/202 type resilient buckets 512 \
186 ip nexthop add id 206 group 204/205 type resilient buckets 512 \
Dgre_multipath_nh_res.sh104 ip nexthop add id 103 group 101/102 type resilient buckets 512 \
151 ip nexthop add id 203 group 201/202 type resilient buckets 512 \
/tools/testing/selftests/drivers/net/mlxsw/
Drtnetlink.sh627 ip nexthop add id 10 group 3 type resilient buckets 7
630 ip nexthop add id 10 group 3 type resilient buckets 129
633 ip nexthop add id 10 group 1/2 type resilient buckets 32
636 ip nexthop add id 10 group 3 type resilient buckets 32
770 ip nexthop add id 10 group 1/2 type resilient buckets 32 idle_timer 0
Ddevlink_trap_l3_exceptions.sh464 ip nexthop add id 10 group 1 type resilient buckets 32
/tools/memory-model/Documentation/
Dsimple.txt99 in each hash bucket allows operations on different buckets to proceed
100 concurrently. This works because the buckets do not overlap with each
104 As the number of buckets increases, data locking scales naturally.
106 increasing the number of buckets as the number of CPUs increase results
/tools/testing/selftests/net/
Dfib_nexthops.sh359 local buckets=$2
370 run_cmd "$IP nexthop add id 1000 group 100 type resilient buckets $buckets"
372 log_test $? 0 "Dump large (x$buckets) nexthop buckets"