Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 33) sorted by relevance

12

/tools/testing/selftests/bpf/progs/
Dbpf_flow.c74 static __always_inline int export_flow_keys(struct bpf_flow_keys *keys, in export_flow_keys() argument
77 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys()
80 memcpy(&val, keys, sizeof(val)); in export_flow_keys()
117 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local
136 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto()
139 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto()
145 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect() local
147 return parse_eth_proto(skb, keys->n_proto); in _dissect()
153 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ip_proto() local
165 return export_flow_keys(keys, BPF_DROP); in parse_ip_proto()
[all …]
/tools/testing/selftests/net/
Dtcp_fastopen_backup_key.c51 static void get_keys(int fd, uint32_t *keys) in get_keys() argument
57 if (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, &len)) in get_keys()
64 if (sscanf(buf, "%x-%x-%x-%x,%x-%x-%x-%x", keys, keys + 1, keys + 2, in get_keys()
65 keys + 3, keys + 4, keys + 5, keys + 6, keys + 7) != 8) in get_keys()
69 static void set_keys(int fd, uint32_t *keys) in set_keys() argument
74 if (setsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, in set_keys()
81 keys[0], keys[1], keys[2], keys[3], keys[4], keys[5], in set_keys()
82 keys[6], keys[7]); in set_keys()
85 keys[0], keys[1], keys[2], keys[3]); in set_keys()
98 uint32_t keys[8]; in build_rcv_fd() local
[all …]
Ddevlink_port_split.py266 dev = list(devs.keys())[0]
/tools/testing/selftests/bpf/map_tests/
Darray_map_batch_ops.c12 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument
22 keys[i] = i; in map_batch_update()
26 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
31 int *keys, int *values) in map_batch_verify() argument
37 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify()
38 "error: i %d key %d value %d\n", i, keys[i], values[i]); in map_batch_verify()
55 int map_fd, *keys, *values, *visited; in test_array_map_batch_ops() local
71 keys = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops()
74 CHECK(!keys || !values || !visited, "malloc()", "error:%s\n", in test_array_map_batch_ops()
78 map_batch_update(map_fd, max_entries, keys, values); in test_array_map_batch_ops()
[all …]
Dhtab_map_batch_ops.c13 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument
28 keys[i] = i + 1; in map_batch_update()
36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
41 int *keys, void *values, bool is_pcpu) in map_batch_verify() argument
55 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify()
58 i, j, keys[i], bpf_percpu(v[i], j)); in map_batch_verify()
61 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify()
63 "error: i %d key %d value %d\n", i, keys[i], in map_batch_verify()
80 int map_fd, *keys, *visited, key; in __test_map_lookup_and_delete_batch() local
104 keys = malloc(max_entries * sizeof(int)); in __test_map_lookup_and_delete_batch()
[all …]
/tools/testing/selftests/bpf/
Dflow_dissector_load.h17 struct bpf_map *prog_array, *keys; in bpf_flow_load() local
49 keys = bpf_object__find_map_by_name(*obj, keys_map_name); in bpf_flow_load()
50 if (!keys) in bpf_flow_load()
53 *keys_fd = bpf_map__fd(keys); in bpf_flow_load()
Dtest_bpftool.py84 self.assertCountEqual(res.keys(), expected_keys)
112 self.assertCountEqual(tc.keys(), expected_keys)
Dtest_offload.py286 return len(self._dict.keys())
290 key = list(self._dict.keys())[key]
632 fail("dev" not in prog.keys(), "Device parameters not reported")
634 fail("ifindex" not in dev.keys(), "Device parameters not reported")
635 fail("ns_dev" not in dev.keys(), "Device parameters not reported")
636 fail("ns_inode" not in dev.keys(), "Device parameters not reported")
639 fail("ifname" not in dev.keys(), "Ifname not reported")
643 fail("ifname" in dev.keys(), "Ifname is reported for other ns")
647 fail("dev" not in m.keys(), "Device parameters not reported")
1001 fail("dev" in progs[0].keys(),
/tools/perf/scripts/python/
Dcheck-perf-trace.py73 keys = unhandled.keys()
74 if not keys:
83 for event_name in keys:
Dfailed-syscalls-by-pid.py69 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()
Dsyscall-counts-by-pid.py67 comm_keys = syscalls.keys()
69 pid_keys = syscalls[comm].keys()
72 id_keys = syscalls[comm][pid].keys()
Dnetdev-times.py138 if 'comm' in event.keys():
143 elif 'handle' in event.keys():
309 if cpu not in irq_dic.keys():
316 if cpu not in irq_dic.keys():
323 if 'event_list' in irq_record.keys():
328 if cpu not in irq_dic.keys() \
332 if 'event_list' in irq_record.keys():
348 if cpu in irq_dic.keys():
351 if cpu in net_rx_dic.keys():
365 if cpu in net_rx_dic.keys():
[all …]
Dnet_dropmonitor.py56 for i in drop_log.keys():
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c100 struct bpf_flow_keys keys; member
119 .keys = {
139 .keys = {
161 .keys = {
183 .keys = {
206 .keys = {
232 .keys = {
253 .keys = {
279 .keys = {
301 .keys = {
[all …]
/tools/kvm/kvm_stat/
Dkvm_stat970 if key in self.values.keys():
1502 def __init__(self, keys): argument
1504 for key in keys:
1510 def get_statline(self, keys, s): argument
1512 for key in keys:
1518 def __init__(self, keys): argument
1521 key.split(' ')[0]), keys, '')
1526 def get_statline(self, keys, s): argument
1528 keys, '')
1531 def log(stats, opts, frmt, keys): argument
[all …]
Dkvm_stat.txt21 While running in regular mode, use any of the keys listed in section
/tools/lib/bpf/
Dbpf.h138 LIBBPF_API int bpf_map_delete_batch(int fd, void *keys,
142 void *keys, void *values, __u32 *count,
145 void *out_batch, void *keys,
148 LIBBPF_API int bpf_map_update_batch(int fd, void *keys, void *values,
Dbpf.c455 void *out_batch, void *keys, void *values, in bpf_map_batch_common() argument
469 attr.batch.keys = ptr_to_u64(keys); in bpf_map_batch_common()
481 int bpf_map_delete_batch(int fd, void *keys, __u32 *count, in bpf_map_delete_batch() argument
485 NULL, keys, NULL, count, opts); in bpf_map_delete_batch()
488 int bpf_map_lookup_batch(int fd, void *in_batch, void *out_batch, void *keys, in bpf_map_lookup_batch() argument
493 out_batch, keys, values, count, opts); in bpf_map_lookup_batch()
497 void *keys, void *values, __u32 *count, in bpf_map_lookup_and_delete_batch() argument
501 fd, in_batch, out_batch, keys, values, in bpf_map_lookup_and_delete_batch()
505 int bpf_map_update_batch(int fd, void *keys, void *values, __u32 *count, in bpf_map_update_batch() argument
509 keys, values, count, opts); in bpf_map_update_batch()
/tools/testing/selftests/tc-testing/
Dtdc_helper.py64 for k in tcase.keys():
/tools/perf/Documentation/
Dperf-report.txt73 Sort histogram entries by given key(s) - multiple keys can be specified
74 in CSV format. Following sort keys are available:
112 By default, comm, dso and symbol keys are used.
115 If --branch-stack option is used, following sort keys are also
129 And default sort keys are changed to comm, dso_from, symbol_from, dso_to
140 If the --mem-mode option is used, the following sort keys are also available
154 And the default sort keys are changed to local_weight, mem, sym, dso,
157 If the data file has tracepoint event(s), following (dynamic) sort keys
176 has the same effect for all dynamic sort keys.
178 The default sort keys are changed to 'trace' if all events in the data
[all …]
Dperf-kmem.txt45 for page). Available sort keys are 'ptr, callsite, bytes, hit,
/tools/perf/
Dbuiltin-lock.c253 struct lock_key keys[] = { variable
270 for (i = 0; keys[i].name; i++) { in select_key()
271 if (!strcmp(keys[i].name, sort_key)) { in select_key()
272 compare = keys[i].key; in select_key()
Dbuiltin-kvm.c486 static struct kvm_event_key keys[] = { variable
496 for (i = 0; keys[i].name; i++) { in select_key()
497 if (!strcmp(keys[i].name, kvm->sort_key)) { in select_key()
498 kvm->compare = keys[i].key; in select_key()
/tools/include/uapi/linux/
Dpkt_cls.h183 struct tc_u32_key keys[0]; member
/tools/perf/util/
Dsort.c2825 static char *setup_overhead(char *keys) in setup_overhead() argument
2828 return keys; in setup_overhead()
2830 keys = prefix_if_not_in("overhead", keys); in setup_overhead()
2833 keys = prefix_if_not_in("overhead_children", keys); in setup_overhead()
2835 return keys; in setup_overhead()

12