/linux/tools/pci/ |
H A 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 …]
|
/linux/tools/gpio/ |
H A 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 …]
|
H A 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() 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() 149 fprintf(stdout, " \"%s\"", linfo.consumer); in list_device() [all …]
|
H A D | gpio-event-mon.c | 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() 111 fprintf(stdout, "GPIO EVENT at %" PRIu64 " on line %d (%d|%d) ", in monitor_device() 116 fprintf(stdout, "rising edge"); in monitor_device() [all …]
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | devlink_port_split.py | 32 p = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True) 33 stdout, stderr = p.communicate() 34 stdout, stderr = stdout.decode(), stderr.decode() 38 print(stdout) 40 return stdout, stderr 58 stdout, stderr = run_command(cmd) 60 ports = json.loads(stdout)['port'] 82 stdout, stderr = run_command(cmd) 84 values = list(json.loads(stdout)['port'].values())[0] 100 stdout, stderr = run_command(cmd) [all …]
|
/linux/tools/bpf/bpftool/ |
H A 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); \
|
/linux/tools/perf/util/ |
H A 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 …]
|
H A D | tool.c | 96 perf_event__fprintf_event_update(event, stdout); in process_event_synth_event_update_stub() 166 perf_event__fprintf_thread_map(event, stdout); in process_event_thread_map_stub() 177 perf_event__fprintf_cpu_map(event, stdout); in process_event_cpu_map_stub() 188 perf_event__fprintf_stat_config(event, stdout); in process_event_stat_config_stub() 198 perf_event__fprintf_stat(event, stdout); in process_stat_stub() 208 perf_event__fprintf_stat_round(event, stdout); in process_stat_round_stub() 218 perf_event__fprintf_time_conv(event, stdout); in process_event_time_conv_stub()
|
H A D | s390-sample-raw.c | 100 color_fprintf(stdout, color, " [%#08zx] Trailer:%c%c%c%c%c" in s390_cpumcfdg_dumptrail() 106 color_fprintf(stdout, color, "\t\t1:%lx 2:%lx 3:%lx TOD-Base:%#llx" in s390_cpumcfdg_dumptrail() 202 color_fprintf(stdout, color, " [%#08zx] Counterset:%d" in s390_cpumcfdg_dump() 207 color_fprintf(stdout, color, in s390_cpumcfdg_dump() 263 color_fprintf(stdout, color, "\tCounter:%03d %s Value:%#018lx\n", in s390_pai_all_dump() 271 color_fprintf(stdout, color, "\n"); in s390_pai_all_dump()
|
/linux/tools/testing/selftests/prctl/ |
H A D | disable-tsc-test.c | 47 fflush(stdout); in sigsegv_cb() 54 fflush(stdout); in sigsegv_cb() 69 fflush(stdout); in main() 77 fflush(stdout); in main() 84 fflush(stdout); in main() 90 fflush(stdout); in main() 92 fflush(stdout); in main()
|
/linux/tools/perf/util/hisi-ptt-decoder/ |
H A D | hisi-ptt-pkt-decoder.c | 96 color_fprintf(stdout, color, " %08x: ", pos); in hisi_ptt_print_pkt() 98 color_fprintf(stdout, color, "%02x ", buf[pos + i]); in hisi_ptt_print_pkt() 100 color_fprintf(stdout, color, " "); in hisi_ptt_print_pkt() 101 color_fprintf(stdout, color, " %s\n", desc); in hisi_ptt_print_pkt() 130 color_fprintf(stdout, color, " %08x: ", pos); in hisi_ptt_4dw_print_dw0() 132 color_fprintf(stdout, color, "%02x ", buf[pos + i]); in hisi_ptt_4dw_print_dw0() 134 color_fprintf(stdout, color, " "); in hisi_ptt_4dw_print_dw0() 136 color_fprintf(stdout, color, in hisi_ptt_4dw_print_dw0()
|
/linux/scripts/ |
H A D | checkkconfigsymbols.py | 123 COLOR = args.color and sys.stdout.isatty() 229 stdout = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=False) 230 stdout = stdout.decode(errors='replace') 233 return stdout 247 stdout = execute(["git", "status", "--porcelain"]) 248 for line in stdout: 256 stdout = execute(["git", "rev-parse", "HEAD"]) 257 return stdout.strip('\n') 295 stdout = execute(["git", "ls-files"]) 296 if len(stdout) > 0 and stdout[-1] == "\n": [all …]
|
/linux/tools/testing/selftests/net/lib/py/ |
H A D | utils.py | 21 self.stdout = None 29 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE, 40 stdout, stderr = self.proc.communicate(timeout) 41 self.stdout = stdout.decode("utf-8") 43 self.proc.stdout.close() 51 (self.proc.args, stdout, stderr)) 110 return _json.loads(cmd_obj.stdout) 149 data = cmd(f'cat /proc/net/{proto}*', ns=ns, host=host, shell=True).stdout
|
/linux/tools/testing/kunit/ |
H A D | kunit_parser.py | 20 from kunit_printer import stdout 60 stdout.print_with_timestamp(stdout.red('[ERROR]') + f' Test: {self.name}: {error_message}') 510 stdout.print_with_timestamp(format_test_divider(message, len(message))) 516 stdout.print_with_timestamp(stdout.yellow(line)) 533 return stdout.green('[PASSED] ') + test.name 535 return stdout.yellow('[SKIPPED] ') + test.name 537 return stdout.yellow('[NO TESTS RUN] ') + test.name 540 return stdout.red('[CRASHED] ') + test.name 542 return stdout.red('[FAILED] ') + test.name 554 stdout.print_with_timestamp(format_test_result(test)) [all …]
|
/linux/Documentation/networking/device_drivers/atm/ |
H A D | cxacru-cf.py | 39 sys.stdout.write("\n") 44 sys.stdout.write(" ") 45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0])) 48 sys.stdout.write("\n")
|
/linux/tools/perf/scripts/python/ |
H A D | compaction-times.py | 192 sys.stdout.write("%d[%s].%d: %s\n" % (self.pid, self.comm, i+1, pelem)) 202 sys.stdout.write("%d[%s]: %s\n" % (self.pid, self.comm, self.val)) 206 sys.stdout.write("total: %s\n" % chead.str()) 249 sys.stdout.write(usage) 250 sys.stdout.write("\n") 251 sys.stdout.write("-h display this help\n") 252 sys.stdout.write("-p display by process\n") 253 sys.stdout.write("-pv display by process (verbose)\n") 254 sys.stdout.write("-t display stall times only\n") 255 sys.stdout.write("-m display stats for migration\n") [all …]
|
/linux/tools/lib/perf/include/internal/ |
H A D | tests.h | 34 fprintf(stdout, "- running %s...", __FILE__); \ 42 fprintf(stdout, " FAILED (%d)\n", tests_failed); \ 44 fprintf(stdout, "OK\n"); \
|
/linux/tools/testing/selftests/bpf/ |
H A D | testing_helpers.c | 375 fprintf(stdout, "Failed to trigger kernel-side RCU sync!\n"); in unload_module() 382 fprintf(stdout, "Unload of %s timed out\n", name); in unload_module() 391 fprintf(stdout, "%s.ko is already unloaded.\n", name); in unload_module() 394 fprintf(stdout, "Failed to unload %s.ko from kernel: %d\n", name, -errno); in unload_module() 398 fprintf(stdout, "Successfully unloaded %s.ko.\n", name); in unload_module() 407 fprintf(stdout, "Loading %s...\n", path); in load_module() 411 fprintf(stdout, "Can't find %s kernel module: %d\n", path, -errno); in load_module() 415 fprintf(stdout, "Failed to load %s into the kernel: %d\n", path, -errno); in load_module() 422 fprintf(stdout, "Successfully loaded %s.\n", path); in load_module()
|
/linux/tools/testing/selftests/turbostat/ |
H A D | defcolumns.py | 26 expected_columns_debug = proc_turbostat.stdout.replace(b',', b'\t').strip() 40 actual_columns = proc_turbostat.stdout.split(b'\n')[0] 56 actual_columns = proc_turbostat.stdout.split(b'\n')[0]
|
/linux/arch/powerpc/platforms/powermac/ |
H A D | udbg_scc.c | 69 struct device_node *stdout = NULL, *escc = NULL, *macio = NULL; in udbg_scc_init() local 82 stdout = of_find_node_by_path(path); in udbg_scc_init() 84 if (ch == stdout) { in udbg_scc_init() 160 of_node_put(stdout); in udbg_scc_init()
|
/linux/tools/memory-model/scripts/ |
H A D | checkghlitmus.sh | 52 if scripts/runlitmushist.sh < $T/list-C-needed > $T/run.stdout 2> $T/run.stderr 60 sh > $T/judge.stdout 2> $T/judge.stderr 66 grep '!!!' $T/judge.stdout
|
/linux/tools/include/nolibc/ |
H A D | stdio.h | 38 static __attribute__((unused)) FILE* const stdout = (FILE*)(intptr_t)~STDOUT_FILENO; variable 136 return fputc(c, stdout); in putchar() 183 if (fputs(s, stdout) == EOF) in puts() 324 return vfprintf(stdout, fmt, args); in vprintf() 346 ret = vfprintf(stdout, fmt, args); in printf()
|
/linux/scripts/clang-tools/ |
H A D | run-clang-tools.py | 74 stdout=subprocess.PIPE, 78 sys.stderr.buffer.write(p.stdout) 95 os.dup2(devnull, sys.stdout.fileno())
|
/linux/tools/perf/ |
H A D | perf-read-vdso.c | 24 written = fwrite(start, 1, size, stdout); in main() 31 if (fflush(stdout)) in main()
|
/linux/arch/powerpc/kernel/ |
H A D | legacy_serial.c | 395 struct device_node *np, *stdout = NULL; in find_legacy_serial_ports() local 406 stdout = of_find_node_by_path(path); in find_legacy_serial_ports() 407 if (stdout) in find_legacy_serial_ports() 408 DBG("stdout is %pOF\n", stdout); in find_legacy_serial_ports() 421 if (index >= 0 && np == stdout) in find_legacy_serial_ports() 434 if (index >= 0 && np == stdout) in find_legacy_serial_ports() 468 if (index >= 0 && np == stdout) in find_legacy_serial_ports() 474 of_node_put(stdout); in find_legacy_serial_ports()
|