Home
last modified time | relevance | path

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

12345678910>>...15

/Linux-v4.19/scripts/selinux/mdp/
Dmdp.c78 fprintf(fout, "class %s\n", secclass_map[i].name); in main()
79 fprintf(fout, "\n"); in main()
84 fprintf(fout, "sid %s\n", initial_sid_to_string[i]); in main()
85 fprintf(fout, "\n"); in main()
90 fprintf(fout, "class %s\n", map->name); in main()
91 fprintf(fout, "{\n"); in main()
93 fprintf(fout, "\t%s\n", map->perms[j]); in main()
94 fprintf(fout, "}\n\n"); in main()
96 fprintf(fout, "\n"); in main()
105 fprintf(fout, "type base_t;\n"); in main()
[all …]
/Linux-v4.19/tools/perf/util/
Dsvghelper.c93 fprintf(stderr, "Cannot open %s for output\n", filename); in open_svg()
110 fprintf(svgfile, "<?xml version=\"1.0\" standalone=\"no\"?> \n"); in open_svg()
111 fprintf(svgfile, "<!DOCTYPE svg SYSTEM \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n"); in open_svg()
112fprintf(svgfile, "<svg width=\"%i\" height=\"%" PRIu64 "\" version=\"1.1\" xmlns=\"http://www.w3.o… in open_svg()
114 fprintf(svgfile, "<defs>\n <style type=\"text/css\">\n <![CDATA[\n"); in open_svg()
116 fprintf(svgfile, " rect { stroke-width: 1; }\n"); in open_svg()
117fprintf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; … in open_svg()
118fprintf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; … in open_svg()
119fprintf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; … in open_svg()
120fprintf(svgfile, " rect.sample { fill:rgb( 0, 0,255); fill-opacity:0.8; stroke-width:0; … in open_svg()
[all …]
Devsel_fprintf.c19 ret += fprintf(fp, ","); in comma_fprintf()
21 ret += fprintf(fp, ":"); in comma_fprintf()
49 printed += fprintf(fp, "%s{", evsel->group_name ?: ""); in perf_evsel__fprintf()
51 printed += fprintf(fp, "%s", perf_evsel__name(evsel)); in perf_evsel__fprintf()
53 printed += fprintf(fp, ",%s", perf_evsel__name(pos)); in perf_evsel__fprintf()
56 printed += fprintf(fp, "}"); in perf_evsel__fprintf()
60 printed += fprintf(fp, "%s", perf_evsel__name(evsel)); in perf_evsel__fprintf()
135 printed += fprintf(fp, "%-*.*s", left_alignment, left_alignment, " "); in sample__fprintf_callchain()
138 printed += fprintf(fp, " <-"); in sample__fprintf_callchain()
141 printed += fprintf(fp, "%c%16" PRIx64, s, node->ip); in sample__fprintf_callchain()
[all …]
/Linux-v4.19/scripts/selinux/genheaders/
Dgenheaders.c38 fprintf(stderr, "%s: out of memory\n", progname); in stoupperx()
62 fprintf(stderr, "Could not open %s for writing: %s\n", in main()
78 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n"); in main()
79 fprintf(fout, "#ifndef _SELINUX_FLASK_H_\n#define _SELINUX_FLASK_H_\n\n"); in main()
83 fprintf(fout, "#define SECCLASS_%s", map->name); in main()
85 fprintf(fout, " "); in main()
86 fprintf(fout, "%2d\n", i+1); in main()
89 fprintf(fout, "\n"); in main()
93 fprintf(fout, "#define SECINITSID_%s", s); in main()
95 fprintf(fout, " "); in main()
[all …]
/Linux-v4.19/scripts/dtc/
Dtreesource.c74 fprintf(f, "%s: ", m->ref); in write_propval_string()
77 fprintf(f, "\""); in write_propval_string()
84 fprintf(f, "\\a"); in write_propval_string()
87 fprintf(f, "\\b"); in write_propval_string()
90 fprintf(f, "\\t"); in write_propval_string()
93 fprintf(f, "\\n"); in write_propval_string()
96 fprintf(f, "\\v"); in write_propval_string()
99 fprintf(f, "\\f"); in write_propval_string()
102 fprintf(f, "\\r"); in write_propval_string()
105 fprintf(f, "\\\\"); in write_propval_string()
[all …]
/Linux-v4.19/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-v4.19/tools/pci/
Dpcitest.c66 fprintf(stdout, "BAR%d:\t\t", test->barnum); in run_test()
68 fprintf(stdout, "TEST FAILED\n"); in run_test()
70 fprintf(stdout, "%s\n", result[ret]); in run_test()
75 fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]); in run_test()
77 fprintf(stdout, "FAILED\n"); in run_test()
79 fprintf(stdout, "%s\n", result[ret]); in run_test()
84 fprintf(stdout, "GET IRQ TYPE:\t\t"); in run_test()
86 fprintf(stdout, "FAILED\n"); in run_test()
88 fprintf(stdout, "%s\n", irq[ret]); in run_test()
93 fprintf(stdout, "LEGACY IRQ:\t"); in run_test()
[all …]
/Linux-v4.19/arch/mips/vdso/
Dgenvdso.c121 fprintf(stderr, "%s: Failed to open '%s': %s\n", program_name, in map_vdso()
127 fprintf(stderr, "%s: Failed to stat '%s': %s\n", program_name, in map_vdso()
135 fprintf(stderr, "%s: Failed to map '%s': %s\n", program_name, in map_vdso()
144 fprintf(stderr, "%s: '%s' is not an ELF file\n", program_name, in map_vdso()
155 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()
172 fprintf(stderr, in map_vdso()
177 fprintf(stderr, in map_vdso()
212 fprintf(stderr, in main()
238 fprintf(stderr, "%s: Failed to sync '%s': %s\n", program_name, in main()
[all …]
/Linux-v4.19/tools/perf/util/scripting-engines/
Dtrace-event-perl.c549 fprintf(stderr, "couldn't open %s\n", fname); in perl_generate_script()
553 fprintf(ofp, "# perf script event handlers, " in perl_generate_script()
556 fprintf(ofp, "# Licensed under the terms of the GNU GPL" in perl_generate_script()
559 fprintf(ofp, "# The common_* event handler fields are the most useful " in perl_generate_script()
562 fprintf(ofp, "# all events. They don't necessarily correspond to " in perl_generate_script()
565 fprintf(ofp, "# in the format files. Those fields not available as " in perl_generate_script()
568 fprintf(ofp, "# be retrieved using Perl functions of the form " in perl_generate_script()
571 fprintf(ofp, "# See Context.pm for the list of available " in perl_generate_script()
574 fprintf(ofp, "use lib \"$ENV{'PERF_EXEC_PATH'}/scripts/perl/" in perl_generate_script()
577 fprintf(ofp, "use lib \"./Perf-Trace-Util/lib\";\n"); in perl_generate_script()
[all …]
/Linux-v4.19/samples/uhid/
Duhid-example.c165 fprintf(stderr, "Cannot write to uhid: %m\n"); in uhid_write()
168 fprintf(stderr, "Wrong size written to uhid: %ld != %lu\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: %ld != %lu\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-v4.19/arch/x86/tools/
Dinsn_sanity.c58 fprintf(stderr, "%s: Error: %s\n\n", prog, err); in usage()
59 fprintf(stderr, "Usage: %s [-y|-n|-v] [-s seed[,no]] [-m max] [-i input]\n", prog); in usage()
60 fprintf(stderr, "\t-y 64bit mode\n"); in usage()
61 fprintf(stderr, "\t-n 32bit mode\n"); in usage()
62 fprintf(stderr, "\t-v Verbosity(-vv dumps any decoded result)\n"); in usage()
63 fprintf(stderr, "\t-s Give a random seed (and iteration number)\n"); in usage()
64 fprintf(stderr, "\t-m Give a maximum iteration number\n"); in usage()
65 fprintf(stderr, "\t-i Give an input file with decoded binary\n"); in usage()
72 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
73 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
[all …]
Dinsn_decoder_test.c42 fprintf(stderr, "Usage: objdump -d a.out | awk -f objdump_reformat.awk" in usage()
44 fprintf(stderr, "\t-y 64bit mode\n"); in usage()
45 fprintf(stderr, "\t-n 32bit mode\n"); in usage()
46 fprintf(stderr, "\t-v verbose mode\n"); in usage()
52 fprintf(stderr, "%s: error: malformed line %d:\n%s", in malformed_line()
61 fprintf(stderr, "%s: warning: ", prog); in pr_warn()
70 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
71 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
74 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, in dump_field()
80 fprintf(fp, "Instruction = {\n"); in dump_insn()
[all …]
/Linux-v4.19/tools/perf/util/intel-pt-decoder/
Dintel-pt-log.c58 fprintf(f, " "); in intel_pt_print_data()
60 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_data()
62 fprintf(f, " %02x", buf[i]); in intel_pt_print_data()
64 fprintf(f, " "); in intel_pt_print_data()
65 fprintf(f, " "); in intel_pt_print_data()
73 fprintf(f, " "); in intel_pt_print_no_data()
75 fprintf(f, " %08" PRIx64 ": ", pos); in intel_pt_print_no_data()
77 fprintf(f, " "); in intel_pt_print_no_data()
78 fprintf(f, " "); in intel_pt_print_no_data()
111 fprintf(f, "%s\n", desc); in __intel_pt_log_packet()
[all …]
/Linux-v4.19/tools/testing/selftests/vm/
Duserfaultfd.c133 fprintf(stderr, "out of memory\n"); in anon_allocate_area()
169 fprintf(stderr, "mmap of hugetlbfs file failed\n"); in hugetlb_allocate_area()
226 fprintf(stderr, "shared memory mmap failed\n"); in shmem_allocate_area()
292 fprintf(stderr, "srandom_r error\n"), exit(1); in locking_thread()
302 fprintf(stderr, "random_r 1 error\n"), exit(1); in locking_thread()
306 fprintf(stderr, "random_r 2 error\n"), exit(1); in locking_thread()
318 fprintf(stderr, in locking_thread()
334 fprintf(stderr, in locking_thread()
353 fprintf(stderr, in locking_thread()
366 fprintf(stderr, in locking_thread()
[all …]
/Linux-v4.19/tools/gpio/
Dgpio-event-mon.c50 fprintf(stderr, "Failed to open %s\n", chrdev_name); in monitor_device()
62 fprintf(stderr, "Failed to issue GET EVENT " in monitor_device()
72 fprintf(stderr, "Failed to issue GPIOHANDLE GET LINE " in monitor_device()
78 fprintf(stdout, "Monitoring line %d on %s\n", line, device_name); in monitor_device()
79 fprintf(stdout, "Initial line value: %d\n", data.values[0]); in monitor_device()
87 fprintf(stderr, "nothing available\n"); in monitor_device()
91 fprintf(stderr, "Failed to read event (%d)\n", in monitor_device()
98 fprintf(stderr, "Reading event failed\n"); in monitor_device()
102 fprintf(stdout, "GPIO EVENT %llu: ", event.timestamp); in monitor_device()
105 fprintf(stdout, "rising edge"); in monitor_device()
[all …]
Dgpio-hammer.c51 fprintf(stdout, "Hammer lines ["); in hammer_device()
53 fprintf(stdout, "%d", lines[i]); in hammer_device()
55 fprintf(stdout, ", "); in hammer_device()
57 fprintf(stdout, "] on %s, initial states: [", device_name); in hammer_device()
59 fprintf(stdout, "%d", data.values[i]); in hammer_device()
61 fprintf(stdout, ", "); in hammer_device()
63 fprintf(stdout, "]\n"); in hammer_device()
81 fprintf(stdout, "[%c] ", swirr[j]); in hammer_device()
86 fprintf(stdout, "["); in hammer_device()
88 fprintf(stdout, "%d: %d", lines[i], data.values[i]); in hammer_device()
[all …]
Dlsgpio.c65 fprintf(stdout, " "); in print_flags()
66 fprintf(stdout, "%s", flagnames[i].name); in print_flags()
87 fprintf(stderr, "Failed to open %s\n", chrdev_name); in list_device()
98 fprintf(stdout, "GPIO chip: %s, \"%s\", %u GPIO lines\n", in list_device()
114 fprintf(stdout, "\tline %2d:", linfo.line_offset); in list_device()
116 fprintf(stdout, " \"%s\"", linfo.name); in list_device()
118 fprintf(stdout, " unnamed"); in list_device()
120 fprintf(stdout, " \"%s\"", linfo.consumer); in list_device()
122 fprintf(stdout, " unused"); in list_device()
124 fprintf(stdout, " ["); in list_device()
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/tools/perf/ui/stdio/
Dhist.c17 int ret = fprintf(fp, " "); in callchain__fprintf_left_margin()
20 ret += fprintf(fp, " "); in callchain__fprintf_left_margin()
33 ret += fprintf(fp, "| "); in ipchain__fprintf_graph_line()
35 ret += fprintf(fp, " "); in ipchain__fprintf_graph_line()
37 ret += fprintf(fp, "\n"); in ipchain__fprintf_graph_line()
56 ret += fprintf(fp, "|"); in ipchain__fprintf_graph()
58 ret += fprintf(fp, " "); in ipchain__fprintf_graph()
60 ret += fprintf(fp, "--"); in ipchain__fprintf_graph()
62 ret += fprintf(fp, "--"); in ipchain__fprintf_graph()
64 ret += fprintf(fp, "%s", " "); in ipchain__fprintf_graph()
[all …]
/Linux-v4.19/drivers/acpi/acpica/
Dutbuffer.c208 fprintf(file, "Null Buffer Pointer in DumpBuffer!\n"); in acpi_ut_dump_buffer_to_file()
222 fprintf(file, "%8.4X: ", (base_offset + i)); in acpi_ut_dump_buffer_to_file()
231 fprintf(file, "%*s", ((display * 2) + 1), " "); in acpi_ut_dump_buffer_to_file()
240 fprintf(file, "%02X ", in acpi_ut_dump_buffer_to_file()
248 fprintf(file, "%04X ", temp32); in acpi_ut_dump_buffer_to_file()
255 fprintf(file, "%08X ", temp32); in acpi_ut_dump_buffer_to_file()
262 fprintf(file, "%08X", temp32); in acpi_ut_dump_buffer_to_file()
267 fprintf(file, "%08X ", temp32); in acpi_ut_dump_buffer_to_file()
278 fprintf(file, " "); in acpi_ut_dump_buffer_to_file()
281 fprintf(file, "\n"); in acpi_ut_dump_buffer_to_file()
[all …]
/Linux-v4.19/arch/x86/entry/vdso/
Dvdso2c.h144 fprintf(outfile, "/* AUTOMATICALLY GENERATED -- DO NOT EDIT */\n\n"); in BITSFUNC()
145 fprintf(outfile, "#include <linux/linkage.h>\n"); in BITSFUNC()
146 fprintf(outfile, "#include <asm/page_types.h>\n"); in BITSFUNC()
147 fprintf(outfile, "#include <asm/vdso.h>\n"); in BITSFUNC()
148 fprintf(outfile, "\n"); in BITSFUNC()
149 fprintf(outfile, in BITSFUNC()
154 fprintf(outfile, "\n\t"); in BITSFUNC()
155 fprintf(outfile, "0x%02X, ", in BITSFUNC()
158 fprintf(outfile, "\n};\n\n"); in BITSFUNC()
160 fprintf(outfile, "const struct vdso_image %s = {\n", name); in BITSFUNC()
[all …]
/Linux-v4.19/tools/testing/selftests/android/ion/
Dionutils.c19 fprintf(stderr, "<%s>: Invalid buffer...\n", __func__); in write_buffer()
36 fprintf(stderr, "<%s>: Invalid buffer...\n", __func__); in read_buffer()
57 fprintf(stderr, "<%s>: Invalid ion info\n", __func__); in ion_export_buffer_fd()
64 fprintf(stderr, "<%s>: Failed to open ion client: %s\n", in ion_export_buffer_fd()
75 fprintf(stderr, "<%s>: Failed: ION_IOC_HEAP_QUERY: %s\n", in ion_export_buffer_fd()
89 fprintf(stderr, "<%s>: ERROR: heap type does not exists\n", in ion_export_buffer_fd()
101 fprintf(stderr, "<%s>: Failed: ION_IOC_ALLOC: %s\n", in ion_export_buffer_fd()
111 fprintf(stderr, "<%s>: Invalid map data, fd: %d, len: %ld\n", in ion_export_buffer_fd()
120 fprintf(stderr, "<%s>: Failed: mmap: %s\n", in ion_export_buffer_fd()
157 fprintf(stderr, "<%s>: Invalid ion info\n", __func__); in ion_import_buffer_fd()
[all …]
/Linux-v4.19/tools/power/acpi/tools/acpidump/
Dapdump.c38 fprintf(stderr, in ap_is_valid_header()
47 fprintf(stderr, "Table length (0x%8.8X) is invalid\n", in ap_is_valid_header()
85 fprintf(stderr, "%4.4s: Warning: wrong checksum in table\n", in ap_is_valid_checksum()
165 fprintf(gbl_output_file, "%4.4s @ 0x%8.8X%8.8X\n", in ap_dump_table_buffer()
171 fprintf(gbl_output_file, "\n"); in ap_dump_table_buffer()
209 fprintf(stderr, in ap_dump_all_tables()
214 fprintf(stderr, in ap_dump_all_tables()
258 fprintf(stderr, "%s: Could not convert to a physical address\n", in ap_dump_table_by_address()
266 fprintf(stderr, "Could not get table at 0x%8.8X%8.8X, %s\n", in ap_dump_table_by_address()
300 fprintf(stderr, in ap_dump_table_by_name()
[all …]
/Linux-v4.19/drivers/scsi/aic7xxx/aicasm/
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 …]

12345678910>>...15