Searched refs:next_id (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 28 __u32 i, next_id, info_len, nr_id_found, duration = 0; in test_bpf_obj_id() local 189 next_id = 0; in test_bpf_obj_id() 190 while (!bpf_prog_get_next_id(next_id, &next_id)) { in test_bpf_obj_id() 197 prog_fd = bpf_prog_get_fd_by_id(next_id); in test_bpf_obj_id() 203 prog_fd, next_id, errno)) in test_bpf_obj_id() 207 if (prog_infos[i].id == next_id) in test_bpf_obj_id() 251 next_id = 0; in test_bpf_obj_id() 252 while (!bpf_map_get_next_id(next_id, &next_id)) { in test_bpf_obj_id() 258 map_fd = bpf_map_get_fd_by_id(next_id); in test_bpf_obj_id() 264 map_fd, next_id, errno)) in test_bpf_obj_id() [all …]
|
/tools/lib/bpf/ |
D | bpf.h | 225 LIBBPF_API int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id); 226 LIBBPF_API int bpf_map_get_next_id(__u32 start_id, __u32 *next_id); 227 LIBBPF_API int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id); 228 LIBBPF_API int bpf_link_get_next_id(__u32 start_id, __u32 *next_id);
|
D | bpf.c | 758 static int bpf_obj_get_next_id(__u32 start_id, __u32 *next_id, int cmd) in bpf_obj_get_next_id() argument 768 *next_id = attr.next_id; in bpf_obj_get_next_id() 773 int bpf_prog_get_next_id(__u32 start_id, __u32 *next_id) in bpf_prog_get_next_id() argument 775 return bpf_obj_get_next_id(start_id, next_id, BPF_PROG_GET_NEXT_ID); in bpf_prog_get_next_id() 778 int bpf_map_get_next_id(__u32 start_id, __u32 *next_id) in bpf_map_get_next_id() argument 780 return bpf_obj_get_next_id(start_id, next_id, BPF_MAP_GET_NEXT_ID); in bpf_map_get_next_id() 783 int bpf_btf_get_next_id(__u32 start_id, __u32 *next_id) in bpf_btf_get_next_id() argument 785 return bpf_obj_get_next_id(start_id, next_id, BPF_BTF_GET_NEXT_ID); in bpf_btf_get_next_id() 788 int bpf_link_get_next_id(__u32 start_id, __u32 *next_id) in bpf_link_get_next_id() argument 790 return bpf_obj_get_next_id(start_id, next_id, BPF_LINK_GET_NEXT_ID); in bpf_link_get_next_id()
|
D | btf_dump.c | 1368 __u32 next_id; in btf_dump_emit_type_chain() local 1388 next_id = decls->ids[decls->cnt - 1]; in btf_dump_emit_type_chain() 1389 next_t = btf__type_by_id(d->btf, next_id); in btf_dump_emit_type_chain()
|
/tools/perf/scripts/python/ |
D | exported-sql-viewer.py | 3462 next_id = int((lower_id + higher_id) / 2) 3463 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id)) 3465 ok, dbid = self.IdBetween(query, lower_id, next_id, "DESC") 3467 ok, dbid = self.IdBetween(query, next_id, higher_id, "") 3470 next_id = dbid 3471 QueryExec(query, "SELECT time FROM samples WHERE id = " + str(next_id)) 3475 lower_id = next_id 3477 higher_id = next_id 3482 lower_id = next_id 3484 higher_id = next_id
|
/tools/include/uapi/linux/ |
D | bpf.h | 610 __u32 next_id; member
|