Home
last modified time | relevance | path

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

/linux-4.4.14/samples/bpf/
Dtracex2_user.c39 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 …]
Dtest_maps.c23 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 …]
Dsockex3_user.c49 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()
Dsockex2_user.c36 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()
Dtracex4_user.c34 __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()
Dlibbpf.c67 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()
Dlibbpf.h12 int bpf_get_next_key(int fd, void *key, void *next_key);
/linux-4.4.14/kernel/bpf/
Dsyscall.c373 #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()
Dhashtab.c166 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()
Darraymap.c77 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/
Dutil.c136 goto next_key; in ui_browser__input_window()
155 next_key: in ui_browser__input_window()
/linux-4.4.14/fs/btrfs/
Dreada.c169 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()
Drelocation.c1763 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/
Dbpf.h114 __aligned_u64 next_key; member
/linux-4.4.14/include/linux/
Dbpf.h21 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_security.c771 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/
Drtl871x_security.c781 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/
Drtw_security.c855 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()