| /tools/perf/util/ |
| D | svghelper.c | 91 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() 110 …fprintf(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() 115 …fprintf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; … in open_svg() 116 …fprintf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; … in open_svg() 117 …fprintf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; … in open_svg() 118 …fprintf(svgfile, " rect.sample { fill:rgb( 0, 0,255); fill-opacity:0.8; stroke-width:0; … in open_svg() [all …]
|
| D | stat-display.c | 77 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 …]
|
| D | cs-etm-base.c | 72 fprintf(stdout, magic_unk_fmt, magic); in cs_etm__print_cpu_metadata_v0() 77 fprintf(stdout, cs_etm_priv_fmts[CS_ETM_MAGIC], val[i++]); in cs_etm__print_cpu_metadata_v0() 78 fprintf(stdout, cs_etm_priv_fmts[CS_ETM_CPU], val[i++]); in cs_etm__print_cpu_metadata_v0() 85 fprintf(stdout, cs_etm_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v0() 91 fprintf(stdout, cs_etmv4_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v0() 110 fprintf(stdout, param_unk_fmt, j, val[i]); in cs_etm__print_cpu_metadata_v1() 112 fprintf(stdout, cs_etm_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v1() 118 fprintf(stdout, param_unk_fmt, j, val[i]); in cs_etm__print_cpu_metadata_v1() 120 fprintf(stdout, cs_etmv4_priv_fmts[j], val[i]); in cs_etm__print_cpu_metadata_v1() 126 fprintf(stdout, param_unk_fmt, j, val[i]); in cs_etm__print_cpu_metadata_v1() [all …]
|
| D | evsel_fprintf.c | 26 ret += fprintf(fp, ","); in comma_fprintf() 28 ret += fprintf(fp, ":"); in comma_fprintf() 55 printed += fprintf(fp, "%s{", evsel->group_name ?: ""); in evsel__fprintf() 57 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf() 59 printed += fprintf(fp, ",%s", evsel__name(pos)); in evsel__fprintf() 62 printed += fprintf(fp, "}"); in evsel__fprintf() 66 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf() 130 return fprintf(fp, "<not enough memory for the callchain cursor>%s", print_oneline ? "" : "\n"); in sample__fprintf_callchain() 150 printed += fprintf(fp, "%-*.*s", left_alignment, left_alignment, " "); in sample__fprintf_callchain() 153 printed += fprintf(fp, " <-"); in sample__fprintf_callchain() [all …]
|
| /tools/pci/ |
| D | pcitest.c | 53 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 …]
|
| /tools/perf/util/scripting-engines/ |
| D | trace-event-perl.c | 565 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 …]
|
| /tools/gpio/ |
| D | gpio-hammer.c | 55 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 …]
|
| D | gpio-event-mon.c | 47 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 …]
|
| D | lsgpio.c | 81 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 …]
|
| /tools/bpf/bpftool/ |
| D | netlink_dumper.h | 19 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); \
|
| /tools/testing/selftests/bpf/ |
| D | btf_helpers.c | 101 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 …]
|
| D | xdp_synproxy.c | 39 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() 73 …fprintf(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 …]
|
| /tools/testing/selftests/net/ |
| D | psock_fanout.c | 175 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 …]
|
| /tools/testing/selftests/tmpfs/ |
| D | bug-link-o-tmpfile.c | 32 fprintf(stderr, "error: unshare, errno %d\n", errno); in main() 35 fprintf(stderr, "error: unshare, errno %d\n", errno); in main() 39 fprintf(stderr, "error: mount '/', errno %d\n", errno); in main() 45 fprintf(stderr, "error: mount tmpfs, errno %d\n", errno); in main() 51 fprintf(stderr, "error: open 1, errno %d\n", errno); in main() 55 fprintf(stderr, "error: linkat, errno %d\n", errno); in main() 62 fprintf(stderr, "error: open 2, errno %d\n", errno); in main()
|
| /tools/testing/selftests/bpf/benchs/ |
| D | bench_local_storage_rcu_tasks_trace.c | 41 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 …]
|
| /tools/testing/selftests/filesystems/ |
| D | devpts_pts.c | 107 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 …]
|
| /tools/testing/vsock/ |
| D | msg_zerocopy_common.c | 40 fprintf(stderr, "failed to read error queue: %zi\n", res); in vsock_recv_completion() 46 fprintf(stderr, "cmsg: no cmsg\n"); in vsock_recv_completion() 51 fprintf(stderr, "cmsg: unexpected 'cmsg_level'\n"); in vsock_recv_completion() 56 fprintf(stderr, "cmsg: unexpected 'cmsg_type'\n"); in vsock_recv_completion() 62 fprintf(stderr, "serr: wrong origin: %u\n", serr->ee_origin); in vsock_recv_completion() 67 fprintf(stderr, "serr: wrong error code: %u\n", serr->ee_errno); in vsock_recv_completion() 79 fprintf(stderr, "serr: was copy instead of zerocopy\n"); in vsock_recv_completion() 84 fprintf(stderr, "serr: was zerocopy instead of copy\n"); in vsock_recv_completion()
|
| /tools/testing/selftests/arm64/signal/ |
| D | test_signals_utils.c | 69 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 …]
|
| /tools/testing/selftests/arm64/signal/testcases/ |
| D | ssve_za_regs.c | 57 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 61 fprintf(stderr, "Failed to set VL, got %d\n", ret); in do_one_sme_vl() 76 fprintf(stderr, "No SVE context\n"); in do_one_sme_vl() 82 fprintf(stderr, "Got SSVE VL %d, expected %d\n", ssve->vl, vl); in do_one_sme_vl() 87 fprintf(stderr, "SVE_SIG_FLAG_SM not set in SVE record\n"); in do_one_sme_vl() 91 fprintf(stderr, "Got expected SSVE size %u and VL %d\n", in do_one_sme_vl() 97 fprintf(stderr, "No ZA context\n"); in do_one_sme_vl() 103 fprintf(stderr, "Got ZA VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() 107 fprintf(stderr, "Got expected ZA size %u and VL %d\n", in do_one_sme_vl() 113 fprintf(stderr, "ZA data invalid\n"); in do_one_sme_vl()
|
| /tools/arch/x86/dell-uart-backlight-emulator/ |
| D | dell-uart-backlight-emulator.c | 48 fprintf(stderr, "Invalid or missing arguments\n"); in main() 49 fprintf(stderr, "Usage: %s <serial-port>\n", argv[0]); in main() 55 fprintf(stderr, "Error opening %s: %s\n", argv[1], strerror(errno)); in main() 61 fprintf(stderr, "Error getting tcattr: %s\n", strerror(errno)); in main() 74 fprintf(stderr, "Error setting tcattr: %s\n", strerror(errno)); in main() 89 fprintf(stderr, "Error unexpected first byte: 0x%02x\n", buf[0]); in main() 105 fprintf(stderr, "Error checksum mismatch got 0x%02x expected 0x%02x\n", in main() 118 fprintf(stderr, "Error invalid brightness param: %d\n", buf[2]); in main() 133 fprintf(stderr, "Error invalid set power param: %d\n", buf[2]); in main() 141 fprintf(stderr, "Error unknown cmd 0x%04x\n", in main() [all …]
|
| /tools/power/acpi/tools/acpidump/ |
| D | apdump.c | 38 fprintf(stderr, in ap_is_valid_header() 47 fprintf(stderr, "Table length (0x%8.8X) is invalid\n", in ap_is_valid_header() 87 fprintf(stderr, "%4.4s: Warning: wrong checksum in table\n", in ap_is_valid_checksum() 167 fprintf(gbl_output_file, "%4.4s @ 0x%8.8X%8.8X\n", in ap_dump_table_buffer() 173 fprintf(gbl_output_file, "\n"); in ap_dump_table_buffer() 211 fprintf(stderr, in ap_dump_all_tables() 216 fprintf(stderr, in ap_dump_all_tables() 260 fprintf(stderr, "%s: Could not convert to a physical address\n", in ap_dump_table_by_address() 268 fprintf(stderr, "Could not get table at 0x%8.8X%8.8X, %s\n", in ap_dump_table_by_address() 302 fprintf(stderr, in ap_dump_table_by_name() [all …]
|
| /tools/testing/selftests/timers/ |
| D | rtcpie.c | 50 fprintf(stderr, "usage: rtctest [rtcdev] [d]\n"); in main() 66 fprintf(stderr, "\nNo periodic IRQ support\n"); in main() 72 fprintf(stderr, "\nPeriodic IRQ rate is %ldHz.\n", old_pie_rate); in main() 74 fprintf(stderr, "Counting 20 interrupts at:"); in main() 84 fprintf(stderr, in main() 92 fprintf(stderr, "\n%ldHz:\t", tmp); in main() 114 fprintf(stderr, "\nPIE delta error: %ld.%06ld should be close to 0.%06ld\n", in main() 121 fprintf(stderr, " %d",i); in main() 136 fprintf(stderr, "\n\n\t\t\t *** Test complete ***\n"); in main()
|
| /tools/perf/util/intel-pt-decoder/ |
| D | intel-pt-log.c | 73 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 …]
|
| /tools/perf/ui/stdio/ |
| D | hist.c | 25 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 …]
|
| /tools/testing/selftests/ia64/ |
| D | aliasing-test.c | 91 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree() 93 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree() 95 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree() 182 fprintf(stderr, "PASS: %s read %d bytes\n", path2, rc); in scan_rom() 184 fprintf(stderr, "PASS: %s not readable\n", path2); in scan_rom() 211 fprintf(stderr, "PASS: /dev/mem 0x0-0xa0000 is readable\n"); in main() 213 fprintf(stderr, "FAIL: /dev/mem 0x0-0xa0000 not accessible\n"); in main() 223 fprintf(stderr, "PASS: /dev/mem 0xa0000-0xc0000 is mappable\n"); in main() 225 fprintf(stderr, "FAIL: /dev/mem 0xa0000-0xc0000 not accessible\n"); in main() 228 fprintf(stderr, "PASS: /dev/mem 0xc0000-0x100000 is readable\n"); in main() [all …]
|