| /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/testing/selftests/drivers/net/hw/ |
| H A D | devlink_port_split.py | 29 Return: Tuple of (stdout, stderr). 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] [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 …]
|
| /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_fm in cs_etm__print_cpu_metadata_v1() [all...] |
| H A D | tool.c | 153 perf_event__fprintf_event_update(event, stdout); in process_event_auxtrace_stub() 225 perf_event__fprintf_thread_map(event, stdout); in process_stat_round_stub() 237 perf_event__fprintf_cpu_map(event, stdout); in process_event_time_conv_stub() 249 perf_event__fprintf_stat_config(event, stdout); 260 perf_event__fprintf_stat(event, stdout); in process_schedstat_cpu_stub() 271 perf_event__fprintf_stat_round(event, stdout); in process_schedstat_domain_stub() 282 perf_event__fprintf_time_conv(event, stdout); in perf_tool__init() 303 perf_event__fprintf_bpf_metadata(event, stdout); in perf_tool__init() 312 perf_event__fprintf_schedstat_cpu(event, stdout); in perf_tool__init() 322 perf_event__fprintf_schedstat_domain(event, stdout); in perf_tool__init() [all...] |
| /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/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/scripts/ |
| H A D | checkkconfigsymbols.py | 123 COLOR = args.color and sys.stdout.isatty() 227 """Execute %cmd and return stdout. Exit in case of error.""" 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"]) [all …]
|
| H A D | extract-module-sig.pl | 7 # section to stdout. Part is the bit to be written and is one of: 113 binmode(STDOUT); 117 binmode(STDOUT); 126 binmode(STDOUT); 132 binmode(STDOUT); 136 binmode(STDOUT);
|
| /linux/tools/testing/selftests/net/lib/py/ |
| H A D | utils.py | 57 self.stdout = None 87 self.proc = subprocess.Popen(comm, shell=shell, stdout=subprocess.PIPE, 107 stdout, stderr = self.proc.communicate(timeout=timeout) 108 self.stdout = stdout.decode("utf-8") 110 self.proc.stdout.close() 114 return stdout, stderr 123 stdout, stderr = self._process_terminate(terminate=terminate, 154 if self.stdout: 155 ret += str_fmt(" STDOUT", self.stdout) + "\n" 254 return _json.loads(cmd_obj.stdout) [all …]
|
| /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/kconfig/tests/ |
| H A D | conftest.py | 26 stdout, and stderr. It also provides methods to compare those 75 stdout=subprocess.PIPE, 106 self.stdout = ps.stdout.read().decode() 127 print("[stdout]") 128 print(self.stdout) 283 """Check if resulted stdout contains expected data. 288 return self._contains('stdout', expected) 291 """Check if resulted stdout exactly matches expected data. 296 return self._matches('stdout', expecte [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | urandom_read.c | 73 * end of the pipe (on the other side of our stdout) in main() 79 * closing stdout in main() 83 fprintf(stdout, "%d\n", getpid()); in main() 84 fflush(stdout); in main() 86 /* at this point stdout is closed, parent process knows our in main()
|
| H A D | testing_helpers.c | 378 fprintf(stdout, "Failed to trigger kernel-side RCU sync!\n"); in try_unload_module() 385 fprintf(stdout, "Unload of %s timed out\n", name); in try_unload_module() 394 fprintf(stdout, "%s.ko is already unloaded.\n", name); in try_unload_module() 397 fprintf(stdout, "Failed to unload %s.ko from kernel: %d\n", name, -errno); in try_unload_module() 401 fprintf(stdout, "Successfully unloaded %s.ko.\n", name); in try_unload_module() 415 fprintf(stdout, "Loading %s...\n", path); in __load_module() 419 fprintf(stdout, "Can't find %s kernel module: %d\n", path, -errno); in __load_module() 423 fprintf(stdout, "Failed to load %s into the kernel: %d\n", path, -errno); in __load_module() 430 fprintf(stdout, "Successfully loaded %s.\n", path); in __load_module()
|
| /linux/arch/powerpc/kernel/ |
| H A D | legacy_serial.c | 395 struct device_node *np, *stdout = NULL; in find_legacy_serial_ports() local 402 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in find_legacy_serial_ports() 404 path = of_get_property(of_chosen, "stdout-path", NULL); in find_legacy_serial_ports() 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() 410 DBG(" no linux,stdout-path !\n"); 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() [all …]
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 29 from kunit_printer import stdout 146 result = kunit_parser.parse_run_tests(file.readlines(), stdout) 153 result = kunit_parser.parse_run_tests(file.readlines(), stdout) 160 result = kunit_parser.parse_run_tests(file.readlines(), stdout) 167 result = kunit_parser.parse_run_tests(file.readlines(), stdout) 174 result = kunit_parser.parse_run_tests(file.readlines(), stdout) 186 kunit_parser.extract_tap_lines(file.readlines()), stdout) 197 file.readlines()), stdout) 206 kunit_parser.extract_tap_lines(file.readlines()), stdout) 215 kunit_parser.extract_tap_lines(file.readlines()), stdout) [all...] |
| H A D | kunit_kernel.py | 52 subprocess.check_output(['make', 'mrproper'], stderr=subprocess.STDOUT) 69 subprocess.check_output(command, stderr=subprocess.STDOUT) 86 stdout=subprocess.DEVNULL) 137 stdout=subprocess.PIPE, 138 stderr=subprocess.STDOUT, 159 stdout=subprocess.PIPE, 160 stderr=subprocess.STDOUT, 370 assert self._process.stdout is not None # tell mypy it's set 388 for line in self._process.stdout: 395 if self._process.stdout [all...] |
| H A D | kunit_printer.py | 18 def __init__(self, print: bool=True, output: typing.IO[str]=sys.stdout): 52 # Provides a default instance that prints to stdout 53 stdout = Printer() variable
|
| /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/scripts/clang-tools/ |
| H A D | run-clang-tools.py | 74 stdout=subprocess.PIPE, 75 stderr=subprocess.STDOUT, 78 sys.stderr.buffer.write(p.stdout) 96 os.dup2(devnull, sys.stdout.fileno())
|
| /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/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 80 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in udbg_scc_init() 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/Documentation/devicetree/bindings/arm/ |
| H A D | secure.txt | 64 - stdout-path : specifies the device to be used by the Secure OS for 65 its console output. The syntax is the same as for /chosen/stdout-path. 66 If the /secure-chosen node exists but the stdout-path property is not 69 /chosen/stdout-path instead (that is, use the same device as the
|
| /linux/tools/testing/selftests/arm64/gcs/ |
| H A D | gcs-stress.c | 32 int stdout; member 66 ksft_exit_fail_msg("Failed to create stdout pipe: %s (%d)\n", in start_thread() 76 * In child, replace stdout with the pipe, errors to in start_thread() 77 * stderr from here as kselftest prints to stdout. in start_thread() 124 * write side of stdout. in start_thread() 127 child->stdout = pipefd[0]; in start_thread() 139 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev); in start_thread() 156 ret = read(child->stdout, read_data, sizeof(read_data)); in child_output_read() 215 close(child->stdout); in child_output() 216 child->stdout = -1; in child_output()
|