/tools/bpf/bpftool/ |
D | common.c | 40 void p_err(const char *fmt, ...) in p_err() function 190 p_err("can't mount tracefs: %s", err_str); in mount_tracefs() 204 p_err("mem alloc failed"); in open_obj_pinned() 211 p_err("bpf obj get (%s): %s", pname, in open_obj_pinned() 239 p_err("incorrect object type: %s", get_fd_type_name(type)); in open_obj_pinned_any() 264 p_err("mem alloc failed"); in create_and_mount_bpffs_dir() 277 p_err("can't create dir '%s' to pin BPF object: parent dir '%s' doesn't exist", in create_and_mount_bpffs_dir() 287 p_err("no BPF file system found, not mounting it due to --nomount option"); in create_and_mount_bpffs_dir() 294 p_err("failed to create dir '%s': %s", dir_name, strerror(errno)); in create_and_mount_bpffs_dir() 302 p_err("can't mount BPF file system on given dir '%s': %s", in create_and_mount_bpffs_dir() [all …]
|
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()
|
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() 585 p_err("can't get prog info: %s", strerror(errno)); in show_prog() 605 p_err("mem alloc failed"); in do_show_subset() 641 p_err("failed to create hashmap for pinned paths"); in do_show() 663 p_err("can't get next program: %s%s", strerror(errno), in do_show() 673 p_err("can't get prog by id (%u): %s", in do_show() 720 p_err("error retrieving insn dump: kernel.kptr_restrict set?"); in prog_dump() 730 p_err("failed to get btf"); in prog_dump() [all …]
|
D | struct_ops.c | 36 p_err("struct_ops requires kernel CONFIG_DEBUG_INFO_BTF=y"); in get_btf_vmlinux() 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() 141 p_err("can't get next map: %s", strerror(errno)); in get_next_struct_ops_map() 149 p_err("can't get map by id (%u): %s", in get_next_struct_ops_map() 156 p_err("can't get map info: %s", strerror(errno)); 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() 254 p_err("can't get map by id (%lu): %s", id, strerror(errno)); in do_one_id() 266 p_err("can't get map info: %s", strerror(errno)); in do_one_id() [all …]
|
D | cgroup.c | 302 p_err("duplicated argument: %s", *argv); in do_show() 308 p_err("expected no more arguments, 'effective', got: '%s'?", in do_show() 316 p_err("can't open cgroup %s", path); in do_show() 322 p_err("can't query bpf programs attached to %s: %s", in do_show() 378 p_err("can't open cgroup %s: %s", fpath, strerror(errno)); in do_show_tree_fn() 384 p_err("can't query bpf programs attached to %s: %s", in do_show_tree_fn() 453 p_err("cgroup v2 isn't mounted"); in do_show_tree() 463 p_err("duplicated argument: %s", *argv); in do_show_tree() 469 p_err("expected no more arguments, 'effective', got: '%s'?", in do_show_tree() 491 p_err("can't iterate over %s: %s", cgroup_root, in do_show_tree() [all …]
|
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()
|
D | map.c | 312 p_err("error parsing byte: %s", argv[i]); in parse_bytes() 319 p_err("%s expected %d bytes got %d", name, n, i); in parse_bytes() 347 p_err("did not find %s", key ? "key" : "value"); in parse_elem() 354 p_err("duplicate key"); in parse_elem() 356 p_err("unnecessary key"); in parse_elem() 371 p_err("duplicate value"); in parse_elem() 373 p_err("unnecessary value"); in parse_elem() 383 p_err("value smaller than 4B for map in map?"); in parse_elem() 387 p_err("not enough value arguments for map in map"); in parse_elem() 401 p_err("value smaller than 4B for map of progs?"); in parse_elem() [all …]
|
D | main.c | 202 p_err("command '%s' is not supported in bootstrap mode", in cmd_select() 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() 351 p_err("Can't open file (%s): %s", *argv, strerror(errno)); 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() [all …]
|
D | btf.c | 515 p_err("failed to parse vmlinux BTF at '%s': %d\n", in get_vmlinux_btf_from_sysfs() 533 p_err("can't get BTF object by id (%u): %s", btf_id, strerror(errno)); in btf_is_kernel_module() 543 p_err("can't get BTF (ID %u) object info: %s", btf_id, strerror(errno)); in btf_is_kernel_module() 611 p_err("can't get prog info: %s", strerror(errno)); in do_dump() 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() 643 p_err("unrecognized BTF source specifier: '%s'", src); in do_dump() 651 p_err("expecting value for 'format' option\n"); in do_dump() 660 p_err("unrecognized format specifier: '%s', possible values: raw, c", in do_dump() 667 p_err("unrecognized option: '%s'", *argv); in do_dump() [all …]
|
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()
|
D | gen.c | 159 p_err("Something is wrong for %s's variable #%d: need offset %d, already at %d.\n", in codegen_datasec_def() 166 p_err("Failed to determine alignment of variable '%s': %d", in codegen_datasec_def() 400 p_err("unrecognized character at pos %td in template '%s': '%c'", in codegen() 411 p_err("not enough tabs at pos %td in template '%s'", in codegen() 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() 955 p_err("failed to stat() %s: %s", file, strerror(errno)); in do_skeleton() 962 p_err("failed to open() %s: %s", file, strerror(errno)); in do_skeleton() [all …]
|
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()
|
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() 1110 p_err("missing %s, required for full feature probing; run as root or use 'unprivileged'", in handle_perms() 1113 …p_err("missing %s%s%s%s%s%s%s%srequired for full feature probing; run as root or use 'unprivileged… 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() [all …]
|
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()
|
D | net.c | 119 p_err("Netlink error reporting not supported"); in netlink_open() 582 p_err("can't open /proc/self/ns/net: %s", in query_flow_dissector() 598 p_err("can't query prog: %s", strerror(errno)); in query_flow_dissector() 617 p_err("invalid devname %s", **argv); in net_parse_dev() 621 p_err("expected 'dev', got: '%s'?", **argv); in net_parse_dev() 657 p_err("invalid net attach/detach type: %s", *argv); in do_attach() 676 p_err("expected 'overwrite', got: '%s'?", *argv); in do_attach() 687 p_err("interface %s attach failed: %s", in do_attach() 710 p_err("invalid net attach/detach type: %s", *argv); in do_detach() 725 p_err("interface %s detach failed: %s", in do_detach() [all …]
|
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, ...); 197 p_err("No JIT disassembly support"); in disasm_init()
|
D | link.c | 103 p_err("can't parse %s as ID", **argv); in link_parse_fd() 110 p_err("failed to get link with ID %d: %s", id, strerror(errno)); in link_parse_fd() 123 p_err("expected 'id' or 'pinned', got: '%s'?", **argv); in link_parse_fd() 247 p_err("can't get prog info: %s", strerror(errno)); in get_prog_info() 328 p_err("mem alloc failed"); in perf_config_hw_cache_str() 846 p_err("can't get link info: %s", in do_show_link() 869 p_err("mem alloc failed"); in do_show_link() 927 p_err("failed to create hashmap for pinned paths"); in do_show() 952 p_err("can't get next link: %s%s", strerror(errno), in do_show() 961 p_err("can't get link by id (%u): %s", in do_show() [all …]
|
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()
|
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()
|