Home
last modified time | relevance | path

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

12345678910>>...28

/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()
111fprintf(svgfile, "<svg width=\"%i\" height=\"%" PRIu64 "\" version=\"1.1\" xmlns=\"http://www.w3.o… 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()
116fprintf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; … in open_svg()
117fprintf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; … in open_svg()
118fprintf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; … in open_svg()
119fprintf(svgfile, " rect.sample { fill:rgb( 0, 0,255); fill-opacity:0.8; stroke-width:0; … in open_svg()
[all …]
/linux/scripts/selinux/mdp/
H A Dmdp.c64 fprintf(fout, "class %s\n", secclass_map[i].name); in main()
65 fprintf(fout, "\n"); in main()
73 fprintf(fout, "sid %s\n", name); in main()
75 fprintf(fout, "sid unused%d\n", i); in main()
77 fprintf(fout, "\n"); in main()
82 fprintf(fout, "class %s\n", map->name); in main()
83 fprintf(fout, "{\n"); in main()
85 fprintf(fout, "\t%s\n", map->perms[j]); in main()
86 fprintf(fout, "}\n\n"); in main()
88 fprintf(fout, "\n"); in main()
[all …]
/linux/security/selinux/
H A Dgenheaders.c32 fprintf(stderr, "%s: out of memory\n", progname); in stoupperx()
54 fprintf(stderr, "Could not open %s for writing: %s\n", in main()
59 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n"); in main()
60 fprintf(fout, "#ifndef _SELINUX_FLASK_H_\n#define _SELINUX_FLASK_H_\n\n"); in main()
65 fprintf(fout, "#define SECCLASS_%-39s %2d\n", name, i+1); in main()
69 fprintf(fout, "\n"); in main()
77 fprintf(fout, "#define SECINITSID_%-39s %2d\n", sidname, i); in main()
81 fprintf(fout, "\n#define SECINITSID_NUM %d\n", i-1); in main()
82 fprintf(fout, "\nstatic inline bool security_is_socket_class(u16 kern_tclass)\n"); in main()
83 fprintf(fout, "{\n"); in main()
[all …]
/linux/arch/mips/vdso/
H A 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/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/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/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/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/perf/util/scripting-engines/
H A Dtrace-event-perl.c566 fprintf(stderr, "couldn't open %s\n", fname); in perl_generate_script()
570 fprintf(ofp, "# perf script event handlers, " in perl_generate_script()
573 fprintf(ofp, "# Licensed under the terms of the GNU GPL" in perl_generate_script()
576 fprintf(ofp, "# The common_* event handler fields are the most useful " in perl_generate_script()
579 fprintf(ofp, "# all events. They don't necessarily correspond to " in perl_generate_script()
582 fprintf(ofp, "# in the format files. Those fields not available as " in perl_generate_script()
585 fprintf(ofp, "# be retrieved using Perl functions of the form " in perl_generate_script()
588 fprintf(ofp, "# See Context.pm for the list of available " in perl_generate_script()
591 fprintf(ofp, "use lib \"$ENV{'PERF_EXEC_PATH'}/scripts/perl/" in perl_generate_script()
594 fprintf(ofp, "use lib \"./Perf-Trace-Util/lib\";\n"); in perl_generate_script()
[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/arch/x86/tools/
H A Dvdso2c.h14 fprintf(outfile, "\n\t"); in copy()
15 fprintf(outfile, "0x%02X, ", (int)(data)[i]); in copy()
38 fprintf(outfile, "static const unsigned char %s[%zu] = {", name, len); in extract()
40 fprintf(outfile, "\n};\n\n"); in extract()
160 fprintf(outfile, "/* AUTOMATICALLY GENERATED -- DO NOT EDIT */\n\n"); in go()
161 fprintf(outfile, "#include <linux/linkage.h>\n"); in go()
162 fprintf(outfile, "#include <linux/init.h>\n"); in go()
163 fprintf(outfile, "#include <asm/page_types.h>\n"); in go()
164 fprintf(outfile, "#include <asm/vdso.h>\n"); in go()
165 fprintf(outfile, "\n"); in go()
[all …]
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 …]
/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/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/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/gpio/
H A 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 %u 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 %u", lines[0]); in monitor_device()
78 fprintf(stdout, ", %u", lines[i]); in monitor_device()
79 fprintf(stdout, " and %u 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 …]
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/testing/selftests/arm64/signal/
H A Dtest_signals_utils.c70 fprintf(stderr, "==>> completed. SKIP.\n"); in default_result()
72 fprintf(stderr, "==>> completed. PASS(1)\n"); in default_result()
75 fprintf(stdout, "==>> completed. FAIL(0)\n"); in default_result()
101 fprintf(stderr, in handle_signal_unsupported()
104 fprintf(stderr, in handle_signal_unsupported()
131 fprintf(stderr, in handle_signal_ok()
142 fprintf(stdout, in handle_signal_ok()
148 fprintf(stdout, "si_code is %d not %d\n", in handle_signal_ok()
161 fprintf(stdout, in handle_signal_ok()
217 fprintf(stderr, in handle_signal_copyctx()
[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 …]

12345678910>>...28