/linux-4.4.14/samples/bpf/ |
D | tracex2_user.c | 39 struct hist_key key = {}, next_key; in print_hist_for_pid() local 47 while (bpf_get_next_key(fd, &key, &next_key) == 0) { in print_hist_for_pid() 48 if (memcmp(&next_key, task, SIZE)) { in print_hist_for_pid() 49 key = next_key; in print_hist_for_pid() 52 bpf_lookup_elem(fd, &next_key, &value); in print_hist_for_pid() 53 ind = next_key.index; in print_hist_for_pid() 59 key = next_key; in print_hist_for_pid() 74 struct hist_key key = {}, next_key; in print_hist() local 79 while (bpf_get_next_key(fd, &key, &next_key) == 0) { in print_hist() 83 if (memcmp(&tasks[i], &next_key, SIZE) == 0) in print_hist() [all …]
|
D | test_maps.c | 23 long long key, next_key, value; in test_hashmap_sanity() local 71 assert(bpf_get_next_key(map_fd, &key, &next_key) == 0 && in test_hashmap_sanity() 72 (next_key == 1 || next_key == 2)); in test_hashmap_sanity() 73 assert(bpf_get_next_key(map_fd, &next_key, &next_key) == 0 && in test_hashmap_sanity() 74 (next_key == 1 || next_key == 2)); in test_hashmap_sanity() 75 assert(bpf_get_next_key(map_fd, &next_key, &next_key) == -1 && in test_hashmap_sanity() 87 assert(bpf_get_next_key(map_fd, &key, &next_key) == -1 && in test_hashmap_sanity() 94 int key, next_key, map_fd; in test_arraymap_sanity() local 131 assert(bpf_get_next_key(map_fd, &key, &next_key) == 0 && in test_arraymap_sanity() 132 next_key == 0); in test_arraymap_sanity() [all …]
|
D | sockex3_user.c | 49 struct flow_keys key = {}, next_key; in main() local 54 while (bpf_get_next_key(map_fd[2], &key, &next_key) == 0) { in main() 55 bpf_lookup_elem(map_fd[2], &next_key, &value); in main() 57 inet_ntoa((struct in_addr){htonl(next_key.src)}), in main() 58 next_key.port16[0], in main() 59 inet_ntoa((struct in_addr){htonl(next_key.dst)}), in main() 60 next_key.port16[1], in main() 62 key = next_key; in main()
|
D | sockex2_user.c | 36 int key = 0, next_key; in main() local 39 while (bpf_get_next_key(map_fd[0], &key, &next_key) == 0) { in main() 40 bpf_lookup_elem(map_fd[0], &next_key, &value); in main() 42 inet_ntoa((struct in_addr){htonl(next_key)}), in main() 44 key = next_key; in main()
|
D | tracex4_user.c | 34 __u64 key, next_key; in print_old_objects() local 40 while (bpf_get_next_key(map_fd[0], &key, &next_key) == 0) { in print_old_objects() 41 bpf_lookup_elem(map_fd[0], &next_key, &v); in print_old_objects() 42 key = next_key; in print_old_objects() 47 next_key, (val - v.val) / 1000000000ll, v.ip); in print_old_objects()
|
D | libbpf.c | 67 int bpf_get_next_key(int fd, void *key, void *next_key) in bpf_get_next_key() argument 72 .next_key = ptr_to_u64(next_key), in bpf_get_next_key()
|
D | libbpf.h | 12 int bpf_get_next_key(int fd, void *key, void *next_key);
|
/linux-4.4.14/kernel/bpf/ |
D | syscall.c | 373 #define BPF_MAP_GET_NEXT_KEY_LAST_FIELD next_key 378 void __user *unext_key = u64_to_ptr(attr->next_key); in map_get_next_key() 381 void *key, *next_key; in map_get_next_key() local 403 next_key = kmalloc(map->key_size, GFP_USER); in map_get_next_key() 404 if (!next_key) in map_get_next_key() 408 err = map->ops->map_get_next_key(map, key, next_key); in map_get_next_key() 414 if (copy_to_user(unext_key, next_key, map->key_size) != 0) in map_get_next_key() 420 kfree(next_key); in map_get_next_key()
|
D | hashtab.c | 166 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key() argument 196 memcpy(next_key, next_l->key, key_size); in htab_map_get_next_key() 214 memcpy(next_key, next_l->key, key_size); in htab_map_get_next_key()
|
D | arraymap.c | 77 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key() argument 81 u32 *next = (u32 *)next_key; in array_map_get_next_key()
|
/linux-4.4.14/tools/perf/ui/tui/ |
D | util.c | 136 goto next_key; in ui_browser__input_window() 155 next_key: in ui_browser__input_window()
|
/linux-4.4.14/fs/btrfs/ |
D | reada.c | 169 struct btrfs_key next_key; in __readahead_hook() local 173 btrfs_node_key_to_cpu(eb, &next_key, i + 1); in __readahead_hook() 175 next_key = re->top; in __readahead_hook() 199 btrfs_comp_cpu_keys(&next_key, &rc->key_start) > 0) in __readahead_hook() 200 reada_add_block(rc, bytenr, &next_key, in __readahead_hook()
|
D | relocation.c | 1763 struct btrfs_path *path, struct btrfs_key *next_key, argument 1804 if (next_key) { 1805 next_key->objectid = (u64)-1; 1806 next_key->type = (u8)-1; 1807 next_key->offset = (u64)-1; 1819 if (next_key && slot + 1 < btrfs_header_nritems(parent)) 1820 btrfs_node_key_to_cpu(parent, next_key, slot + 1); 2117 struct btrfs_key next_key; local 2156 btrfs_node_key_to_cpu(path->nodes[level], &next_key, 2158 WARN_ON(memcmp(&key, &next_key, sizeof(key))); [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | bpf.h | 114 __aligned_u64 next_key; member
|
/linux-4.4.14/include/linux/ |
D | bpf.h | 21 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
|
/linux-4.4.14/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 771 static void next_key(u8 *key, int round); 801 static void next_key(u8 *key, int round) in next_key() function 919 next_key(round_key, round); in aes128k128d() 932 next_key(round_key, round); in aes128k128d()
|
/linux-4.4.14/drivers/staging/rtl8712/ |
D | rtl871x_security.c | 781 static void next_key(u8 *key, sint round) in next_key() function 892 next_key(round_key, round); in aes128k128d() 905 next_key(round_key, round); in aes128k128d()
|
/linux-4.4.14/drivers/staging/rtl8723au/core/ |
D | rtw_security.c | 855 static void next_key(u8 *key, int round) in next_key() function 982 next_key(round_key, round); in aes128k128d() 995 next_key(round_key, round); in aes128k128d()
|