Home
last modified time | relevance | path

Searched refs:libbpf_err (Results 1 – 9 of 9) sorted by relevance

/linux/tools/lib/bpf/
H A Dnetlink.c329 return libbpf_err(-EINVAL); in bpf_xdp_attach()
338 return libbpf_err(err); in bpf_xdp_attach()
449 return libbpf_err(-EINVAL); in bpf_xdp_query()
452 return libbpf_err(-EINVAL); in bpf_xdp_query()
457 return libbpf_err(-EINVAL); in bpf_xdp_query()
465 return libbpf_err(err); in bpf_xdp_query()
482 return libbpf_err(err); in bpf_xdp_query()
494 return libbpf_err(err); in bpf_xdp_query()
499 return libbpf_err(err); in bpf_xdp_query()
515 return libbpf_err(ret); in bpf_xdp_query_id()
[all …]
H A Dbtf.c882 return libbpf_err(-EINVAL); in btf__set_pointer_size()
909 return libbpf_err(-EINVAL); in btf__set_endianness()
966 return libbpf_err(-E2BIG); in btf__resolve_size()
971 return libbpf_err(-EINVAL); in btf__resolve_size()
979 return libbpf_err(-EINVAL); in btf__resolve_size()
981 return libbpf_err(-E2BIG); in btf__resolve_size()
1016 return libbpf_err(align); in btf__align_of()
1056 return libbpf_err(-EINVAL); in btf__resolve_type()
1136 return libbpf_err(-ENOENT); in btf_find_by_name_kind()
1151 return libbpf_err(-ENOENT); in btf_find_by_name_kind()
[all …]
H A Dringbuf.c93 return libbpf_err(err); in ring_buffer__add()
99 return libbpf_err(-EINVAL); in ring_buffer__add()
104 return libbpf_err(-ENOMEM); in ring_buffer__add()
109 return libbpf_err(-ENOMEM); in ring_buffer__add()
114 return libbpf_err(-ENOMEM); in ring_buffer__add()
169 return libbpf_err(err); in ring_buffer__add()
297 return libbpf_err(err); in ring_buffer__consume_n()
322 return libbpf_err(err); in ring_buffer__consume()
343 return libbpf_err(-errno); in ring_buffer__poll()
351 return libbpf_err(err); in ring_buffer__poll()
[all …]
H A Dlibbpf_probes.c215 return libbpf_err(-EINVAL); in libbpf_probe_bpf_prog_type()
218 return libbpf_err(ret); in libbpf_probe_bpf_prog_type()
427 return libbpf_err(-EINVAL); in libbpf_probe_bpf_helper()
430 return libbpf_err(ret); in libbpf_probe_bpf_helper()
445 return libbpf_err(-EINVAL); in libbpf_probe_bpf_helper()
463 return libbpf_err(ret); in libbpf_probe_bpf_helper()
H A Dlibbpf.c5042 return libbpf_err(-EBUSY); in bpf_map__set_autocreate()
5051 return libbpf_err(-EINVAL); in bpf_map__set_autoattach()
5074 return libbpf_err(err); in bpf_map__reuse_fd()
5083 return libbpf_err(-errno); in bpf_map__reuse_fd()
5117 return libbpf_err(err); in bpf_map__reuse_fd()
5136 return libbpf_err(-EBUSY); in bpf_map__set_max_entries()
8611 return libbpf_err(-EINVAL); in bpf_object_unload()
9129 return libbpf_err(-EINVAL); in bpf_object_load()
9133 return libbpf_err(-EINVAL); in bpf_object_load()
9143 return libbpf_err(-LIBBPF_ERRNO__ENDIAN); in bpf_object_load()
[all …]
H A Dlibbpf_utils.c52 return libbpf_err(-EINVAL); in libbpf_strerror()
73 return libbpf_err(-ERANGE); in libbpf_strerror()
80 return libbpf_err(-ERANGE); in libbpf_strerror()
81 return libbpf_err(-ENOENT); in libbpf_strerror()
H A Dlinker.c524 return libbpf_err(-EINVAL); in bpf_linker__add_file()
527 return libbpf_err(-EINVAL); in bpf_linker__add_file()
533 return libbpf_err(err); in bpf_linker__add_file()
538 return libbpf_err(err); in bpf_linker__add_file()
548 return libbpf_err(-EINVAL); in bpf_linker__add_fd()
551 return libbpf_err(-EINVAL); in bpf_linker__add_fd()
554 return libbpf_err(-EINVAL); in bpf_linker__add_fd()
558 return libbpf_err(err); in bpf_linker__add_fd()
568 return libbpf_err(-EINVAL); in bpf_linker__add_buf()
571 return libbpf_err(-EINVAL); in bpf_linker__add_buf()
[all …]
H A Dbtf_dump.c286 return libbpf_err(-EINVAL); in btf_dump__dump_type()
290 return libbpf_err(err); in btf_dump__dump_type()
295 return libbpf_err(err); in btf_dump__dump_type()
1277 return libbpf_err(-EINVAL); in btf_dump__emit_type_decl()
1281 return libbpf_err(err); in btf_dump__emit_type_decl()
2590 return libbpf_err(-EINVAL); in btf_dump__dump_type_data()
2594 return libbpf_err(-ENOENT); in btf_dump__dump_type_data()
2616 return libbpf_err(ret); in btf_dump__dump_type_data()
H A Dlibbpf_internal.h603 static inline int libbpf_err(int ret) in libbpf_err() function