Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.1.9/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.c37 fprintf(config->output, in print_running()
41 fprintf(config->output, in print_running()
45 fprintf(config->output, " (%.2f%%)", 100.0 * run / ena); in print_running()
54 fprintf(config->output, "\"variance\" : %.2f, ", pct); in print_noise_pct()
56 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct()
58 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct()
79 fprintf(config->output, "\"cgroup\" : \"%s\", ", cgrp_name); in print_cgroup()
81 fprintf(config->output, "%s%s", config->csv_sep, cgrp_name); in print_cgroup()
92 fprintf(config->output, "{"); in aggr_printout()
97 fprintf(config->output, in aggr_printout()
[all …]
Devsel_fprintf.c22 ret += fprintf(fp, ","); in comma_fprintf()
24 ret += fprintf(fp, ":"); in comma_fprintf()
51 printed += fprintf(fp, "%s{", evsel->group_name ?: ""); in evsel__fprintf()
53 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf()
55 printed += fprintf(fp, ",%s", evsel__name(pos)); in evsel__fprintf()
58 printed += fprintf(fp, "}"); in evsel__fprintf()
62 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf()
143 printed += fprintf(fp, "%-*.*s", left_alignment, left_alignment, " "); in sample__fprintf_callchain()
146 printed += fprintf(fp, " <-"); in sample__fprintf_callchain()
154 printed += fprintf(fp, "%c%16" PRIx64, s, addr); in sample__fprintf_callchain()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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.1.9/tools/pci/
Dpcitest.c55 fprintf(stdout, "BAR%d:\t\t", test->barnum); in run_test()
57 fprintf(stdout, "TEST FAILED\n"); in run_test()
59 fprintf(stdout, "%s\n", result[ret]); in run_test()
64 fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]); in run_test()
66 fprintf(stdout, "FAILED\n"); in run_test()
68 fprintf(stdout, "%s\n", result[ret]); in run_test()
73 fprintf(stdout, "GET IRQ TYPE:\t\t"); in run_test()
75 fprintf(stdout, "FAILED\n"); in run_test()
77 fprintf(stdout, "%s\n", irq[ret]); in run_test()
82 fprintf(stdout, "CLEAR IRQ:\t\t"); in run_test()
[all …]
/linux-6.1.9/tools/perf/util/scripting-engines/
Dtrace-event-perl.c556 fprintf(stderr, "couldn't open %s\n", fname); in perl_generate_script()
560 fprintf(ofp, "# perf script event handlers, " in perl_generate_script()
563 fprintf(ofp, "# Licensed under the terms of the GNU GPL" in perl_generate_script()
566 fprintf(ofp, "# The common_* event handler fields are the most useful " in perl_generate_script()
569 fprintf(ofp, "# all events. They don't necessarily correspond to " in perl_generate_script()
572 fprintf(ofp, "# in the format files. Those fields not available as " in perl_generate_script()
575 fprintf(ofp, "# be retrieved using Perl functions of the form " in perl_generate_script()
578 fprintf(ofp, "# See Context.pm for the list of available " in perl_generate_script()
581 fprintf(ofp, "use lib \"$ENV{'PERF_EXEC_PATH'}/scripts/perl/" in perl_generate_script()
584 fprintf(ofp, "use lib \"./Perf-Trace-Util/lib\";\n"); in perl_generate_script()
[all …]
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/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()
201 fprintf(stderr, "Error: bpf_object__open_file: %s\n", strerror(-err)); in syncookie_attach()
207 fprintf(stderr, "Error: bpf_object__open_file: %s\n", strerror(-err)); in syncookie_attach()
[all …]
/linux-6.1.9/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, "%d", 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, "%d: %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.1.9/samples/bpf/
Dxdp_redirect_cpu_user.c99 fprintf(stderr, "Create CPU entry failed: %s\n", strerror(errno)); in create_cpu_entry()
108 fprintf(stderr, "Add to avail CPUs failed: %s\n", strerror(errno)); in create_cpu_entry()
115 fprintf(stderr, "Failed reading curr cpus_count: %s\n", in create_cpu_entry()
124 fprintf(stderr, "Failed write curr cpus_count: %s\n", in create_cpu_entry()
149 fprintf(stderr, "Failed marking CPU unavailable: %s\n", in mark_cpus_unavailable()
185 fprintf(stderr, "BPF program not specified for file %s\n", in set_cpumap_prog()
190 fprintf(stderr, "--redirect-%s specified but --redirect-%s not specified\n", in set_cpumap_prog()
199 fprintf(stderr, "Failed to bpf_prog_load_xattr: %s\n", in set_cpumap_prog()
207 fprintf(stderr, "Failed to bpf_object__load: %s\n", in set_cpumap_prog()
217 fprintf(stderr, "Failed to bpf_object__find_map_fd_by_name: %s\n", in set_cpumap_prog()
[all …]
/linux-6.1.9/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 <asm/page_types.h>\n"); in BITSFUNC()
183 fprintf(outfile, "#include <asm/vdso.h>\n"); in BITSFUNC()
184 fprintf(outfile, "\n"); in BITSFUNC()
185 fprintf(outfile, in BITSFUNC()
[all …]
/linux-6.1.9/tools/testing/selftests/arm64/signal/
Dtest_signals_utils.c68 fprintf(stderr, "==>> completed. SKIP.\n"); in default_result()
70 fprintf(stderr, "==>> completed. PASS(1)\n"); in default_result()
73 fprintf(stdout, "==>> completed. FAIL(0)\n"); in default_result()
99 fprintf(stderr, in handle_signal_unsupported()
102 fprintf(stderr, in handle_signal_unsupported()
129 fprintf(stderr, in handle_signal_ok()
140 fprintf(stdout, in handle_signal_ok()
151 fprintf(stdout, in handle_signal_ok()
204 fprintf(stderr, in handle_signal_copyctx()
223 fprintf(stderr, in handle_signal_copyctx()
[all …]
/linux-6.1.9/samples/landlock/
Dsandboxer.c96 fprintf(stderr, "Missing environment variable %s\n", env_var); in populate_ruleset()
116 fprintf(stderr, "Failed to open \"%s\": %s\n", in populate_ruleset()
129 fprintf(stderr, in populate_ruleset()
181 fprintf(stderr, in main()
184 fprintf(stderr, in main()
186 fprintf(stderr, "Environment variables containing paths, " in main()
188 fprintf(stderr, in main()
191 fprintf(stderr, in main()
194 fprintf(stderr, in main()
200 fprintf(stderr, in main()
[all …]
/linux-6.1.9/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.1.9/tools/testing/selftests/bpf/benchs/
Dbench_local_storage_rcu_tasks_trace.c46 fprintf(stderr, "invalid nr_procs\n"); in parse_arg()
54 fprintf(stderr, "invalid kthread_pid\n"); in parse_arg()
62 fprintf(stderr, "invalid quiet %ld\n", ret); in parse_arg()
85 fprintf(stderr, "benchmark doesn't support multi-producer!\n"); in validate()
89 fprintf(stderr, "benchmark doesn't support multi-consumer!\n"); in validate()
94 fprintf(stderr, "benchmark supports up to %u sleeper procs!\n", in validate()
112 fprintf(stderr, "couldn't open %s, exiting\n", procfs_path); in kthread_pid_ticks()
116 fprintf(stderr, "fscanf of %s failed, exiting\n", procfs_path); in kthread_pid_ticks()
151 fprintf(stderr, "Error forking sleeper proc %u of %u, exiting\n", i, in local_storage_tasks_trace_setup()
159 fprintf(stderr, "prctl failed with err %d, exiting\n", errno); in local_storage_tasks_trace_setup()
[all …]

12345678910>>...23