Home
last modified time | relevance | path

Searched refs:p_err (Results 1 – 19 of 19) sorted by relevance

/linux-6.1.9/tools/bpf/bpftool/
Dcommon.c38 void p_err(const char *fmt, ...) in p_err() function
188 p_err("can't mount tracefs: %s", err_str); in mount_tracefs()
202 p_err("mem alloc failed"); in open_obj_pinned()
209 p_err("bpf obj get (%s): %s", pname, in open_obj_pinned()
237 p_err("incorrect object type: %s", get_fd_type_name(type)); in open_obj_pinned_any()
254 p_err("mem alloc failed"); in mount_bpffs_for_pin()
266 p_err("no BPF file system found, not mounting it due to --nomount option"); in mount_bpffs_for_pin()
274 p_err("can't mount BPF file system to pin the object (%s): %s", in mount_bpffs_for_pin()
293 p_err("can't pin the object (%s): %s", name, strerror(errno)); in do_pin_fd()
384 p_err("can't read link type: %s", strerror(errno)); in get_fd_type()
[all …]
Dprog.c360 p_err("btf dump failed: %d", err); in show_prog_metadata()
385 p_err("jsonw alloc failed"); in show_prog_metadata()
398 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 …]
Dcgroup.c302 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 …]
Dmap.c305 p_err("error parsing byte: %s", argv[i]); in parse_bytes()
312 p_err("%s expected %d bytes got %d", name, n, i); in parse_bytes()
340 p_err("did not find %s", key ? "key" : "value"); in parse_elem()
347 p_err("duplicate key"); in parse_elem()
349 p_err("unnecessary key"); in parse_elem()
364 p_err("duplicate value"); in parse_elem()
366 p_err("unnecessary value"); in parse_elem()
376 p_err("value smaller than 4B for map in map?"); in parse_elem()
380 p_err("not enough value arguments for map in map"); in parse_elem()
394 p_err("value smaller than 4B for map of progs?"); in parse_elem()
[all …]
Dstruct_ops.c36 p_err("struct_ops requires kernel CONFIG_DEBUG_INFO_BTF=y"); in get_btf_vmlinux()
74 p_err("can't find bpf_map_info from btf_vmlinux"); in get_map_info_type_id()
111 p_err("mem alloc failed"); in map_info_alloc()
143 p_err("can't get next map: %s", strerror(errno)); in get_next_struct_ops_map()
151 p_err("can't get map by id (%u): %s", in get_next_struct_ops_map()
158 p_err("can't get map info: %s", strerror(errno)); in get_next_struct_ops_map()
222 p_err("no struct_ops found for %s", name); in do_search()
249 p_err("invalid id %s", id_str); in do_one_id()
256 p_err("can't get map by id (%lu): %s", id, strerror(errno)); in do_one_id()
268 p_err("can't get map info: %s", strerror(errno)); in do_one_id()
[all …]
Dmain.c161 p_err("command '%s' is not supported in bootstrap mode", in cmd_select()
206 p_err("%s", msg); in detect_common_prefix()
249 p_err("too many arguments to command %d", cmd_nb); in make_args()
261 p_err("unterminated quoted string in command %d", in make_args()
314 p_err("too few parameters for batch"); in do_batch()
317 p_err("expected 'file', got: %s", *argv); in do_batch()
320 p_err("too many parameters for batch"); in do_batch()
330 p_err("Can't open file (%s): %s", *argv, strerror(errno)); in do_batch()
352 p_err("missing continuation line on command %d", in do_batch()
363 p_err("command %d is too long", lines); in do_batch()
[all …]
Diter.c33 p_err("incorrect map spec"); in do_pin()
51 p_err("can't open objfile %s", objfile); in do_pin()
57 p_err("can't load objfile %s", objfile); in do_pin()
63 p_err("can't find bpf program in objfile %s", objfile); in do_pin()
70 p_err("attach_iter failed for program %s", in do_pin()
81 p_err("pin_iter failed for program %s to path %s", in do_pin()
Dpids.c49 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()
Dbtf.c516 p_err("failed to parse vmlinux BTF at '%s': %ld\n", in get_vmlinux_btf_from_sysfs()
536 p_err("can't get BTF object by id (%u): %s", btf_id, strerror(errno)); in btf_is_kernel_module()
546 p_err("can't get BTF (ID %u) object info: %s", btf_id, strerror(errno)); in btf_is_kernel_module()
614 p_err("can't get prog info: %s", strerror(errno)); in do_dump()
624 p_err("can't parse %s as ID", *argv); in do_dump()
639 p_err("failed to load BTF from %s: %s", in do_dump()
646 p_err("unrecognized BTF source specifier: '%s'", src); in do_dump()
654 p_err("expecting value for 'format' option\n"); in do_dump()
663 p_err("unrecognized format specifier: '%s', possible values: raw, c", in do_dump()
670 p_err("unrecognized option: '%s'", *argv); in do_dump()
[all …]
Dgen.c159 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()
401 p_err("unrecognized character at pos %td in template '%s': '%c'", in codegen()
412 p_err("not enough tabs at pos %td in template '%s'", in codegen()
672 p_err("failed to load object file"); in gen_trace()
936 p_err("object name already specified"); in do_skeleton()
943 p_err("unknown arg %s", *argv); in do_skeleton()
951 p_err("extra unknown arguments"); in do_skeleton()
956 p_err("failed to stat() %s: %s", file, strerror(errno)); in do_skeleton()
963 p_err("failed to open() %s: %s", file, strerror(errno)); in do_skeleton()
[all …]
Dlink.c30 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()
334 p_err("can't get link info: %s", in do_show_link()
370 p_err("failed to create hashmap for pinned paths"); in do_show()
394 p_err("can't get next link: %s%s", strerror(errno), in do_show()
403 p_err("can't get link by id (%u): %s", in do_show()
438 p_err("link specifier is invalid or missing\n"); in do_detach()
451 p_err("failed link detach: %s", strerror(-err)); in do_detach()
Dmap_perf_ring.c136 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()
Dfeature.c1067 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()
1113p_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 …]
Dnet.c112 p_err("Netlink error reporting not supported"); in netlink_open()
494 p_err("can't open /proc/self/ns/net: %s", in query_flow_dissector()
510 p_err("can't query prog: %s", strerror(errno)); in query_flow_dissector()
529 p_err("invalid devname %s", **argv); in net_parse_dev()
533 p_err("expected 'dev', got: '%s'?", **argv); in net_parse_dev()
569 p_err("invalid net attach/detach type: %s", *argv); in do_attach()
588 p_err("expected 'overwrite', got: '%s'?", *argv); in do_attach()
599 p_err("interface %s attach failed: %s", in do_attach()
622 p_err("invalid net attach/detach type: %s", *argv); in do_detach()
637 p_err("interface %s detach failed: %s", in do_detach()
Dtracelog.c49 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()
Dmain.h36 #define BAD_ARG() ({ p_err("what is '%s'?", *argv); -1; })
44 p_err("'%s' needs at least %d arguments, %d found", \
89 void __printf(1, 2) p_err(const char *fmt, ...);
195 p_err("No libbfd support"); in disasm_init()
Dperf.c34 p_err("perf_query_support: cannot open directory \"/\" (%s)", in has_perf_query_support()
53 p_err("perf_query_support: %s", strerror(errno)); in has_perf_query_support()
Dcfg.c77 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()
Djit_disasm.c141 p_err("No libbfd support for %s", arch); in disasm_print_insn()