Searched refs:next_key (Results 1 – 7 of 7) sorted by relevance
/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 | 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 | 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 | 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);
|