Home
last modified time | relevance | path

Searched refs:next_key (Results 1 – 25 of 46) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_maps.c39 long long key, next_key, first_key, value; in test_hashmap() local
102 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 && in test_hashmap()
103 (next_key == first_key)); in test_hashmap()
104 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap()
105 (next_key == 1 || next_key == 2) && in test_hashmap()
106 (next_key != first_key)); in test_hashmap()
107 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == -1 && in test_hashmap()
119 assert(bpf_map_get_next_key(fd, NULL, &next_key) == -1 && in test_hashmap()
121 assert(bpf_map_get_next_key(fd, &key, &next_key) == -1 && in test_hashmap()
151 long long key, next_key, first_key; in test_hashmap_percpu() local
[all …]
Dtest_progs.c217 __u32 key, next_key; in compare_map_keys() local
229 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys()
230 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys()
234 key = next_key; in compare_map_keys()
244 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local
267 next_key_p = &next_key; in compare_stack_ips()
Dtest_lru_map.c106 unsigned long long next_key = 0; in map_subset() local
110 while (!bpf_map_get_next_key(map1, &next_key, &next_key)) { in map_subset()
111 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset()
112 ret = bpf_map_lookup_elem(map0, &next_key, value0); in map_subset()
115 next_key, strerror(errno), errno); in map_subset()
120 next_key, value0[0], value1[0]); in map_subset()
Dtest_sockmap.c800 int i, key, next_key, err, tx_prog_fd = -1, zero = 0; in run_options() local
1083 key = next_key = 0; in run_options()
1085 while (bpf_map_get_next_key(map_fd[i], &key, &next_key) == 0) { in run_options()
1087 key = next_key; in run_options()
/external/libdrm/tests/
Ddrmsl.c114 unsigned long next_key = 0; in print_neighbors() local
121 &next_key, &next_value); in print_neighbors()
123 key, retval, prev_key, next_key); in print_neighbors()
129 if (next_key != expected_next) { in print_neighbors()
131 next_key, expected_next); in print_neighbors()
/external/igt-gpu-tools/scripts/
Dtrace.pl601 my $next_key = ${$timeline}[++$next];
602 if ($ctx == $db{$next_key}->{'ctx'} and
603 exists $db{$next_key}->{'end'}) {
604 $last_ctx = $db{$next_key}->{'ctx'};
606 $complete = $next_key;
727 my $next_key;
736 $next_key = ${$timeline}[$pos + 1];
739 $db{$next_key}->{'engine-start'} = $db{$next_key}->{'start'};
740 $db{$next_key}->{'start'} = $db{$key}->{'notify'};
/external/mesa3d/src/gallium/frontends/nine/
Dvertexshader9.h76 uint64_t next_key; member
121 vs->next_key = key; in NineVertexShader9_UpdateKey()
Dpixelshader9.h66 uint64_t next_key; member
129 ps->next_key = key; in NinePixelShader9_UpdateKey()
/external/rust/crates/serde_cbor/src/value/
Dser.rs221 next_key: None, in serialize_map()
263 next_key: Option<Value>, field
349 self.next_key = Some(to_value(&key)?); in serialize_key()
357 let key = self.next_key.take(); in serialize_value()
/external/libdrm/
Dxf86drmSL.c233 unsigned long *next_key, void **next_value) in drmSLLookupNeighbors() argument
241 *prev_key = *next_key = key; in drmSLLookupNeighbors()
249 *next_key = update[0]->forward[0]->key; in drmSLLookupNeighbors()
/external/toybox/toys/posix/
Dsort.c77 struct sort_key *next_key; // linked list member
167 while (*pkey) pkey = &((*pkey)->next_key); in add_key()
250 for (key=(struct sort_key *)TT.key_list; !retval && key; key = key->next_key){ in compare_keys()
/external/rust/crates/serde_json/src/value/
Dser.rs245 next_key: None, in serialize_map()
292 next_key: Option<String>,
385 ref mut next_key, .. in serialize_key()
387 *next_key = Some(tri!(key.serialize(MapKeySerializer))); in serialize_key()
404 ref mut next_key, in serialize_value()
406 let key = next_key.take(); in serialize_value()
/external/rust/crates/serde_json/src/
Draw.rs309 let value = visitor.next_key::<RawKey>()?; in deserialize()
339 let value = visitor.next_key::<RawKey>()?; in deserialize()
/external/strace/
Dbpf_attr_check.c163 static_assert(SoM(struct BPF_MAP_GET_NEXT_KEY_struct, next_key) == SoM(union bpf_attr, next_key),
165 …_assert(offsetof(struct BPF_MAP_GET_NEXT_KEY_struct, next_key) == offsetof(union bpf_attr, next_ke…
Dbpf_attr.h107 uint64_t ATTRIBUTE_ALIGNED(8) next_key;
/external/marisa-trie/lib/marisa/grimoire/trie/
Dlouds-trie.cc409 T next_key; in build_current_trie() local
410 next_key.set_str(keys[w_range.begin()].ptr(), in build_current_trie()
412 next_key.substr(w_range.key_pos(), key_pos - w_range.key_pos()); in build_current_trie()
413 next_key.set_weight(w_range.weight()); in build_current_trie()
414 next_keys.push_back(next_key); in build_current_trie()
/external/bcc/src/cc/api/
DBPFTable.h78 bool next(void* key, void* next_key) { in next() argument
79 return bpf_get_next_key(desc.fd, key, next_key) >= 0; in next()
/external/bcc/src/python/bcc/
Dtable.py281 next_key = self.Key()
284 res = lib.bpf_get_first_key(self.map_fd, ct.byref(next_key),
288 ct.byref(next_key))
292 return next_key
/external/strace/m4/
Dbpf_attr.m454 union bpf_attr.next_key,
/external/bcc/src/cc/
Dlibbpf.c268 attr.next_key = ptr_to_u64(key); in bpf_get_first_key()
298 int bpf_get_next_key(int fd, void *key, void *next_key) in bpf_get_next_key() argument
304 attr.next_key = ptr_to_u64(next_key); in bpf_get_next_key()
Dlibbpf.h41 int bpf_get_next_key(int fd, void *key, void *next_key);
/external/rust/crates/serde/src/de/
Dmod.rs1825 fn next_key<K>(&mut self) -> Result<Option<K>, Self::Error> in next_key() method
1915 fn next_key<K>(&mut self) -> Result<Option<K>, Self::Error> in next_key() function
1919 (**self).next_key() in next_key()
/external/bcc/src/cc/includes/
Dlibbpf.h41 int bpf_get_next_key(int fd, void *key, void *next_key);
/external/perfetto/src/trace_processor/importers/proto/
Dproto_trace_parser.cc567 StringId next_key = next == interned.end() ? kNullStringId : next->first; in ParseMetatraceEvent() local
569 if (key != next_key && current_idx == 0) { in ParseMetatraceEvent()
589 current_idx = key == next_key ? current_idx + 1 : 0; in ParseMetatraceEvent()
/external/iproute2/include/uapi/linux/
Dbpf.h199 __aligned_u64 next_key; member

12