/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | common.c | 40 void p_err(const char *fmt, ...) in p_err() function 204 p_err("mem alloc failed"); in open_obj_pinned() 256 p_err("mem alloc failed"); in mount_bpffs_for_pin() 746 p_err("%s", strerror(errno)); in prog_fd_by_nametag() 783 p_err("failed to realloc"); in prog_fd_by_nametag() 828 p_err("can't parse tag"); in prog_parse_fds() 841 p_err("can't parse name"); in prog_parse_fds() 872 p_err("mem alloc failed"); in prog_parse_fd() 934 p_err("failed to realloc"); in map_fd_by_name() 978 p_err("can't parse name"); in map_parse_fds() [all …]
|
A D | prog.c | 362 p_err("btf dump failed: %d", err); in show_prog_metadata() 387 p_err("jsonw alloc failed"); in show_prog_metadata() 400 p_err("btf dump failed: %d", err); in show_prog_metadata() 605 p_err("mem alloc failed"); in do_show_subset() 730 p_err("failed to get btf"); in prog_dump() 906 p_err("mem alloc failed"); in do_dump() 916 p_err("expected file path"); in do_dump() 1562 p_err("mem alloc failed"); in load_with_options() 1616 p_err("mem alloc failed"); in load_with_options() 1784 p_err("failed to pin all maps"); in load_with_options() [all …]
|
A D | cgroup.c | 302 p_err("duplicated argument: %s", *argv); in do_show() 316 p_err("can't open cgroup %s", path); in do_show() 453 p_err("cgroup v2 isn't mounted"); in do_show_tree() 463 p_err("duplicated argument: %s", *argv); in do_show_tree() 525 p_err("can't open cgroup %s", argv[0]); in do_attach() 531 p_err("invalid attach type"); in do_attach() 547 p_err("unknown option: %s", argv[i]); in do_attach() 553 p_err("failed to attach program"); in do_attach() 583 p_err("can't open cgroup %s", argv[0]); in do_detach() 589 p_err("invalid attach type"); in do_detach() [all …]
|
A D | map.c | 346 p_err("duplicate key"); in parse_elem() 348 p_err("unnecessary key"); in parse_elem() 363 p_err("duplicate value"); in parse_elem() 365 p_err("unnecessary value"); in parse_elem() 631 p_err("mem alloc failed"); in do_show_subset() 799 p_err("failed to get btf"); in get_map_kv_btf() 826 p_err("mem alloc failed"); in map_dump() 901 p_err("mem alloc failed"); in do_dump() 962 p_err("key mem alloc failed"); in alloc_key_value() 1129 p_err("mem alloc failed"); in do_getnext() [all …]
|
A D | struct_ops.c | 72 p_err("can't find bpf_map_info from btf_vmlinux"); in get_map_info_type_id() 109 p_err("mem alloc failed"); in map_info_alloc() 149 p_err("can't get map by id (%u): %s", in get_next_struct_ops_map() 220 p_err("no struct_ops found for %s", name); in do_search() 247 p_err("invalid id %s", id_str); in do_one_id() 373 p_err("mem alloc failed"); in __do_dump() 378 p_err("can't lookup struct_ops map %s id %u", in __do_dump() 422 p_err("can't create json writer"); in do_dump() 448 p_err("can't unload %s %s id %u: %s", in __do_unregister() 515 p_err("can't register struct_ops %s: %s", in do_register() [all …]
|
A D | iter.c | 36 p_err("incorrect map spec"); in do_pin() 54 p_err("can't open objfile %s", objfile); in do_pin() 60 p_err("can't load objfile %s", objfile); in do_pin() 67 p_err("can't find bpf program in objfile %s", objfile); in do_pin() 74 p_err("attach_iter failed for program %s", in do_pin() 85 p_err("pin_iter failed for program %s to path %s", in do_pin()
|
A D | main.c | 247 p_err("%s", msg); in detect_common_prefix() 290 p_err("too many arguments to command %d", cmd_nb); in make_args() 302 p_err("unterminated quoted string in command %d", in make_args() 335 p_err("too few parameters for batch"); in do_batch() 338 p_err("too many parameters for batch"); in do_batch() 341 p_err("expected 'file', got: %s", *argv); in do_batch() 373 p_err("missing continuation line on command %d", in do_batch() 384 p_err("command %d is too long", lines); in do_batch() 491 p_err("failed to create JSON writer"); in main() 514 p_err("failed to parse base BTF at '%s': %d\n", in main() [all …]
|
A D | pids.c | 49 p_err("failed to re-alloc memory for ID %u, PID %d, COMM %s...", in add_ref() 65 p_err("failed to alloc memory for ID %u, PID %d, COMM %s...", in add_ref() 73 p_err("failed to alloc memory for ID %u, PID %d, COMM %s...", in add_ref() 86 p_err("failed to append entry to hashmap for ID %u: %s", in add_ref() 108 p_err("failed to create hashmap for PID references"); in build_obj_refs_table() 115 p_err("failed to open PID iterator skeleton"); in build_obj_refs_table() 135 p_err("failed to attach PID iterator: %d", err); in build_obj_refs_table() 142 p_err("failed to create PID iterator session: %d", err); in build_obj_refs_table() 152 p_err("failed to read PID iterator output: %d", err); in build_obj_refs_table() 159 p_err("invalid PID iterator output format"); in build_obj_refs_table()
|
A D | btf.c | 621 p_err("can't parse %s as ID", *argv); in do_dump() 636 p_err("failed to load BTF from %s: %s", in do_dump() 667 p_err("unrecognized option: '%s'", *argv); in do_dump() 713 p_err("expected 'id', got: '%s'?", **argv); in btf_parse_fd() 720 p_err("can't parse %s as ID", **argv); in btf_parse_fd() 727 p_err("can't get BTF object by id (%u): %s", in btf_parse_fd() 756 p_err("unexpected object type: %d", type); in build_btf_type_table() 779 p_err("unexpected object type: %d", type); in build_btf_type_table() 798 p_err("can't get %s info: %s", names[type], in build_btf_type_table() 812 p_err("unexpected object type: %d", type); in build_btf_type_table() [all …]
|
A D | gen.c | 671 p_err("failed to load object file"); in gen_trace() 935 p_err("object name already specified"); in do_skeleton() 942 p_err("unknown arg %s", *argv); in do_skeleton() 950 p_err("extra unknown arguments"); in do_skeleton() 989 p_err("ignoring unrecognized internal map '%s'...", in do_skeleton() 1306 p_err("object name already specified"); in do_subskeleton() 1313 p_err("unknown arg %s", *argv); in do_subskeleton() 1321 p_err("extra unknown arguments"); in do_subskeleton() 1326 p_err("cannot use loader for subskeletons"); in do_subskeleton() 1586 p_err("failed to create BPF linker instance"); in do_object() [all …]
|
A D | link.c | 30 p_err("can't parse %s as ID", **argv); in link_parse_fd() 37 p_err("failed to get link with ID %d: %s", id, strerror(errno)); in link_parse_fd() 50 p_err("expected 'id' or 'pinned', got: '%s'?", **argv); in link_parse_fd() 150 p_err("can't get prog info: %s", strerror(errno)); in get_prog_info() 332 p_err("can't get link info: %s", in do_show_link() 368 p_err("failed to create hashmap for pinned paths"); in do_show() 392 p_err("can't get next link: %s%s", strerror(errno), in do_show() 401 p_err("can't get link by id (%u): %s", in do_show() 436 p_err("link specifier is invalid or missing\n"); in do_detach() 449 p_err("failed link detach: %s", strerror(-err)); in do_detach()
|
A D | map_perf_ring.c | 136 p_err("map is not a perf event array"); in do_event_pipe() 152 p_err("can't parse %s as CPU ID", *argv); in do_event_pipe() 163 p_err("can't parse %s as index", *argv); in do_event_pipe() 178 p_err("cpu and index must be specified together"); in do_event_pipe() 192 p_err("failed to create perf buffer: %s (%d)", in do_event_pipe() 207 p_err("perf buffer polling failed: %s (%d)", in do_event_pipe()
|
A D | jit_disasm.c | 92 p_err("Failed to retrieve triple"); in init_context() 99 p_err("Failed to create disassembler"); in init_context() 226 p_err("failed to create disassembler (get_exec_path)"); in init_context() 232 p_err("failed to create disassembler (bfd_openr)"); in init_context() 236 p_err("failed to create disassembler (bfd_check_format)"); in init_context() 243 p_err("mem alloc failed"); in init_context() 264 p_err("No libbfd support for %s", arch); in init_context() 287 p_err("failed to create disassembler"); in init_context()
|
A D | feature.c | 1067 p_err("failed to get capabilities for process: %s", in handle_perms() 1082 p_err("bug: failed to retrieve %s status: %s", cap_name, in handle_perms() 1129 p_err("bug: failed to clear capabilities: %s", strerror(errno)); in handle_perms() 1134 p_err("failed to drop capabilities: %s", strerror(errno)); in handle_perms() 1142 p_err("failed to clear storage object for capabilities: %s", in handle_perms() 1154 p_err("full feature probing requires root privileges"); in handle_perms() 1175 p_err("component to probe already specified"); in do_probe() 1184 p_err("component to probe already specified"); in do_probe() 1194 p_err("unrecognized netdevice '%s': %s", ifname, in do_probe() 1206 p_err("'prefix' argument can only be use after 'macros'"); in do_probe() [all …]
|
A D | net.c | 114 p_err("Netlink error reporting not supported"); in netlink_open() 496 p_err("can't open /proc/self/ns/net: %s", in query_flow_dissector() 512 p_err("can't query prog: %s", strerror(errno)); in query_flow_dissector() 531 p_err("invalid devname %s", **argv); in net_parse_dev() 535 p_err("expected 'dev', got: '%s'?", **argv); in net_parse_dev() 571 p_err("invalid net attach/detach type: %s", *argv); in do_attach() 590 p_err("expected 'overwrite', got: '%s'?", *argv); in do_attach() 601 p_err("interface %s attach failed: %s", in do_attach() 624 p_err("invalid net attach/detach type: %s", *argv); in do_detach() 639 p_err("interface %s detach failed: %s", in do_detach()
|
A D | tracelog.c | 49 p_err("tracefs mount point name too long"); in find_tracefs_mnt_single() 141 p_err("could not open trace pipe: %s", strerror(errno)); in do_tracelog() 153 p_err("failed to read content from trace pipe: %s", in do_tracelog()
|
A D | main.h | 36 #define BAD_ARG() ({ p_err("what is '%s'?", *argv); -1; }) 44 p_err("'%s' needs at least %d arguments, %d found", \ 88 void __printf(1, 2) p_err(const char *fmt, ...); 196 p_err("No JIT disassembly support"); in disasm_init()
|
A D | perf.c | 36 p_err("perf_query_support: cannot open directory \"/\" (%s)", in has_perf_query_support() 55 p_err("perf_query_support: %s", strerror(errno)); in has_perf_query_support()
|
A D | cfg.c | 77 p_err("OOM when allocating FUNC node"); in cfg_append_func() 103 p_err("OOM when allocating BB node"); in func_append_bb() 120 p_err("OOM when allocating BB node"); in func_insert_dummy_bb() 263 p_err("OOM when allocating edge node"); in new_edge()
|