/linux/samples/bpf/ |
A D | tracex2_user.c | 46 struct hist_key key = {}, next_key; in print_hist_for_pid() local 56 if (memcmp(&next_key, task, SIZE)) { in print_hist_for_pid() 57 key = next_key; in print_hist_for_pid() 60 bpf_map_lookup_elem(fd, &next_key, values); in print_hist_for_pid() 64 ind = next_key.index; in print_hist_for_pid() 70 key = next_key; in print_hist_for_pid() 85 struct hist_key key = {}, next_key; in print_hist() local 94 if (memcmp(&tasks[i], &next_key, SIZE) == 0) in print_hist() 98 key = next_key; in print_hist() 119 long key, next_key, value; in main() local [all …]
|
A D | lwt_len_hist_user.c | 34 uint64_t key = 0, next_key, max_key = 0; in main() local 45 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main() 46 if (next_key >= MAX_INDEX) { in main() 47 fprintf(stderr, "Key %lu out of bounds\n", next_key); in main() 51 bpf_map_lookup_elem(map_fd, &next_key, values); in main() 57 data[next_key] = sum; in main() 58 if (sum && next_key > max_key) in main() 59 max_key = next_key; in main() 64 key = next_key; in main()
|
A D | sockex3_user.c | 84 struct flow_key_record key = {}, next_key; in main() local 89 while (bpf_map_get_next_key(hash_map_fd, &key, &next_key) == 0) { in main() 90 bpf_map_lookup_elem(hash_map_fd, &next_key, &value); in main() 92 inet_ntoa((struct in_addr){htonl(next_key.src)}), in main() 93 next_key.port16[0], in main() 94 inet_ntoa((struct in_addr){htonl(next_key.dst)}), in main() 95 next_key.port16[1], in main() 97 key = next_key; in main()
|
A D | spintest_user.c | 16 long key, next_key, value; in main() local 67 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main() 68 bpf_map_lookup_elem(map_fd, &next_key, &value); in main() 69 assert(next_key == value); in main() 71 key = next_key; in main() 82 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) in main() 83 bpf_map_delete_elem(map_fd, &next_key); in main()
|
A D | sockex2_user.c | 42 int key = 0, next_key; in main() local 45 while (bpf_map_get_next_key(map_fd, &key, &next_key) == 0) { in main() 46 bpf_map_lookup_elem(map_fd, &next_key, &value); in main() 48 inet_ntoa((struct in_addr){htonl(next_key)}), in main() 50 key = next_key; in main()
|
A D | tracex4_user.c | 32 __u64 key, next_key; in print_old_objects() local 38 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_old_objects() 39 bpf_map_lookup_elem(fd, &next_key, &v); in print_old_objects() 40 key = next_key; in print_old_objects() 45 next_key, (val - v.val) / 1000000000ll, v.ip); in print_old_objects()
|
A D | offwaketime_user.c | 80 struct key_t key = {}, next_key; in print_stacks() local 83 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_stacks() 84 bpf_map_lookup_elem(fd, &next_key, &value); in print_stacks() 85 print_stack(&next_key, value); in print_stacks() 86 key = next_key; in print_stacks()
|
A D | sampleip_user.c | 92 __u64 key, next_key; in print_ip_map() local 100 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_ip_map() 101 bpf_map_lookup_elem(fd, &next_key, &value); in print_ip_map() 102 counts[i].ip = next_key; in print_ip_map() 104 key = next_key; in print_ip_map()
|
A D | trace_event_user.c | 102 struct key_t key = {}, next_key; in print_stacks() local 108 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_stacks() 109 bpf_map_lookup_elem(fd, &next_key, &value); in print_stacks() 110 print_stack(&next_key, value); in print_stacks() 111 bpf_map_delete_elem(fd, &next_key); in print_stacks() 112 key = next_key; in print_stacks()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_maps.c | 111 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_hashmap() 112 (next_key == 1 || next_key == 2) && in test_hashmap() 114 assert(bpf_map_get_next_key(fd, &next_key, &next_key) < 0 && in test_hashmap() 236 assert((expected_key_mask & next_key) == next_key); in test_hashmap_percpu() 244 key = next_key; in test_hashmap_percpu() 301 key = next_key; in test_hashmap_walk() 313 key = next_key; in test_hashmap_walk() 405 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_arraymap() 407 assert(bpf_map_get_next_key(fd, &next_key, &next_key) < 0 && in test_arraymap() 464 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 && in test_arraymap_percpu() [all …]
|
A D | test_lru_map.c | 106 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()
|
A D | test_progs.c | 312 __u32 key, next_key; in compare_map_keys() local 324 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys() 325 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys() 329 key = next_key; in compare_map_keys() 339 __u32 key, next_key, *cur_key_p, *next_key_p; in compare_stack_ips() local 362 next_key_p = &next_key; in compare_stack_ips()
|
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
A D | cmsg.c | 404 void *next_key) in nfp_bpf_ctrl_getfirst_entry() argument 407 NULL, NULL, 0, next_key, NULL); in nfp_bpf_ctrl_getfirst_entry() 411 void *key, void *next_key) in nfp_bpf_ctrl_getnext_entry() argument 414 key, NULL, 0, next_key, NULL); in nfp_bpf_ctrl_getnext_entry()
|
A D | main.h | 599 void *next_key); 606 void *key, void *next_key);
|
A D | offload.c | 309 void *key, void *next_key) in nfp_bpf_map_get_next_key() argument 312 return nfp_bpf_ctrl_getfirst_entry(offmap, next_key); in nfp_bpf_map_get_next_key() 313 return nfp_bpf_ctrl_getnext_entry(offmap, key, next_key); in nfp_bpf_map_get_next_key()
|
/linux/tools/perf/ui/tui/ |
A D | util.c | 139 goto next_key; in ui_browser__input_window() 158 next_key: in ui_browser__input_window()
|
/linux/kernel/bpf/ |
A D | reuseport_array.c | 326 void *next_key) in reuseport_array_get_next_key() argument 330 u32 *next = (u32 *)next_key; in reuseport_array_get_next_key()
|
A D | lpm_trie.c | 618 struct bpf_lpm_trie_key *key = _key, *next_key = _next_key; in trie_get_next_key() local 704 next_key->prefixlen = next_node->prefixlen; in trie_get_next_key() 705 memcpy((void *)next_key + offsetof(struct bpf_lpm_trie_key, data), in trie_get_next_key()
|
A D | devmap.c | 245 static int dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in dev_map_get_next_key() argument 249 u32 *next = next_key; in dev_map_get_next_key() 281 void *next_key) in dev_map_hash_get_next_key() argument 284 u32 idx, *next = next_key; in dev_map_hash_get_next_key()
|
A D | bpf_struct_ops.c | 236 void *next_key) in bpf_struct_ops_map_get_next_key() argument 241 *(u32 *)next_key = 0; in bpf_struct_ops_map_get_next_key()
|
A D | bpf_inode_storage.c | 217 void *next_key) in notsupp_get_next_key() argument
|
/linux/fs/btrfs/ |
A D | reada.c | 140 struct btrfs_key next_key; in __readahead_hook() local 144 btrfs_node_key_to_cpu(eb, &next_key, i + 1); in __readahead_hook() 146 next_key = re->top; in __readahead_hook() 170 btrfs_comp_cpu_keys(&next_key, &rc->key_start) > 0) in __readahead_hook() 171 reada_add_block(rc, bytenr, &next_key, in __readahead_hook()
|
A D | relocation.c | 1245 if (next_key) { in replace_path() 1246 next_key->objectid = (u64)-1; in replace_path() 1247 next_key->type = (u8)-1; in replace_path() 1248 next_key->offset = (u64)-1; in replace_path() 1680 struct btrfs_key next_key; in merge_reloc_root() local 1721 WARN_ON(memcmp(&key, &next_key, sizeof(key))); in merge_reloc_root() 1736 memset(&next_key, 0, sizeof(next_key)); in merge_reloc_root() 1773 btrfs_comp_cpu_keys(&next_key, &key) >= 0) { in merge_reloc_root() 1777 &next_key, level, max_level); in merge_reloc_root() 1807 invalidate_extent_cache(root, &key, &next_key); in merge_reloc_root() [all …]
|
A D | tree-checker.c | 1760 struct btrfs_key key, next_key; in btrfs_check_node() local 1784 btrfs_node_key_to_cpu(node, &next_key, slot + 1); in btrfs_check_node() 1800 if (unlikely(btrfs_comp_cpu_keys(&key, &next_key) >= 0)) { in btrfs_check_node() 1804 next_key.objectid, next_key.type, in btrfs_check_node() 1805 next_key.offset); in btrfs_check_node()
|
/linux/net/xdp/ |
A D | xskmap.c | 94 static int xsk_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in xsk_map_get_next_key() argument 98 u32 *next = next_key; in xsk_map_get_next_key()
|