Home
last modified time | relevance | path

Searched refs:nr_keys (Results 1 – 13 of 13) sorted by relevance

/linux/tools/testing/selftests/net/tcp_ao/
H A Dbench-lookups.c69 static const size_t nr_keys[] = { 512, 1024, 2048, 4096, 8192 }; variable
87 } bench_results[ARRAY_SIZE(nr_keys)];
213 for (i = 0; i < ARRAY_SIZE(nr_keys); i++) { in server_fn()
217 test_ips = malloc(nr_keys[i] * sizeof(union tcp_addr)); in server_fn()
223 gen_test_ips(test_ips, nr_keys[i], false); in server_fn()
224 test_add_routes(test_ips, nr_keys[i]); in server_fn()
225 test_set_optmem(KERNEL_TCP_AO_KEY_SZ_ROUND_UP * nr_keys[i]); in server_fn()
226 server_apply_keys(lsk, test_ips, nr_keys[i]); in server_fn()
229 bench_connect_srv(lsk, test_ips, nr_keys[i]); in server_fn()
230 bench_connect_srv(lsk, test_ips, nr_keys[i]); in server_fn()
[all …]
H A Dkey-management.c426 unsigned int nr_keys; member
483 static int init_default_key_collection(unsigned int nr_keys, bool randomized) in init_default_key_collection() argument
487 if (!nr_keys) { in init_default_key_collection()
498 if (nr_keys > 127) in init_default_key_collection()
501 collection.keys = reallocarray(collection.keys, nr_keys, key_sz); in init_default_key_collection()
505 memset(collection.keys, 0, nr_keys * key_sz); in init_default_key_collection()
506 collection.nr_keys = nr_keys; in init_default_key_collection()
507 while (nr_keys--) in init_default_key_collection()
508 init_key_in_collection(nr_keys, randomized); in init_default_key_collection()
592 for (i = 0; i < collection.nr_keys; i++) { in key_collection_socket()
[all …]
/linux/fs/bcachefs/
H A Dbtree_key_cache.h8 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in bch2_nr_btree_keys_need_flush() local
9 size_t max_dirty = 1024 + nr_keys / 2; in bch2_nr_btree_keys_need_flush()
17 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in __bch2_btree_key_cache_must_wait() local
18 size_t max_dirty = 4096 + (nr_keys * 3) / 4; in __bch2_btree_key_cache_must_wait()
31 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); in bch2_btree_key_cache_wait_done() local
32 size_t max_dirty = 2048 + (nr_keys * 5) / 8; in bch2_btree_key_cache_wait_done()
H A Dbtree_key_cache.c89 atomic_long_dec(&c->nr_keys); in bkey_cached_evict()
265 atomic_long_inc(&bc->nr_keys); in btree_key_cache_create()
677 long nr = atomic_long_read(&bc->nr_keys) - in bch2_btree_key_cache_count()
705 while (atomic_long_read(&bc->nr_keys)) { in bch2_fs_btree_key_cache_exit()
734 if (atomic_long_read(&bc->nr_keys)) in bch2_fs_btree_key_cache_exit()
736 atomic_long_read(&bc->nr_keys)); in bch2_fs_btree_key_cache_exit()
787 prt_printf(out, "keys:\t%lu\r\n", atomic_long_read(&bc->nr_keys)); in bch2_btree_key_cache_to_text()
H A Dbtree_key_cache_types.h18 atomic_long_t nr_keys; member
H A Dbtree_update_interior.c1459 struct { unsigned nr_keys, val_u64s; } nr_keys[2]; in __btree_split_node() member
1462 memset(&nr_keys, 0, sizeof(nr_keys)); in __btree_split_node()
1494 nr_keys[i].nr_keys++; in __btree_split_node()
1495 nr_keys[i].val_u64s += bkeyp_val_u64s(&b->format, k); in __btree_split_node()
1509 unsigned u64s = nr_keys[i].nr_keys * n[i]->data->format.key_u64s + in __btree_split_node()
1510 nr_keys[i].val_u64s; in __btree_split_node()
H A Djournal_reclaim.c696 atomic_long_read(&c->btree_key_cache.nr_keys)); in __bch2_journal_reclaim()
H A Dtrace.h1013 __entry->key_cache_nr_keys = atomic_long_read(&trans->c->btree_key_cache.nr_keys);
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c343 int err, nr_keys; in test_get_tcp_ao_counters() local
370 nr_keys = test_get_ao_keys_nr(sk); in test_get_tcp_ao_counters()
371 if (nr_keys < 0) in test_get_tcp_ao_counters()
372 return nr_keys; in test_get_tcp_ao_counters()
373 if (nr_keys == 0) in test_get_tcp_ao_counters()
375 out->nr_keys = (size_t)nr_keys; in test_get_tcp_ao_counters()
376 key_dump = calloc(nr_keys, key_dump_sz); in test_get_tcp_ao_counters()
380 key_dump[0].nkeys = nr_keys; in test_get_tcp_ao_counters()
389 out->key_cnts = calloc(nr_keys, sizeof(out->key_cnts[0])); in test_get_tcp_ao_counters()
395 while (nr_keys--) { in test_get_tcp_ao_counters()
[all …]
H A Daolib.h512 size_t nr_keys; member
/linux/drivers/md/bcache/
H A Dbcache_ondisk.h125 static inline struct bkey *bkey_idx(const struct bkey *k, unsigned int nr_keys) in bkey_idx() argument
129 return (struct bkey *) (d + nr_keys); in bkey_idx()
/linux/include/trace/events/
H A Dbcache.h233 __field(u32, nr_keys )
240 __entry->nr_keys = keys;
247 __entry->nr_keys)
/linux/tools/testing/selftests/bpf/
H A Dtest_maps.c477 unsigned int nr_keys = 2000; in test_arraymap_percpu_many_keys() local
481 sizeof(bpf_percpu(values, 0)), nr_keys, NULL); in test_arraymap_percpu_many_keys()
491 for (key = 0; key < nr_keys; key++) in test_arraymap_percpu_many_keys()
494 for (key = 0; key < nr_keys; key++) { in test_arraymap_percpu_many_keys()