Home
last modified time | relevance | path

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

12345678910>>...23

/linux/tools/perf/util/
H A Dsvghelper.c92 fprintf(stderr, "Cannot open %s for output\n", filename); in open_svg()
109 fprintf(svgfile, "<?xml version=\"1.0\" standalone=\"no\"?> \n"); in open_svg()
110 fprintf(svgfile, "<!DOCTYPE svg SYSTEM \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n"); in open_svg()
111 fprintf(svgfile, "<svg width=\"%i\" height=\"%" PRIu64 "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\">\n", svg_page_width, total_height); in open_svg()
113 fprintf(svgfile, "<defs>\n <style type=\"text/css\">\n <![CDATA[\n"); in open_svg()
115 fprintf(svgfile, " rect { stroke-width: 1; }\n"); in open_svg()
116 fprintf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; stroke:rgb( 0, 0, 0); } \n"); in open_svg()
117 fprintf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); in open_svg()
118 fprintf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; stroke:rgb( 0, 0, 0); } \n"); in open_svg()
119 fprintf(svgfil in open_svg()
[all...]
/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/scripts/dtc/
H A Dtreesource.c58 fprintf(f, "\""); in write_propval_string()
63 fprintf(f, "\\a"); in write_propval_string()
66 fprintf(f, "\\b"); in write_propval_string()
69 fprintf(f, "\\t"); in write_propval_string()
72 fprintf(f, "\\n"); in write_propval_string()
75 fprintf(f, "\\v"); in write_propval_string()
78 fprintf(f, "\\f"); in write_propval_string()
81 fprintf(f, "\\r"); in write_propval_string()
84 fprintf(f, "\\\\"); in write_propval_string()
87 fprintf(f, "\\\""); in write_propval_string()
[all …]
/linux/tools/testing/selftests/pid_namespace/
H A Dpid_max.c44 fprintf(stderr, "%m - Failed to make rootfs private mount\n"); in pid_max_cb()
52 fprintf(stderr, "%m - Failed to mount proc\n"); in pid_max_cb()
58 fprintf(stderr, "%m - Failed to open pid_max\n"); in pid_max_cb()
64 fprintf(stderr, "%m - Failed to write pid_max\n"); in pid_max_cb()
74 fprintf(stderr, "Managed to create pid number beyond limit\n"); in pid_max_cb()
90 fprintf(stderr, "%m - Failed to make rootfs private mount\n"); in pid_max_nested_inner()
98 fprintf(stderr, "%m - Failed to mount proc\n"); in pid_max_nested_inner()
104 fprintf(stderr, "%m - Failed to open pid_max\n"); in pid_max_nested_inner()
111 fprintf(stderr, "%m - Failed to write pid_max\n"); in pid_max_nested_inner()
117 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/arch/x86/entry/vdso/
H A Dvdso2c.h14 fprintf(outfile, "\n\t"); in BITSFUNC()
15 fprintf(outfile, "0x%02X, ", (int)(data)[i]); in BITSFUNC()
38 fprintf(outfile, "static const unsigned char %s[%zu] = {", name, len); in BITSFUNC()
40 fprintf(outfile, "\n};\n\n"); in BITSFUNC()
180 fprintf(outfile, "/* AUTOMATICALLY GENERATED -- DO NOT EDIT */\n\n"); in BITSFUNC()
181 fprintf(outfile, "#include <linux/linkage.h>\n"); in BITSFUNC()
182 fprintf(outfile, "#include <linux/init.h>\n"); in BITSFUNC()
183 fprintf(outfile, "#include <asm/page_types.h>\n"); in BITSFUNC()
184 fprintf(outfile, "#include <asm/vdso.h>\n"); in BITSFUNC()
185 fprintf(outfile, "\n"); in BITSFUNC()
[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.c34 fprintf(stderr, "Usage: objdump -d a.out | awk -f objdump_reformat.awk" in usage()
36 fprintf(stderr, "\t-y 64bit mode\n"); in usage()
37 fprintf(stderr, "\t-n 32bit mode\n"); in usage()
38 fprintf(stderr, "\t-v verbose mode\n"); in usage()
44 fprintf(stderr, "%s: error: malformed line %d:\n%s", in malformed_line()
53 fprintf(stderr, "%s: warning: ", prog); in pr_warn()
62 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
63 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
66 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, in dump_field()
72 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.c25 int ret = fprintf(fp, " "); in callchain__fprintf_left_margin()
28 ret += fprintf(fp, " "); in callchain__fprintf_left_margin()
41 ret += fprintf(fp, "| "); in ipchain__fprintf_graph_line()
43 ret += fprintf(fp, " "); in ipchain__fprintf_graph_line()
45 ret += fprintf(fp, "\n"); in ipchain__fprintf_graph_line()
64 ret += fprintf(fp, "|"); in ipchain__fprintf_graph()
66 ret += fprintf(fp, " "); in ipchain__fprintf_graph()
68 ret += fprintf(fp, "--"); in ipchain__fprintf_graph()
70 ret += fprintf(fp, "--"); in ipchain__fprintf_graph()
72 ret += fprintf(fp, "%s", " "); in ipchain__fprintf_graph()
[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(fout, "pkts_dropped:%d\n", (int)qstats.pkts_dropped); in run_bpf_prog()
[all …]
/linux/tools/power/x86/intel-speed-select/
H A Disst-config.c290 fprintf(stderr, "Can't create file:%s\n", pathname); in store_cpu_topology()
294 fprintf(stderr, "Caching topology information\n"); in store_cpu_topology()
317 fprintf(stderr, "Can't write to:%s\n", pathname); in store_cpu_topology()
487 fprintf(stderr, "Will use cgroup v2 for CPU 0\n"); in set_cpu_online_offline()
498 fprintf(stderr, "This system is not configured for CPU 0 online/offline\n"); in set_cpu_online_offline()
499 fprintf(stderr, "Will use cgroup v2\n"); in set_cpu_online_offline()
521 fprintf(stderr, "Forcing all CPUs online\n"); in force_all_cpus_online()
625 fprintf(stderr, "No valid CPU in the list\n"); in for_each_online_target_cpu_in_set()
647 fprintf(stderr, "Can't get max cpu number\n"); in set_max_cpu_num()
801 fprintf(out in create_cpu_map()
[all...]
/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/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/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 …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gen_wa_oob.c33 fprintf(f, "usage: %s <input-rule-file> <generated-c-source-file> <generated-c-header-file>\n", in print_usage()
40 fprintf(stderr, "ERROR: %s\nERROR: %u: %.60s\n", in print_parse_error()
99 fprintf(cheader, "\tXE_WA_OOB_%s = %u,\n", name, idx); in parse()
103 fprintf(csource, ") },\n"); in parse()
105 fprintf(csource, "{ XE_RTP_NAME(\"%s\"),\n XE_RTP_RULES(%s", in parse()
109 fprintf(csource, ", OR,\n\t%s", rules); in parse()
119 fprintf(csource, ") },\n"); in parse()
121 fprintf(cheader, "\t_XE_WA_OOB_COUNT = %u\n", idx); in parse()
146 fprintf(stderr, "ERROR: wrong arguments\n"); in main()
154 fprintf(stderr, "ERROR: Can't open %s: %m\n", in main()
[all …]

12345678910>>...23