Home
last modified time | relevance | path

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

12345678910>>...26

/linux-6.12.1/tools/perf/util/
Dsvghelper.c91 fprintf(stderr, "Cannot open %s for output\n", filename); in open_svg()
108 fprintf(svgfile, "<?xml version=\"1.0\" standalone=\"no\"?> \n"); in open_svg()
109 fprintf(svgfile, "<!DOCTYPE svg SYSTEM \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n"); in open_svg()
110fprintf(svgfile, "<svg width=\"%i\" height=\"%" PRIu64 "\" version=\"1.1\" xmlns=\"http://www.w3.o… in open_svg()
112 fprintf(svgfile, "<defs>\n <style type=\"text/css\">\n <![CDATA[\n"); in open_svg()
114 fprintf(svgfile, " rect { stroke-width: 1; }\n"); in open_svg()
115fprintf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; … in open_svg()
116fprintf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; … in open_svg()
117fprintf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; … in open_svg()
118fprintf(svgfile, " rect.sample { fill:rgb( 0, 0,255); fill-opacity:0.8; stroke-width:0; … in open_svg()
[all …]
Dstat-display.c77 fprintf(config->output, " (%.2f%%)", 100.0 * run / ena); in print_running_std()
86 fprintf(config->output, "%s%" PRIu64 "%s%.2f", in print_running_csv()
96 fprintf(config->output, "\"event-runtime\" : %" PRIu64 ", \"pcnt-running\" : %.2f, ", in print_running_json()
119 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct_std()
125 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct_csv()
131 fprintf(config->output, "\"variance\" : %.2f, ", pct); in print_noise_pct_json()
165 fprintf(config->output, " %-*s", CGROUP_LEN, cgrp_name); in print_cgroup_std()
170 fprintf(config->output, "%s%s", config->csv_sep, cgrp_name); in print_cgroup_csv()
175 fprintf(config->output, "\"cgroup\" : \"%s\", ", cgrp_name); in print_cgroup_json()
223 fprintf(output, "%-*s ", in print_aggr_id_std()
[all …]
/linux-6.12.1/scripts/selinux/mdp/
Dmdp.c68 fprintf(fout, "class %s\n", secclass_map[i].name); in main()
69 fprintf(fout, "\n"); in main()
77 fprintf(fout, "sid %s\n", name); in main()
79 fprintf(fout, "sid unused%d\n", i); in main()
81 fprintf(fout, "\n"); in main()
86 fprintf(fout, "class %s\n", map->name); in main()
87 fprintf(fout, "{\n"); in main()
89 fprintf(fout, "\t%s\n", map->perms[j]); in main()
90 fprintf(fout, "}\n\n"); in main()
92 fprintf(fout, "\n"); in main()
[all …]
/linux-6.12.1/scripts/selinux/genheaders/
Dgenheaders.c35 fprintf(stderr, "%s: out of memory\n", progname); in stoupperx()
57 fprintf(stderr, "Could not open %s for writing: %s\n", in main()
62 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n"); in main()
63 fprintf(fout, "#ifndef _SELINUX_FLASK_H_\n#define _SELINUX_FLASK_H_\n\n"); in main()
68 fprintf(fout, "#define SECCLASS_%-39s %2d\n", name, i+1); in main()
72 fprintf(fout, "\n"); in main()
80 fprintf(fout, "#define SECINITSID_%-39s %2d\n", sidname, i); in main()
84 fprintf(fout, "\n#define SECINITSID_NUM %d\n", i-1); in main()
85 fprintf(fout, "\nstatic inline bool security_is_socket_class(u16 kern_tclass)\n"); in main()
86 fprintf(fout, "{\n"); in main()
[all …]
/linux-6.12.1/arch/mips/vdso/
Dgenvdso.c117 fprintf(stderr, "%s: Failed to open '%s': %s\n", program_name, in map_vdso()
123 fprintf(stderr, "%s: Failed to stat '%s': %s\n", program_name, in map_vdso()
132 fprintf(stderr, "%s: Failed to map '%s': %s\n", program_name, in map_vdso()
142 fprintf(stderr, "%s: '%s' is not an ELF file\n", program_name, in map_vdso()
154 fprintf(stderr, "%s: '%s' has invalid ELF class\n", in map_vdso()
166 fprintf(stderr, "%s: '%s' has invalid ELF data order\n", in map_vdso()
173 fprintf(stderr, in map_vdso()
179 fprintf(stderr, in map_vdso()
216 fprintf(stderr, in main()
242 fprintf(stderr, "%s: Failed to sync '%s': %s\n", program_name, in main()
[all …]
/linux-6.12.1/samples/timers/
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-6.12.1/scripts/dtc/
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-6.12.1/tools/pci/
Dpcitest.c53 fprintf(stdout, "BAR%d:\t\t", test->barnum); in run_test()
55 fprintf(stdout, "TEST FAILED\n"); in run_test()
57 fprintf(stdout, "%s\n", result[ret]); in run_test()
62 fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]); in run_test()
64 fprintf(stdout, "FAILED\n"); in run_test()
66 fprintf(stdout, "%s\n", result[ret]); in run_test()
71 fprintf(stdout, "GET IRQ TYPE:\t\t"); in run_test()
73 fprintf(stdout, "FAILED\n"); in run_test()
75 fprintf(stdout, "%s\n", irq[ret]); in run_test()
80 fprintf(stdout, "CLEAR IRQ:\t\t"); in run_test()
[all …]
/linux-6.12.1/tools/perf/util/scripting-engines/
Dtrace-event-perl.c565 fprintf(stderr, "couldn't open %s\n", fname); in perl_generate_script()
569 fprintf(ofp, "# perf script event handlers, " in perl_generate_script()
572 fprintf(ofp, "# Licensed under the terms of the GNU GPL" in perl_generate_script()
575 fprintf(ofp, "# The common_* event handler fields are the most useful " in perl_generate_script()
578 fprintf(ofp, "# all events. They don't necessarily correspond to " in perl_generate_script()
581 fprintf(ofp, "# in the format files. Those fields not available as " in perl_generate_script()
584 fprintf(ofp, "# be retrieved using Perl functions of the form " in perl_generate_script()
587 fprintf(ofp, "# See Context.pm for the list of available " in perl_generate_script()
590 fprintf(ofp, "use lib \"$ENV{'PERF_EXEC_PATH'}/scripts/perl/" in perl_generate_script()
593 fprintf(ofp, "use lib \"./Perf-Trace-Util/lib\";\n"); in perl_generate_script()
[all …]
/linux-6.12.1/samples/uhid/
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-6.12.1/arch/x86/entry/vdso/
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-6.12.1/drivers/comedi/drivers/ni_routing/tools/
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-6.12.1/scripts/ipe/polgen/
Dpolgen.c74 fprintf(fd, "/* This file is automatically generated."); in write_boot_policy()
75 fprintf(fd, " Do not edit. */\n"); in write_boot_policy()
76 fprintf(fd, "#include <linux/stddef.h>\n"); in write_boot_policy()
77 fprintf(fd, "\nextern const char *const ipe_boot_policy;\n\n"); in write_boot_policy()
78 fprintf(fd, "const char *const ipe_boot_policy =\n"); in write_boot_policy()
81 fprintf(fd, "\tNULL;\n"); in write_boot_policy()
86 fprintf(fd, "\t\""); in write_boot_policy()
91 fprintf(fd, "\\\""); in write_boot_policy()
94 fprintf(fd, "'"); in write_boot_policy()
97 fprintf(fd, "\\n\"\n\t\""); in write_boot_policy()
[all …]
/linux-6.12.1/arch/x86/tools/
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 …]
/linux-6.12.1/tools/testing/selftests/net/
Dpsock_fanout.c175 fprintf(stderr, "bpf verifier:\n%s\n", log_buf); in sock_fanout_set_ebpf()
242 fprintf(stderr, "info: count=%d,%d, expect=%d,%d\n", in sock_fanout_read()
247 fprintf(stderr, "warning: incorrect queue lengths\n"); in sock_fanout_read()
257 fprintf(stderr, "test: control single socket\n"); in test_control_single()
261 fprintf(stderr, "ERROR: opened socket with dual rollover\n"); in test_control_single()
271 fprintf(stderr, "test: control multiple sockets\n"); in test_control_group()
275 fprintf(stderr, "ERROR: failed to open HASH socket\n"); in test_control_group()
280 fprintf(stderr, "ERROR: joined group with wrong flag defrag\n"); in test_control_group()
285 fprintf(stderr, "ERROR: joined group with wrong flag ro\n"); in test_control_group()
289 fprintf(stderr, "ERROR: joined group with wrong mode\n"); in test_control_group()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/
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 …]
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-6.12.1/tools/gpio/
Dgpio-event-mon.c47 fprintf(stderr, "Failed to open %s\n", chrdev_name); in monitor_device()
65 fprintf(stderr, in monitor_device()
72 fprintf(stdout, "Monitoring line %d on %s\n", lines[0], device_name); in monitor_device()
73 fprintf(stdout, "Initial line value: %d\n", in monitor_device()
76 fprintf(stdout, "Monitoring lines %d", lines[0]); in monitor_device()
78 fprintf(stdout, ", %d", lines[i]); in monitor_device()
79 fprintf(stdout, " and %d on %s\n", lines[i], device_name); in monitor_device()
80 fprintf(stdout, "Initial line values: %d", in monitor_device()
83 fprintf(stdout, ", %d", in monitor_device()
85 fprintf(stdout, " and %d\n", in monitor_device()
[all …]
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 …]
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-6.12.1/tools/testing/selftests/arm64/signal/
Dtest_signals_utils.c69 fprintf(stderr, "==>> completed. SKIP.\n"); in default_result()
71 fprintf(stderr, "==>> completed. PASS(1)\n"); in default_result()
74 fprintf(stdout, "==>> completed. FAIL(0)\n"); in default_result()
100 fprintf(stderr, in handle_signal_unsupported()
103 fprintf(stderr, in handle_signal_unsupported()
130 fprintf(stderr, in handle_signal_ok()
141 fprintf(stdout, in handle_signal_ok()
152 fprintf(stdout, in handle_signal_ok()
207 fprintf(stderr, in handle_signal_copyctx()
226 fprintf(stderr, in handle_signal_copyctx()
[all …]
/linux-6.12.1/tools/perf/ui/stdio/
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-6.12.1/tools/testing/selftests/filesystems/
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-6.12.1/tools/testing/selftests/bpf/benchs/
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-6.12.1/tools/bpf/bpftool/
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); \

12345678910>>...26