Home
last modified time | relevance | path

Searched refs:fprintf (Results 1 – 25 of 603) sorted by relevance

12345678910>>...25

/linux/samples/timers/
H A Dhpet_example.c59 fprintf(stderr, "-hpet: requires command\n"); in main()
68 fprintf(stderr, "-hpet: executing %s\n", in main()
74 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main()
85 fprintf(stderr, "hpet_open_close: device-name\n"); in hpet_open_close()
91 fprintf(stderr, "hpet_open_close: open failed\n"); in hpet_open_close()
105 fprintf(stderr, "hpet_info: device-name\n"); in hpet_info()
111 fprintf(stderr, "hpet_info: open of %s failed\n", argv[0]); in hpet_info()
116 fprintf(stderr, "hpet_info: failed to get info\n"); in hpet_info()
120 fprintf(stderr, "hpet_info: hi_irqfreq 0x%lx hi_flags 0x%lx ", in hpet_info()
122 fprintf(stderr, "hi_hpet %d hi_timer %d\n", in hpet_info()
[all …]
/linux/tools/testing/selftests/coredump/
H A Dcoredump_socket_protocol_test.c53 ret = fprintf(file, "%s", self->original_core_pattern); in FIXTURE_TEARDOWN()
77 fprintf(stderr, "Failed to cleanup coredump test: %s\n", reason); in FIXTURE_TEARDOWN()
105 fprintf(stderr, "socket_request_kernel: create_and_listen_unix_socket failed: %m\n"); in TEST_F()
110 fprintf(stderr, "socket_request_kernel: write_nointr to ipc socket failed: %m\n"); in TEST_F()
118 fprintf(stderr, "socket_request_kernel: accept4 failed: %m\n"); in TEST_F()
124 fprintf(stderr, "socket_request_kernel: get_peer_pidfd failed\n"); in TEST_F()
129 fprintf(stderr, "socket_request_kernel: get_pidfd_info failed\n"); in TEST_F()
134 fprintf(stderr, "socket_request_kernel: PIDFD_INFO_COREDUMP not set in mask\n"); in TEST_F()
139 fprintf(stderr, "socket_request_kernel: PIDFD_COREDUMPED not set in coredump_mask\n"); in TEST_F()
145 fprintf(stderr, "socket_request_kernel: creat coredump file failed: %m\n"); in TEST_F()
[all …]
H A Dcoredump_socket_test.c51 ret = fprintf(file, "%s", self->original_core_pattern); in FIXTURE_TEARDOWN()
75 fprintf(stderr, "Failed to cleanup coredump test: %s\n", reason); in FIXTURE_TEARDOWN()
102 fprintf(stderr, "socket test: create_and_listen_unix_socket failed: %m\n"); in TEST_F()
107 fprintf(stderr, "socket test: write_nointr to ipc socket failed: %m\n"); in TEST_F()
115 fprintf(stderr, "socket test: accept4 failed: %m\n"); in TEST_F()
121 fprintf(stderr, "socket test: get_peer_pidfd failed\n"); in TEST_F()
126 fprintf(stderr, "socket test: get_pidfd_info failed\n"); in TEST_F()
131 fprintf(stderr, "socket test: PIDFD_INFO_COREDUMP not set in mask\n"); in TEST_F()
136 fprintf(stderr, "socket test: PIDFD_COREDUMPED not set in coredump_mask\n"); in TEST_F()
142 fprintf(stderr, "socket test: creat coredump file failed: %m\n"); in TEST_F()
[all …]
H A Dcoredump_test_helpers.c123 fprintf(stderr, "Set core_pattern to '%s' | %zu == %zu\n", pattern, ret, strlen(pattern)); in set_core_pattern()
134 fprintf(stderr, "get_peer_pidfd: getsockopt(SO_PEERPIDFD) failed: %m\n"); in get_peer_pidfd()
137 fprintf(stderr, "get_peer_pidfd: successfully retrieved pidfd %d\n", fd_peer_pidfd); in get_peer_pidfd()
148 fprintf(stderr, "get_pidfd_info: ioctl(PIDFD_GET_INFO) failed: %m\n"); in get_pidfd_info()
151 fprintf(stderr, "get_pidfd_info: mask=0x%llx, coredump_mask=0x%x, coredump_signal=%d\n", in get_pidfd_info()
169 fprintf(stderr, "Received marker: ReqAck\n"); in recv_marker()
172 fprintf(stderr, "Received marker: MinSize\n"); in recv_marker()
175 fprintf(stderr, "Received marker: MaxSize\n"); in recv_marker()
178 fprintf(stderr, "Received marker: Unsupported\n"); in recv_marker()
181 fprintf(stderr, "Received marker: Conflicting\n"); in recv_marker()
[all …]
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c147 fprintf(stderr, in ovpn_nl_recvmsgs()
151 fprintf(stderr, "netlink out of memory error\n"); in ovpn_nl_recvmsgs()
154 fprintf(stderr, in ovpn_nl_recvmsgs()
159 fprintf(stderr, "netlink reports error (%d): %s\n", in ovpn_nl_recvmsgs()
179 fprintf(stderr, "cannot allocate netlink socket\n"); in nl_ctx_alloc_flags()
187 fprintf(stderr, "cannot connect to generic netlink: %s\n", in nl_ctx_alloc_flags()
199 fprintf(stderr, "cannot find ovpn_dco netlink component: %d\n", in nl_ctx_alloc_flags()
206 fprintf(stderr, "cannot allocate netlink message\n"); in nl_ctx_alloc_flags()
212 fprintf(stderr, "failed to allocate netlink callback\n"); in nl_ctx_alloc_flags()
278 fprintf(stderr, "kernel error: %*s\n", len, in ovpn_nl_cb_error()
[all …]
/linux/tools/testing/selftests/pid_namespace/
H A Dpid_max.c45 fprintf(stderr, "%m - Failed to make rootfs private mount\n"); in pid_max_cb()
53 fprintf(stderr, "%m - Failed to mount proc\n"); in pid_max_cb()
59 fprintf(stderr, "%m - Failed to open pid_max\n"); in pid_max_cb()
65 fprintf(stderr, "%m - Failed to write pid_max\n"); in pid_max_cb()
75 fprintf(stderr, "Managed to create pid number beyond limit\n"); in pid_max_cb()
91 fprintf(stderr, "%m - Failed to make rootfs private mount\n"); in pid_max_nested_inner()
99 fprintf(stderr, "%m - Failed to mount proc\n"); in pid_max_nested_inner()
105 fprintf(stderr, "%m - Failed to open pid_max\n"); in pid_max_nested_inner()
112 fprintf(stderr, "%m - Failed to write pid_max\n"); in pid_max_nested_inner()
118 fprintf(stderr, "Failed to create first new process\n"); in pid_max_nested_inner()
[all …]
/linux/samples/uhid/
H A Duhid-example.c165 fprintf(stderr, "Cannot write to uhid: %m\n"); in uhid_write()
168 fprintf(stderr, "Wrong size written to uhid: %zd != %zu\n", in uhid_write()
221 fprintf(stderr, "LED output report received with flags %x\n", in handle_output()
233 fprintf(stderr, "Read HUP on uhid-cdev\n"); in event()
236 fprintf(stderr, "Cannot read uhid-cdev: %m\n"); in event()
239 fprintf(stderr, "Invalid size read from uhid-dev: %zd != %zu\n", in event()
246 fprintf(stderr, "UHID_START from uhid-dev\n"); in event()
249 fprintf(stderr, "UHID_STOP from uhid-dev\n"); in event()
252 fprintf(stderr, "UHID_OPEN from uhid-dev\n"); in event()
255 fprintf(stderr, "UHID_CLOSE from uhid-dev\n"); in event()
[all …]
/linux/tools/testing/selftests/net/
H A Dpsock_fanout.c203 fprintf(stderr, "bpf verifier:\n%s\n", log_buf); in sock_fanout_set_ebpf()
270 fprintf(stderr, "info: count=%d,%d, expect=%d,%d\n", in sock_fanout_read()
275 fprintf(stderr, "warning: incorrect queue lengths\n"); in sock_fanout_read()
289 fprintf(stderr, "test: unbound fanout\n"); in test_unbound_fanout()
299 fprintf(stderr, "ERROR: unbound socket fanout create\n"); in test_unbound_fanout()
304 fprintf(stderr, "ERROR: failed to open HASH socket\n"); in test_unbound_fanout()
310 fprintf(stderr, "ERROR: unbound socket fanout join\n"); in test_unbound_fanout()
320 fprintf(stderr, "test: control single socket\n"); in test_control_single()
324 fprintf(stderr, "ERROR: opened socket with dual rollover\n"); in test_control_single()
335 fprintf(stderr, "test: control multiple sockets with link down toggle\n"); in test_control_group()
[all …]
/linux/drivers/comedi/drivers/ni_routing/tools/
H A Dconvert_c_to_py.c38 fprintf(fp, in family_write()
54 fprintf(fp, " %u : {\n", dest); in family_write()
69 fprintf(stderr, in family_write()
75 fprintf(fp, " %u : \"%s(%u)\",\n", in family_write()
78 fprintf(fp, " },\n"); in family_write()
80 fprintf(fp, " },\n\n"); in family_write()
101 fprintf(fp, in device_write()
110 fprintf(stderr, in device_write()
116 fprintf(fp, " %u : [", dR->routes[i].dest); in device_write()
122 fprintf(stderr, in device_write()
[all …]
/linux/arch/x86/tools/
H A Dinsn_sanity.c41 fprintf(stderr, "%s: Error: %s\n\n", prog, err); in usage()
42 fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog); in usage()
43 fprintf(stderr, "\t-y 64bit mode\n"); in usage()
44 fprintf(stderr, "\t-n 32bit mode\n"); in usage()
45 fprintf(stderr, "\t-v Verbosity(-vv dumps any decoded result)\n"); in usage()
46 fprintf(stderr, "\t-s Give a random seed (and iteration number)\n"); in usage()
47 fprintf(stderr, "\t-m Give a maximum iteration number\n"); in usage()
48 fprintf(stderr, "\t-i Give an input file with decoded binary\n"); in usage()
55 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
56 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
[all …]
H A Dinsn_decoder_test.c33 fprintf(stderr, "Usage: objdump -d a.out | awk -f objdump_reformat.awk" in usage()
35 fprintf(stderr, "\t-y 64bit mode\n"); in usage()
36 fprintf(stderr, "\t-n 32bit mode\n"); in usage()
37 fprintf(stderr, "\t-v verbose mode\n"); in usage()
43 fprintf(stderr, "%s: error: malformed line %d:\n%s", in malformed_line()
52 fprintf(stderr, "%s: warning: ", prog); in pr_warn()
61 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
62 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
65 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, in dump_field()
71 fprintf(fp, "Instruction = {\n"); in dump_insn()
[all …]
/linux/scripts/ipe/polgen/
H A Dpolgen.c71 fprintf(fd, "/* This file is automatically generated."); in write_boot_policy()
72 fprintf(fd, " Do not edit. */\n"); in write_boot_policy()
73 fprintf(fd, "#include <linux/stddef.h>\n"); in write_boot_policy()
74 fprintf(fd, "\nextern const char *const ipe_boot_policy;\n\n"); in write_boot_policy()
75 fprintf(fd, "const char *const ipe_boot_policy =\n"); in write_boot_policy()
78 fprintf(fd, "\tNULL;\n"); in write_boot_policy()
83 fprintf(fd, "\t\""); in write_boot_policy()
88 fprintf(fd, "\\\""); in write_boot_policy()
91 fprintf(fd, "'"); in write_boot_policy()
94 fprintf(fd, "\\n\"\n\t\""); in write_boot_policy()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c101 fprintf(out, "[%u] %s '%s'", id, btf_kind_str(kind), btf_str(btf, t->name_off)); in fprintf_btf_type_raw()
105 fprintf(out, " size=%u bits_offset=%u nr_bits=%u encoding=%s", in fprintf_btf_type_raw()
115 fprintf(out, " type_id=%u", t->type); in fprintf_btf_type_raw()
120 fprintf(out, " type_id=%u index_type_id=%u nr_elems=%u", in fprintf_btf_type_raw()
128 fprintf(out, " size=%u vlen=%u", t->size, vlen); in fprintf_btf_type_raw()
134 fprintf(out, "\n\t'%s' type_id=%u bits_offset=%u", in fprintf_btf_type_raw()
137 fprintf(out, " bitfield_size=%u", bit_sz); in fprintf_btf_type_raw()
146 fprintf(out, " encoding=%s size=%u vlen=%u", in fprintf_btf_type_raw()
149 fprintf(out, fmt_str, in fprintf_btf_type_raw()
160 fprintf(out, " encoding=%s size=%u vlen=%u", in fprintf_btf_type_raw()
[all …]
H A Dxdp_synproxy.c39 fprintf(stderr, "Error: bpf_tc_hook_destroy: %s\n", strerror(-err)); in cleanup()
40 fprintf(stderr, "Failed to destroy the TC hook\n"); in cleanup()
48 fprintf(stderr, "Error: bpf_prog_get_fd_by_id: %s\n", strerror(-prog_fd)); in cleanup()
51 fprintf(stderr, "Error: bpf_set_link_xdp_fd: %s\n", strerror(-err)); in cleanup()
52 fprintf(stderr, "Failed to detach XDP program\n"); in cleanup()
60 fprintf(stderr, "Error: bpf_set_link_xdp_fd_opts: %s\n", strerror(-err)); in cleanup()
63 fprintf(stderr, "Failed to detach XDP program\n"); in cleanup()
73fprintf(stderr, "Usage: %s [--iface <iface>|--prog <prog_id>] [--mss4 <mss ipv4> --mss6 <mss ipv6>… in usage()
202 fprintf(stderr, "Error: bpf_object__open_file: %s\n", strerror(-err)); in syncookie_attach()
208 fprintf(stderr, "Error: bpf_object__open_file: %s\n", strerror(-err)); in syncookie_attach()
[all …]
/linux/tools/gpio/
H A Dgpio-hammer.c55 fprintf(stdout, "Hammer lines ["); in hammer_device()
57 fprintf(stdout, "%u", lines[i]); in hammer_device()
59 fprintf(stdout, ", "); in hammer_device()
61 fprintf(stdout, "] on %s, initial states: [", device_name); in hammer_device()
63 fprintf(stdout, "%d", gpiotools_test_bit(values.bits, i)); in hammer_device()
65 fprintf(stdout, ", "); in hammer_device()
67 fprintf(stdout, "]\n"); in hammer_device()
85 fprintf(stdout, "[%c] ", swirr[j]); in hammer_device()
90 fprintf(stdout, "["); in hammer_device()
92 fprintf(stdout, "%u: %d", lines[i], in hammer_device()
[all …]
H A Dlsgpio.c81 fprintf(stdout, field_format, flagnames[i].name); in print_attributes()
88 fprintf(stdout, field_format, "both-edges"); in print_attributes()
90 fprintf(stdout, field_format, "rising-edge"); in print_attributes()
92 fprintf(stdout, field_format, "falling-edge"); in print_attributes()
96 fprintf(stdout, ", debounce_period=%dusec", in print_attributes()
116 fprintf(stderr, "Failed to open %s\n", chrdev_name); in list_device()
127 fprintf(stdout, "GPIO chip: %s, \"%s\", %u GPIO lines\n", in list_device()
143 fprintf(stdout, "\tline %2d:", linfo.offset); in list_device()
145 fprintf(stdout, " \"%s\"", linfo.name); in list_device()
147 fprintf(stdout, " unnamed"); in list_device()
[all …]
/linux/tools/perf/ui/stdio/
H A Dhist.c26 int ret = fprintf(fp, " "); in callchain__fprintf_left_margin()
32 ret += fprintf(fp, " "); in callchain__fprintf_left_margin()
45 ret += fprintf(fp, "| "); in ipchain__fprintf_graph_line()
47 ret += fprintf(fp, " "); in ipchain__fprintf_graph_line()
49 ret += fprintf(fp, "\n"); in ipchain__fprintf_graph_line()
68 ret += fprintf(fp, "|"); in ipchain__fprintf_graph()
70 ret += fprintf(fp, " "); in ipchain__fprintf_graph()
72 ret += fprintf(fp, "--"); in ipchain__fprintf_graph()
74 ret += fprintf(fp, "--"); in ipchain__fprintf_graph()
76 ret += fprintf(fp, "%s", " "); in ipchain__fprintf_graph()
[all …]
/linux/tools/testing/selftests/vfio/lib/
H A Dlibvfio.c59 fprintf(stderr, "Unable to determine which device(s) to use, skipping test.\n"); in vfio_selftests_get_bdfs()
60 fprintf(stderr, "\n"); in vfio_selftests_get_bdfs()
61 fprintf(stderr, "To pass the device address via environment variable:\n"); in vfio_selftests_get_bdfs()
62 fprintf(stderr, "\n"); in vfio_selftests_get_bdfs()
63 fprintf(stderr, " export VFIO_SELFTESTS_BDF=\"segment:bus:device.function\"\n"); in vfio_selftests_get_bdfs()
64 fprintf(stderr, " %s [options]\n", argv[0]); in vfio_selftests_get_bdfs()
65 fprintf(stderr, "\n"); in vfio_selftests_get_bdfs()
66 fprintf(stderr, "To pass the device address(es) via argv:\n"); in vfio_selftests_get_bdfs()
67 fprintf(stderr, "\n"); in vfio_selftests_get_bdfs()
68 fprintf(stderr, " %s [options] segment:bus:device.function ...\n", argv[0]); in vfio_selftests_get_bdfs()
[all …]
/linux/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c107 fprintf(stderr, "Failed to open \"%s\": %s\n", ptmx, in do_tiocgptpeer()
118 fprintf(stderr, "Failed to unlock terminal\n"); in do_tiocgptpeer()
127 fprintf(stderr, "TIOCGPTPEER is not supported. " in do_tiocgptpeer()
131 fprintf(stderr, in do_tiocgptpeer()
147 fprintf(stderr, "Failed to setup terminal\n"); in do_tiocgptpeer()
153 fprintf(stderr, "Failed to retrieve pathname of pts " in do_tiocgptpeer()
160 fprintf(stderr, "Received invalid contents for " in do_tiocgptpeer()
166 fprintf(stderr, "Contents of \"/proc/<pid>/fd/%d\" " in do_tiocgptpeer()
196 fprintf(stderr, "Failed to unmount \"/dev/pts\": %s\n", in verify_non_standard_devpts_mount()
205 fprintf(stderr, "Failed to create temporary mountpoint: %s\n", in verify_non_standard_devpts_mount()
[all …]
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage_rcu_tasks_trace.c41 fprintf(stderr, "invalid nr_procs\n"); in parse_arg()
49 fprintf(stderr, "invalid kthread_pid\n"); in parse_arg()
72 fprintf(stderr, "benchmark doesn't support multi-producer!\n"); in validate()
76 fprintf(stderr, "benchmark doesn't support consumer!\n"); in validate()
81 fprintf(stderr, "benchmark supports up to %u sleeper procs!\n", in validate()
99 fprintf(stderr, "couldn't open %s, exiting\n", procfs_path); in kthread_pid_ticks()
103 fprintf(stderr, "fscanf of %s failed, exiting\n", procfs_path); in kthread_pid_ticks()
138 fprintf(stderr, "Error forking sleeper proc %u of %u, exiting\n", i, in local_storage_tasks_trace_setup()
146 fprintf(stderr, "prctl failed with err %d, exiting\n", errno); in local_storage_tasks_trace_setup()
151 fprintf(stderr, "Runner died while spinning up procs, exiting\n"); in local_storage_tasks_trace_setup()
[all …]
/linux/tools/testing/selftests/powerpc/nx-gzip/
H A Dgunz_test.c120 NXPRT(fprintf(stderr, "%d: %s addr %p len %x\n", __LINE__, addr, in nx_append_dde()
186 NXPRT(fprintf(stderr, "%s dde_count %d request len ", __func__, in nx_touch_pages_dde()
188 NXPRT(fprintf(stderr, "0x%lx\n", buf_sz)); in nx_touch_pages_dde()
195 NXPRT(fprintf(stderr, "touch direct ddebc 0x%x ddead %p\n", in nx_touch_pages_dde()
223 NXPRT(fprintf(stderr, "touch loop len 0x%x ddead %p total ", in nx_touch_pages_dde()
225 NXPRT(fprintf(stderr, "0x%lx\n", total)); in nx_touch_pages_dde()
231 NXPRT(fprintf(stderr, "touch loop break len 0x%x ", in nx_touch_pages_dde()
233 NXPRT(fprintf(stderr, "ddead %p\n", (void *)buf_addr)); in nx_touch_pages_dde()
305 fprintf(stderr, "usage: %s <fname> or stdin\n", argv[0]); in decompress_file()
306 fprintf(stderr, " writes to stdout or <fname>.nx.gunzip\n"); in decompress_file()
[all …]
/linux/samples/bpf/
H A Dhbm.c103 fprintf(outf, "%s\n", buf); in read_trace_pipe2()
203 fprintf(stderr, "ERROR: bpf_program__attach_cgroup failed\n"); in run_bpf_prog()
316 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
317 fprintf(fout, "ERROR: Could not lookup queue_stats\n"); in run_bpf_prog()
344 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
345 fprintf(fout, "rate_mbps:%d\n", rate_mbps); in run_bpf_prog()
346 fprintf(fout, "duration:%.1f secs\n", in run_bpf_prog()
349 fprintf(fout, "packets:%d\n", (int)qstats.pkts_total); in run_bpf_prog()
350 fprintf(fout, "bytes_MB:%d\n", (int)(qstats.bytes_total / in run_bpf_prog()
352 fprintf(fou in run_bpf_prog()
[all...]
/linux/tools/bpf/bpftool/
H A Dnetlink_dumper.h19 fprintf(stdout, "%s {", name); \
28 fprintf(stdout, "{"); \
36 fprintf(stdout, "}"); \
50 fprintf(stdout, "\n"); \
59 fprintf(stdout, fmt_str, name); \
68 fprintf(stdout, "%s", endstr); \
76 fprintf(stdout, fmt_str, val); \
84 fprintf(stdout, "%u ", str); \
92 fprintf(stdout, fmt_str, str); \
100 fprintf(stdout, "%s ", str); \
/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm.c157 fprintf(stderr, "%s: -d Requires either an " in main()
180 fprintf(stderr, "%s: Unknown option -%c%s\n", in main()
214 fprintf(stderr, "%s: Warning - '-I-' " in main()
257 fprintf(stderr, "%s: No input file specified\n", appname); in main()
264 fprintf(stderr, in main()
311 (void)fprintf(stderr, in usage()
358 fprintf(ofile, in output_code()
365 fprintf(ofile, "static const uint8_t seqprog[] = {\n"); in output_code()
370 fprintf(ofile, "%s\t0x%02x, 0x%02x, 0x%02x, 0x%02x", in output_code()
385 fprintf(ofile, "\n};\n\n"); in output_code()
[all …]
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-log.c73 fprintf(f, " "); in intel_pt_print_data()
75 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_data()
77 fprintf(f, " %02x", buf[i]); in intel_pt_print_data()
79 fprintf(f, " "); in intel_pt_print_data()
80 fprintf(f, " "); in intel_pt_print_data()
88 fprintf(f, " "); in intel_pt_print_no_data()
90 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_no_data()
92 fprintf(f, " "); in intel_pt_print_no_data()
93 fprintf(f, " "); in intel_pt_print_no_data()
173 fprintf(b->backend, "Dumping debug log buffer\n"); in log_buf__dump()
[all …]

12345678910>>...25