| /Linux-v6.1/tools/testing/kunit/ |
| D | kunit_kernel.py | 1 # SPDX-License-Identifier: GPL-2.0 21 from kunit_printer import stdout 31 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__)) 32 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs') 49 def make_mrproper(self) -> None: 51 subprocess.check_output(['make', 'mrproper'], stderr=subprocess.STDOUT) 57 def make_arch_config(self, base_kunitconfig: kunit_config.Kconfig) -> kunit_config.Kconfig: 60 def make_olddefconfig(self, build_dir: str, make_options) -> None: 68 subprocess.check_output(command, stderr=subprocess.STDOUT) 74 def make(self, jobs, build_dir: str, make_options) -> None: [all …]
|
| D | kunit.py | 2 # SPDX-License-Identifier: GPL-2.0 26 from kunit_printer import stdout 66 def get_kernel_root_path() -> str: 67 path = sys.argv[0] if not __file__ else __file__ 68 parts = os.path.realpath(path).split('tools/testing/kunit') 74 request: KunitConfigRequest) -> KunitResult: 75 stdout.print_with_timestamp('Configuring KUnit Kernel ...') 82 config_end - config_start) 84 config_end - config_start) 87 request: KunitBuildRequest) -> KunitResult: [all …]
|
| /Linux-v6.1/scripts/kconfig/tests/ |
| D | conftest.py | 1 # SPDX-License-Identifier: GPL-2.0 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 24 This class provides methods to run text-based interface of Kconfig 26 stdout, and stderr. It also provides methods to compare those 36 self._test_dir = os.path.dirname(str(request.fspath)) 41 """Run text-based Kconfig executable and save the result. 43 mode: input mode option (--oldaskconfig, --defconfig=<file> etc.) 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 67 os.path.join(temp_dir, '.config')) 71 stdout=subprocess.PIPE, [all …]
|
| /Linux-v6.1/arch/powerpc/kernel/ |
| D | legacy_serial.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <asm/pci-bridge.h> 17 #include <asm/ppc-pci.h> 43 {.type = "tsi-bridge",}, 46 {.compatible = "simple-bus",}, 47 {.compatible = "wrs,epld-localbus",}, 52 static int legacy_serial_console = -1; 60 offset = offset << p->regshift; in tsi_serial_in() 62 tmp = readl(p->membase + (UART_IIR & ~3)); in tsi_serial_in() 65 return readb(p->membase + offset); in tsi_serial_in() [all …]
|
| /Linux-v6.1/scripts/clang-tools/ |
| D | run-clang-tools.py | 2 # SPDX-License-Identifier: GPL-2.0 8 """A helper routine run clang-tidy and the clang static-analyzer on 20 """Set up and parses command-line arguments. 23 Has keys: [path, type] 25 usage = """Run clang-tidy or the clang static-analyzer on a 31 choices=["clang-tidy", "clang-analyzer"], 33 path_help = "Path to the compilation database to parse" 34 parser.add_argument("path", type=str, help=path_help) 47 # Disable all checks, then re-enable the ones we want 49 checks.append("-checks=-*") [all …]
|
| /Linux-v6.1/arch/powerpc/platforms/powermac/ |
| D | udbg_scc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2001-2005 PPC 64 Team, IBM Corp 40 return -1; in udbg_scc_getc_poll() 42 return -1; in udbg_scc_getc_poll() 52 return -1; in udbg_scc_getc() 69 struct device_node *stdout = NULL, *escc = NULL, *macio = NULL; in udbg_scc_init() local 71 const char *path; in udbg_scc_init() local 80 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in udbg_scc_init() 81 if (path != NULL) in udbg_scc_init() 82 stdout = of_find_node_by_path(path); in udbg_scc_init() [all …]
|
| /Linux-v6.1/Documentation/devicetree/bindings/arm/ |
| D | secure.txt | 15 can be supported by prefixing the property name with "secure-". So for 16 instance "secure-foo" would override "foo". For property names with 18 "vendor,secure-foo". If there is no "secure-" property then the Secure 20 non-prefixed property. However, only the properties listed below may 21 validly have "secure-" versions; this list will be enlarged on a 22 case-by-case basis. 25 been annotated to indicate the presence of Secure-only devices can 26 still be processed unmodified by existing Non-secure software (and in 32 secure- bindings only need to be used where both the Secure and Normal 36 ----------------------------- [all …]
|
| /Linux-v6.1/arch/sparc/kernel/ |
| D | prom_32.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 1996-2005 Paul Mackerras. 67 regs = rprop->value; in sparc32_path_component() 70 regs->which_io, regs->phys_addr); in sparc32_path_component() 84 regs = prop->value; in sbus_path_component() 87 regs->which_io, in sbus_path_component() 88 regs->phys_addr); in sbus_path_component() 103 regs = prop->value; in pci_path_component() 104 devfn = (regs->phys_hi >> 8) & 0xff; in pci_path_component() 128 regs = prop->value; in ebus_path_component() [all …]
|
| /Linux-v6.1/tools/virtio/virtio-trace/ |
| D | README | 1 Trace Agent for virtio-trace 6 - splice a page of ring-buffer to read_pipe without memory copying 7 - splice the page from write_pipe to virtio-console without memory copying 8 - write trace data to stdout by using -o option 9 - controlled by start/stop orders from a Host 18 5) The read/write threads start to read trace data from ring-buffers and 19 write the data to virtio-serial. 28 Makefile: Makefile of trace agent for virtio-trace 29 trace-agent.c: includes main function, sets up for operating trace agent 30 trace-agent.h: includes all structures and some macros [all …]
|
| D | trace-agent.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Guest agent for virtio-trace 15 #include "trace-agent.h" 23 #define WRITE_PATH_FMT "/dev/virtio-ports/trace-path-cpu%d" 24 #define CTL_PATH "/dev/virtio-ports/agent-ctl-path" 58 s->pipe_size = PIPE_INIT; in agent_info_new() 59 s->use_stdout = false; in agent_info_new() 60 s->cpus = get_total_cpus(); in agent_info_new() 61 s->ctl_fd = -1; in agent_info_new() 64 for (i = 0; i < s->cpus; i++) in agent_info_new() [all …]
|
| D | trace-agent.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * agent_info - structure managing total information of guest agent 15 * @ctl_fd: fd of control path, /dev/virtio-ports/agent-ctl-path 27 * rw_thread_info - structure managing a read/write thread a cpu 29 * @in_fd: fd of reading trace data path in cpu_num 30 * @out_fd: fd of writing trace data path in cpu_num 69 #define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__)
|
| /Linux-v6.1/tools/testing/selftests/exec/ |
| D | binfmt_script.py | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test that truncation of bprm->buf doesn't cause unexpected execs paths, along 10 # b5372fe5dc84 ("exec: load_script: Do not exec truncated interpreter path") 31 # test - produce a binfmt_script hashbang line for testing 33 # @size: bytes for bprm->buf line, including hashbang but not newline 36 # @leading: any leading whitespace before the executable path 52 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg) 55 middle += fill * (NAME_MAX - 1) 57 remaining -= NAME_MAX 71 script = "binfmt_script-%s" % (name) [all …]
|
| /Linux-v6.1/scripts/ |
| D | checkkconfigsymbols.py | 2 # SPDX-License-Identifier: GPL-2.0-only 6 # (c) 2014-2017 Valentin Rothberg <valentinrothberg@gmail.com> 23 SYMBOL = r"(?:\w*[A-Z0-9]\w*){2,}" 31 REGEX_FILE_KCONFIG = re.compile(r".*Kconfig[\.\w+\-]*$") 37 REGEX_FILTER_SYMBOLS = re.compile(r"[A-Za-z0-9]$") 38 REGEX_NUMERIC = re.compile(r"0[xX][0-9a-fA-F]+|[0-9]+") 47 "Please note that specifying commits will 'git reset --hard\' " \ 53 parser.add_argument('-c', '--commit', dest='commit', action='store', 58 parser.add_argument('-d', '--diff', dest='diff', action='store', 61 "(e.g., -d commmit1..commit2)") [all …]
|
| /Linux-v6.1/tools/testing/selftests/bpf/ |
| D | test_offload.py | 7 # June 1991 as shown in the file COPYING in the top-level directory of this 35 bpf_test_dir = os.path.dirname(os.path.realpath(__file__)) 50 log_level -= sub 98 Run a command in subprocess and return tuple of (retval, stdout); 101 proc = subprocess.Popen(cmd, shell=shell, stdout=subprocess.PIPE, 112 stdout, stderr = proc.communicate() 113 stdout = stdout.decode("utf-8") 114 stderr = stderr.decode("utf-8") 115 proc.stdout.close() 119 if stderr[-1] == "\n": [all …]
|
| D | test_progs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 if (verbose() && env.worker_id == -1) { in stdio_hijack_init() 30 /* nothing to do, output to stdout by default */ in stdio_hijack_init() 34 fflush(stdout); in stdio_hijack_init() 37 stdout = open_memstream(log_buf, log_cnt); in stdio_hijack_init() 38 if (!stdout) { in stdio_hijack_init() 39 stdout = env.stdout; in stdio_hijack_init() 45 env.subtest_state->stdout = stdout; in stdio_hijack_init() 47 env.test_state->stdout = stdout; in stdio_hijack_init() 49 stderr = stdout; in stdio_hijack_init() [all …]
|
| /Linux-v6.1/arch/powerpc/boot/ |
| D | serial.c | 1 // SPDX-License-Identifier: GPL-2.0 23 return scdp->open(); in serial_open() 31 scdp->putc(*buf++); in serial_write() 46 if (scdp->tstc()) { in serial_edit_cmdline() 47 while (((ch = scdp->getc()) != '\n') && (ch != '\r')) { in serial_edit_cmdline() 51 cp--; in serial_edit_cmdline() 52 count--; in serial_edit_cmdline() 58 cp--; in serial_edit_cmdline() 59 count--; in serial_edit_cmdline() 65 scdp->putc(ch); in serial_edit_cmdline() [all …]
|
| /Linux-v6.1/Documentation/sphinx/ |
| D | kernel_feat.py | 1 # coding=utf-8 2 # SPDX-License-Identifier: GPL-2.0 5 kernel-feat 8 Implementation of the ``kernel-feat`` reST-directive. 11 :copyright: Copyright (C) 2016-2019 Mauro Carvalho Chehab 12 :maintained-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 15 The ``kernel-feat`` (:py:class:`KernelFeat`) directive calls the 20 .. code-block:: rst 22 .. kernel-feat:: <ABI directory location> 29 Inserts a code-block with the *raw* reST. Sometimes it is helpful to see [all …]
|
| D | kernel_abi.py | 1 # -*- coding: utf-8; mode: python -*- 2 # coding=utf-8 3 # SPDX-License-Identifier: GPL-2.0 6 kernel-abi 9 Implementation of the ``kernel-abi`` reST-directive. 12 :copyright: Copyright (C) 2016-2020 Mauro Carvalho Chehab 13 :maintained-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 16 The ``kernel-abi`` (:py:class:`KernelCmd`) directive calls the 21 .. code-block:: rst 23 .. kernel-abi:: <ABI directory location> [all …]
|
| D | kfigure.py | 1 # -*- coding: utf-8; mode: python -*- 14 handling from the author's POV. Directives like ``kernel-figure`` implement 15 methods *to* always get the best output-format even if some tools are not 19 * ``.. kernel-image``: for image handling / a ``.. image::`` replacement 21 * ``.. kernel-figure``: for figure handling / a ``.. figure::`` replacement 23 * ``.. kernel-render``: for render markup / a concept to embed *render* 26 - ``DOT``: render embedded Graphviz's **DOC** 27 - ``SVG``: render embedded Scalable Vector Graphics (**SVG**) 28 - ... *developable* 33 available, the DOT language is inserted as literal-block. [all …]
|
| /Linux-v6.1/tools/perf/ |
| D | builtin-report.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * builtin-report.c 23 #include "util/mem-events.h" 38 #include <subcmd/parse-options.h> 39 #include <subcmd/exec-cmd.h> 40 #include "util/parse-events.h" 47 #include "util/time-utils.h" 53 #include "util/block-info.h" 126 if (!strcmp(var, "report.percent-limit")) { in report__config() 129 rep->min_percent = pcnt; in report__config() [all …]
|
| D | perf.c | 6 * This is the main hub from which the sub-commands (perf stat, 12 #include "util/build-id.h" 16 #include <subcmd/exec-cmd.h> 18 #include <subcmd/run-command.h> 19 #include "util/parse-events.h" 20 #include <subcmd/parse-options.h> 21 #include "util/bpf-loader.h" 26 #include "perf-sys.h" 43 "perf [--version] [--help] [OPTIONS] COMMAND [ARGS]"; 48 static int use_pager = -1; [all …]
|
| /Linux-v6.1/tools/cgroup/ |
| D | iocost_coef_gen.py | 8 Generate linear IO cost model coefficients used by the blk-iocost 11 ./iocost-coef-fio.testfile. The result can be written directly to 14 On high performance devices, --numjobs > 1 is needed to achieve 17 See Documentation/admin-guide/cgroup-v2.rst and block/blk-iocost.c 34 parser.add_argument('--testdev', metavar='DEV', 35 help='Raw block device to use for testing, ignores --testfile-size') 36 parser.add_argument('--testfile-size-gb', type=float, metavar='GIGABYTES', default=16, 38 parser.add_argument('--duration', type=int, metavar='SECONDS', default=120, 40 parser.add_argument('--seqio-block-mb', metavar='MEGABYTES', type=int, default=128, 42 parser.add_argument('--seq-depth', type=int, metavar='DEPTH', default=64, [all …]
|
| /Linux-v6.1/arch/mips/generic/ |
| D | yamon-dt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 #define pr_fmt(fmt) "yamon-dt: " fmt 16 #include <asm/yamon-dt.h> 26 if (chosen_off == -FDT_ERR_NOTFOUND) in yamon_dt_append_cmdline() 53 for (mr = regions; mr->size && memsize; ++mr) { in gen_fdt_mem_array() 61 size = min_t(unsigned long, memsize, mr->size); in gen_fdt_mem_array() 62 memsize -= size; in gen_fdt_mem_array() 65 *(mem_array++) = cpu_to_be32(mr->start); in gen_fdt_mem_array() 69 /* Discard the next mr->discard bytes */ in gen_fdt_mem_array() 70 memsize -= min_t(unsigned long, memsize, mr->discard); in gen_fdt_mem_array() [all …]
|
| /Linux-v6.1/tools/testing/selftests/drivers/sdsi/ |
| D | sdsi_test.py | 2 # SPDX-License-Identifier: GPL-2.0 38 return os.path.isfile(kmemleak) 42 lsmod_p = subprocess.Popen(('lsmod'), stdout=subprocess.PIPE) 43 result = subprocess.check_output(('grep', '-q', MODULE_NAME), stdin=lsmod_p.stdout) 59 assert os.path.isfile(folder + "guid") == True 60 assert os.path.isfile(folder + "provision_akc") == True 61 assert os.path.isfile(folder + "provision_cap") == True 62 assert os.path.isfile(folder + "state_certificate") == True 63 assert os.path.isfile(folder + "registers") == True 139 # file is none-zero and the same as the value read [all …]
|
| /Linux-v6.1/tools/perf/Documentation/ |
| D | perf-inject.txt | 1 perf-inject(1) 5 ---- 6 perf-inject - Filter to augment the events stream with additional information 9 -------- 14 ----------- 15 perf-inject reads a perf-record event stream and repipes it to stdout. At any 16 point the processing code can inject other events into the event stream - in 17 this case build-ids (-b option) are read and injected as needed into the event 20 Build-ids are just the first user of perf-inject - potentially anything that 25 ------- [all …]
|