Lines Matching refs:next_key
46 struct hist_key key = {}, next_key; in print_hist_for_pid() local
55 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_hist_for_pid()
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
90 while (bpf_map_get_next_key(fd, &key, &next_key) == 0) { in print_hist()
94 if (memcmp(&tasks[i], &next_key, SIZE) == 0) in print_hist()
97 memcpy(&tasks[task_cnt++], &next_key, SIZE); in print_hist()
98 key = next_key; in print_hist()
119 long key, next_key, value; in main() local
170 while (bpf_map_get_next_key(map_fd[0], &key, &next_key) == 0) { in main()
171 bpf_map_lookup_elem(map_fd[0], &next_key, &value); in main()
172 printf("location 0x%lx count %ld\n", next_key, value); in main()
173 key = next_key; in main()