Home
last modified time | relevance | path

Searched refs:next_id (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_id.c28 __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/
Dbpf.h225 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);
Dbpf.c758 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()
Dbtf_dump.c1368 __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/
Dexported-sql-viewer.py3462 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/
Dbpf.h610 __u32 next_id; member