| /tools/testing/selftests/bpf/progs/ |
| A D | bpf_flow.c | 78 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys() 182 keys->is_encap = true; in parse_ip_proto() 188 keys->is_encap = true; in parse_ip_proto() 210 keys->is_encap = true; in parse_ip_proto() 237 keys->sport = tcp->source; in parse_ip_proto() 238 keys->dport = tcp->dest; in parse_ip_proto() 247 keys->dport = udp->dest; in parse_ip_proto() 301 keys->is_frag = true; in PROG() 312 if (!(keys->flags & in PROG() 340 if (keys->flow_label && keys->flags & BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL) in PROG() [all …]
|
| /tools/testing/selftests/net/ |
| A D | tcp_fastopen_backup_key.c | 62 if (sscanf(buf, "%x-%x-%x-%x,%x-%x-%x-%x", keys, keys + 1, keys + 2, in get_keys() 63 keys + 3, keys + 4, keys + 5, keys + 6, keys + 7) != 8) in get_keys() 79 keys[0], keys[1], keys[2], keys[3], keys[4], keys[5], in set_keys() 80 keys[6], keys[7]); in set_keys() 83 keys[0], keys[1], keys[2], keys[3]); in set_keys() 96 uint32_t keys[8]; in build_rcv_fd() local 122 keys[i] = rand(); in build_rcv_fd() 215 uint32_t keys[8]; in rotate_key() local 225 get_keys(fd, keys); in rotate_key() 227 set_keys(fd, keys); in rotate_key() [all …]
|
| /tools/testing/selftests/bpf/map_tests/ |
| A D | htab_map_batch_ops.c | 29 keys[i] = i + 1; in map_batch_update() 62 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify() 81 int map_fd, *keys, *visited, key; in __test_map_lookup_and_delete_batch() local 98 keys = malloc(max_entries * sizeof(int)); in __test_map_lookup_and_delete_batch() 124 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_delete_batch() 143 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_delete_batch() 154 &batch, keys + total, in __test_map_lookup_and_delete_batch() 189 keys + total, in __test_map_lookup_and_delete_batch() 209 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_delete_batch() 217 &batch, keys + total, in __test_map_lookup_and_delete_batch() [all …]
|
| A D | array_map_batch_ops.c | 26 keys[i] = i; in map_batch_update() 52 CHECK(keys[i] + j + 1 != value, in map_batch_verify() 55 j, keys[i], value); in map_batch_verify() 58 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify() 59 "error: i %d key %d value %lld\n", i, keys[i], in map_batch_verify() 72 int map_fd, *keys, *visited; in __test_map_lookup_and_update_batch() local 92 keys = calloc(max_entries, sizeof(*keys)); in __test_map_lookup_and_update_batch() 95 CHECK(!keys || !values || !visited, "malloc()", "error:%s\n", in __test_map_lookup_and_update_batch() 103 memset(keys, 0, max_entries * sizeof(*keys)); in __test_map_lookup_and_update_batch() 114 &batch, keys + total, in __test_map_lookup_and_update_batch() [all …]
|
| A D | lpm_trie_map_batch_ops.c | 23 struct test_lpm_key *keys, int *values) in map_batch_update() argument 34 keys[i].prefix = 32; in map_batch_update() 36 inet_pton(AF_INET, buff, &keys[i].ipv4); in map_batch_update() 45 struct test_lpm_key *keys, int *values) in map_batch_verify() argument 53 inet_ntop(AF_INET, &keys[i].ipv4, buff, 32); in map_batch_verify() 69 struct test_lpm_key *keys, key; in test_lpm_trie_map_batch_ops() local 94 map_batch_update(map_fd, max_entries, keys, values); in test_lpm_trie_map_batch_ops() 95 map_batch_verify(visited, max_entries, keys, values); in test_lpm_trie_map_batch_ops() 96 memset(keys, 0, max_entries * sizeof(*keys)); in test_lpm_trie_map_batch_ops() 107 keys + total, values + total, &count, &opts); in test_lpm_trie_map_batch_ops() [all …]
|
| A D | map_percpu_stats.c | 63 static void delete_and_lookup_batch(int map_fd, void *keys, __u32 count) in delete_and_lookup_batch() argument 72 keys, values, &count, in delete_and_lookup_batch() 93 void *keys; in delete_all_elements() local 97 keys = calloc(MAX_MAP_KEY_SIZE, MAX_ENTRIES); in delete_all_elements() 98 CHECK(!keys, "calloc", "error: %s\n", strerror(errno)); in delete_all_elements() 101 memcpy(keys + n*MAX_MAP_KEY_SIZE, &key, MAX_MAP_KEY_SIZE); in delete_all_elements() 108 delete_and_lookup_batch(map_fd, keys, n); in delete_all_elements() 112 void *keyp = keys + i*MAX_MAP_KEY_SIZE; in delete_all_elements() 126 free(keys); in delete_all_elements()
|
| /tools/testing/selftests/bpf/ |
| A D | flow_dissector_load.h | 18 struct bpf_map *prog_array, *keys; in bpf_flow_load() local 44 keys = bpf_object__find_map_by_name(*obj, keys_map_name); in bpf_flow_load() 45 if (!keys) in bpf_flow_load() 48 *keys_fd = bpf_map__fd(keys); in bpf_flow_load()
|
| A D | test_bpftool.py | 86 self.assertCountEqual(res.keys(), expected_keys) 111 self.assertCountEqual(tc.keys(), expected_keys)
|
| /tools/testing/selftests/net/tcp_ao/ |
| A D | key-management.c | 427 struct test_key *keys; member 488 free(collection.keys); in init_default_key_collection() 489 collection.keys = NULL; in init_default_key_collection() 501 collection.keys = reallocarray(collection.keys, nr_keys, key_sz); in init_default_key_collection() 502 if (!collection.keys) in init_default_key_collection() 688 if (!keys) in verify_keys() 692 keys->get_all = 1; in verify_keys() 695 free(keys); in verify_keys() 724 dump_key = lookup_key(keys, keys->nkeys, sndid, rcvid); in verify_keys() 790 free(keys); in verify_keys() [all …]
|
| /tools/perf/scripts/python/ |
| A D | check-perf-trace.py | 73 keys = unhandled.keys() 74 if not keys: 83 for event_name in keys:
|
| A D | failed-syscalls-by-pid.py | 69 comm_keys = syscalls.keys() 71 pid_keys = syscalls[comm].keys() 74 id_keys = syscalls[comm][pid].keys() 77 ret_keys = syscalls[comm][pid][id].keys()
|
| A D | syscall-counts-by-pid.py | 67 comm_keys = syscalls.keys() 69 pid_keys = syscalls[comm].keys() 72 id_keys = syscalls[comm][pid].keys()
|
| A D | netdev-times.py | 138 if 'comm' in event.keys(): 143 elif 'handle' in event.keys(): 310 if cpu not in irq_dic.keys(): 317 if cpu not in irq_dic.keys(): 324 if 'event_list' in irq_record.keys(): 329 if cpu not in irq_dic.keys() \ 349 if cpu in irq_dic.keys(): 352 if cpu in net_rx_dic.keys(): 366 if cpu in net_rx_dic.keys(): 376 if cpu not in irq_dic.keys() \ [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | flow_dissector.c | 110 .keys = { 131 .keys = { 154 .keys = { 177 .keys = { 201 .keys = { 228 .keys = { 250 .keys = { 277 .keys = { 300 .keys = { 323 .keys = { [all …]
|
| A D | map_in_map.c | 202 int keys[2] = {1, 2}, values[2]; in batched_lookup_delete_fd_htab() local 210 err = bpf_map_update_elem(outer_fd, &keys[0], &inner_fd, BPF_NOEXIST); in batched_lookup_delete_fd_htab() 218 err = bpf_map_update_elem(outer_fd, &keys[1], &inner_fd, BPF_NOEXIST); in batched_lookup_delete_fd_htab() 224 cnt = ARRAY_SIZE(keys); in batched_lookup_delete_fd_htab() 225 err = bpf_map_lookup_and_delete_batch(outer_fd, NULL, &batch, keys, values, &cnt, NULL); in batched_lookup_delete_fd_htab() 227 ASSERT_EQ(cnt, ARRAY_SIZE(keys), "delete_batch cnt"); in batched_lookup_delete_fd_htab() 230 bpf_map_delete_elem(outer_fd, &keys[0]); in batched_lookup_delete_fd_htab()
|
| /tools/testing/ktest/examples/bootconfigs/ |
| A D | boottrace.bconf | 14 keys = func.sym,lat 20 keys = func; 24 keys = func
|
| /tools/crypto/tcrypt/ |
| A D | tcrypt_speed_compare.py | 115 for alg in base.keys(): 117 for op in base[alg].keys(): 125 if "operations" in base[alg][op][index].keys(): 137 for alg in merged.keys(): 138 for op in merged[alg].keys():
|
| /tools/testing/selftests/hid/tests/ |
| A D | test_ite_keyboard.py | 136 def event(self, keys, reportID=None, application=None): argument 138 return super().event(keys, reportID, application)
|
| A D | test_keyboard.py | 31 def _update_key_state(self, keys): argument 44 for key in self.keystates.keys(): 48 for key in keys: 58 def create_array_report(self, keys, reportID=None, application=None): argument 67 self._update_key_state(keys) 73 def event(self, keys, reportID=None, application=None): argument 81 r = self.create_array_report(keys, reportID, application)
|
| /tools/net/ynl/pyynl/ |
| A D | ethtool.py | 49 return print_field(reply, *zip(reply.keys(), reply.keys())) 230 requested = bits_to_dict(reply['wanted']).keys() 231 active = bits_to_dict(reply['active']).keys() 232 never_changed = bits_to_dict(reply['nochange']).keys() 433 msgmask = bits_to_dict(debug.get("msgmask", [])).keys()
|
| /tools/perf/Documentation/ |
| A D | perf-mem.txt | 101 Group result by given key(s) - multiple keys can be specified 102 in CSV format. The keys are specific to memory samples are: 119 And the default sort keys are changed to local_weight, mem, sym, dso, 124 Specify output field - multiple keys can be specified in CSV format. 141 the debug information and it will change the default sort keys to: 179 sort keys ("mem" and "snoop"). So unlike other fields and sort keys, they'll 193 But using the same name for sort keys will aggregate samples for each type
|
| /tools/kvm/kvm_stat/ |
| A D | kvm_stat | 1570 def __init__(self, keys): 1572 for key in keys: 1578 def get_statline(self, keys, s): 1580 for key in keys: 1586 def __init__(self, keys): 1594 def get_statline(self, keys, s): 1596 keys, '') 1599 def log(stats, opts, frmt, keys): 1874 keys = sorted(stats.get().keys()) 1876 frmt = CSVFormat(keys) [all …]
|
| /tools/testing/selftests/drivers/net/ |
| A D | stats.py | 121 all_keys = triple[0].keys() | triple[1].keys() | triple[2].keys() 203 for k in old.keys():
|
| /tools/perf/ |
| A D | builtin-lock.c | 305 keys = contention_keys; in select_key() 307 for (i = 0; keys[i].name; i++) { in select_key() 309 compare = keys[i].key; in select_key() 312 if (list_empty(&keys[i].list)) in select_key() 329 keys = contention_keys; in add_output_field() 336 if (list_empty(&keys[i].list)) in add_output_field() 353 keys = contention_keys; in setup_output_field() 357 for (i = 0; keys[i].name; i++) in setup_output_field() 362 for (i = 0; keys[i].name; i++) in setup_output_field() 363 INIT_LIST_HEAD(&keys[i].list); in setup_output_field() [all …]
|
| /tools/lib/bpf/ |
| A D | bpf.h | 189 LIBBPF_API int bpf_map_delete_batch(int fd, const void *keys, 227 void *keys, void *values, __u32 *count, 256 void *out_batch, void *keys, 301 LIBBPF_API int bpf_map_update_batch(int fd, const void *keys, const void *values,
|