| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/ |
| D | chosen.txt | 2 --------------- 11 kaslr-seed 12 ----------- 22 kaslr-seed = <0xfeedbeef 0xc0def00d>; 31 stdout-path 32 ----------- 35 with a stdout-path property under /chosen, as described in the Devicetree 40 stdout-path = "/serial@f00:115200"; 44 compatible = "vendor,some-uart"; 49 If the character ":" is present in the value, this terminates the path. [all …]
|
| /kernel/linux/linux-6.6/tools/testing/kunit/ |
| D | kunit_kernel.py | 1 # SPDX-License-Identifier: GPL-2.0 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: Optional[List[str]]) -> None: 68 subprocess.check_output(command, stderr=subprocess.STDOUT) 74 def make(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> None: 75 command = ['make', 'ARCH=' + self._linux_arch, 'O=' + build_dir, '--jobs=' + str(jobs)] [all …]
|
| D | kunit.py | 2 # SPDX-License-Identifier: GPL-2.0 26 from kunit_printer import stdout 70 def get_kernel_root_path() -> str: 71 path = sys.argv[0] if not __file__ else __file__ 72 parts = os.path.realpath(path).split('tools/testing/kunit') 78 request: KunitConfigRequest) -> KunitResult: 79 stdout.print_with_timestamp('Configuring KUnit Kernel ...') 85 return KunitResult(status, config_end - config_start) 88 request: KunitBuildRequest) -> KunitResult: 89 stdout.print_with_timestamp('Building KUnit Kernel ...') [all …]
|
| /kernel/linux/linux-5.10/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.) 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) 67 stdout=subprocess.PIPE, [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 21 """Set up and parses command-line arguments. 24 Has keys: [path, type] 26 usage = """Run clang-tidy or the clang static-analyzer on a 32 choices=["clang-tidy", "clang-analyzer"], 34 path_help = "Path to the compilation database to parse" 35 parser.add_argument("path", type=str, help=path_help) 48 # Disable all checks, then re-enable the ones we want 49 checks = "-checks=-*," [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/tools/testing/kunit/ |
| D | kunit_kernel.py | 1 # SPDX-License-Identifier: GPL-2.0 39 subprocess.check_output(['make', 'mrproper'], stderr=subprocess.STDOUT) 52 subprocess.check_output(command, stderr=subprocess.STDOUT) 68 stdout=subprocess.DEVNULL, 69 stderr=subprocess.STDOUT) 81 command = ['make', 'ARCH=um', '--jobs=' + str(jobs)] 89 stdout=subprocess.DEVNULL) 102 linux_bin = os.path.join(build_dir, 'linux') 106 stdout=output, 107 stderr=subprocess.STDOUT) [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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> 41 {.type = "tsi-bridge",}, 44 {.compatible = "simple-bus",}, 45 {.compatible = "wrs,epld-localbus",}, 50 static int legacy_serial_console = -1; 58 offset = offset << p->regshift; in tsi_serial_in() 60 tmp = readl(p->membase + (UART_IIR & ~3)); in tsi_serial_in() 63 return readb(p->membase + offset); in tsi_serial_in() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
| D | test_progs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 56 for (i = 0; i < sel->blacklist.cnt; i++) { in should_run() 57 if (strstr(name, sel->blacklist.strs[i])) in should_run() 61 for (i = 0; i < sel->whitelist.cnt; i++) { in should_run() 62 if (strstr(name, sel->whitelist.strs[i])) in should_run() 66 if (!sel->whitelist.cnt && !sel->num_set) in should_run() 69 return num < sel->num_set_len && sel->num_set[num]; in should_run() 74 if (stdout == env.stdout) in dump_test_log() 77 fflush(stdout); /* exports env.log_buf & env.log_cnt */ in dump_test_log() 79 if (env.verbosity > VERBOSE_NONE || test->force_log || failed) { in dump_test_log() [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/scripts/ |
| D | rust_is_available_test.py | 2 # SPDX-License-Identifier: GPL-2.0 6 Some of the tests require the real programs to be available in `$PATH` 28 path = pathlib.Path(cls.tempdir.name) 29 name = str(len(tuple(path.iterdir()))) 30 path = path / name 31 with open(path, "w") as file_: 33 os.chmod(path, os.stat(path).st_mode | stat.S_IXUSR) 34 return path 37 def generate_clang(cls, stdout): argument 40 if "-E" in " ".join(sys.argv): [all …]
|
| 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 …]
|
| /kernel/linux/build/ |
| D | kernel_build.py | 2 # -*- coding: utf-8 -*- 5 SPDX-License-Identifier: GPL-2.0 25 …rmat '%d' expects argument of type 'int', but argument 9 has type 'long unsigned int' [-Wformat=]", 30 … "mm/vmscan.c: warning: suggest parentheses around assignment used as truth value [-Wparentheses]", 32 … "drivers/mmc/host/sdhci-esdhc-imx.c: warning: 'sdhci_esdhc_imx_probe_nondt' defined but not used", 37 def __init__(self, arch, path): argument 39 self.path = path 45 return os.path.normpath(filename) 61 if not os.path.exists(os.path.join(self.path, filename)): 131 ('[-Wunused-but-set-variable]', 'warning: .* set but not used'), [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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" 24 #define WRITE_PATH_FMT "/dev/virtio-ports/trace-path-cpu%d" 25 #define CTL_PATH "/dev/virtio-ports/agent-ctl-path" 59 s->pipe_size = PIPE_INIT; in agent_info_new() 60 s->use_stdout = false; in agent_info_new() 61 s->cpus = get_total_cpus(); in agent_info_new() 62 s->ctl_fd = -1; in agent_info_new() 65 for (i = 0; i < s->cpus; i++) in agent_info_new() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| D | testing_helpers.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 16 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() 24 return -errno; in parse_num_list() 31 if (!parsing_end && *next == '-') { in parse_num_list() 44 return -EINVAL; in parse_num_list() 48 return -EINVAL; in parse_num_list() 55 return -ENOMEM; in parse_num_list() 67 return -EINVAL; in parse_num_list() 83 for (i = 0; i < set->cnt; i++) { in do_insert_test() 84 test = &set->tests[i]; in do_insert_test() [all …]
|