/scripts/clang-tools/ |
D | gen_compile_commands.py | 67 os.path.abspath(args.directory), 86 exclude_dirs = [ os.path.join(directory, d) for d in _EXCLUDE_DIRS ] 96 yield os.path.join(dirpath, filename) 99 def to_cmdfile(path): argument 108 dir, base = os.path.split(path) 109 return os.path.join(dir, '.' + base + '.cmd') 142 base, ext = os.path.splitext(obj) 176 abs_path = os.path.abspath(os.path.join(root_directory, file_path)) 177 if not os.path.exists(abs_path): 197 for path in paths: [all …]
|
D | run-clang-tools.py | 55 p = subprocess.run(["clang-tidy", "-p", args.path, ",".join(checks), entry["file"]], 70 with open(args.path, "r") as f:
|
/scripts/ |
D | leaking_addresses.pl | 414 my ($path) = @_; 417 return 1 if (/^$path$/); 420 my($filename, $dirs, $suffix) = fileparse($path); 470 my ($path) = @_; 472 if (may_leak_address($path)) { 473 printf("Path name may contain address: $path\n"); 490 my $path = "$pwd/$file"; 491 next if (-l $path); 494 next if (($path =~ /^\/proc\/[0-9]+$/) && 495 ($path !~ /^\/proc\/1$/)); [all …]
|
D | spdxcheck.py | 43 bdir = os.path.dirname(fname) 59 if not os.path.isfile(el.path): 63 for l in open(el.path, encoding="utf-8").readlines(): 241 base = os.path.dirname(fname) 273 return os.path.basename(fpath).startswith('.') 276 return os.path.basename(fpath) == self.pattern 282 if self.match_fn(os.path.dirname(fpath)): 295 if not os.path.isfile(el.path): 297 if exclude_file(el.path): 300 with open(el.path, 'rb') as fd: [all …]
|
D | documentation-file-ref-check | 148 my $path = $f; 149 $path =~ s,(.*)/.*,$1,; 150 $path =~ s,testing/selftests/bpf,bpf/bpftool,; 151 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
|
D | headerdep.pl | 81 my $path = "$i/$filename"; 82 return $path if -f $path; 96 my $path = search($header); 97 next unless $path; 99 open(my $file, '<', $path) or die($!);
|
D | jobserver-exec | 32 _, _, path = fds.partition('fifo:') variable 34 if path: 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) 36 writer = os.open(path, os.O_WRONLY)
|
D | rustdoc_test_gen.rs | 35 path::{Path, PathBuf}, 96 for path in valid_paths { in find_real_path() 114 .map(|entry| entry.unwrap().path()) in main() 128 for path in paths { in main() 131 let name = path.file_name().unwrap().to_str().unwrap().to_string(); in main() 156 File::open(path).unwrap().read_to_string(&mut body).unwrap(); in main()
|
D | generate_rust_analyzer.py | 123 for path in folder.rglob("*.rs"): 124 logging.info("Checking %s", path) 125 name = path.name.replace(".rs", "") 128 if not is_root_crate(path.parent / "Makefile", name) and \ 129 not is_root_crate(path.parent / "Kbuild", name): 135 path,
|
D | mkuboot.sh | 8 MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage") 11 MKIMAGE=$(type -path mkimage)
|
D | rustdoc_test_builder.rs | 69 let path = format!("rust/test/doctests/kernel/{name}"); in main() localVariable 71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
|
D | generate_initcall_order.pl | 112 my ($path)= $_ =~ /^(.+)\:$/; 114 if (defined($path)) { 138 die "$0: ERROR: invalid initcall name $symbol in $file($path)"
|
D | rust_is_available_test.py | 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
|
D | get_abi.pl | 374 my $path = $filepath[$i]; 377 $path =~ s,.*/(.*/.*),$1,;; 378 $path =~ s,[/\-],_,g;; 379 my $fileref = "abi_file_".$path; 435 my $path = $f; 436 $path =~ s,.*/(.*/.*),$1,;; 437 $path =~ s,[/\-],_,g;; 438 $xref .= " <abi_file_" . $path . ">"; 725 my $path = $file; 726 $path =~ s,(.*/).*,$1,;
|
/scripts/dtc/ |
D | fdtput.c | 152 const char *path = in_path; in create_paths() local 157 while (*path == '/') in create_paths() 158 path++; in create_paths() 160 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths() 162 sep = strchr(path, '/'); in create_paths() 164 sep = path + strlen(path); in create_paths() 166 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths() 167 sep - path); in create_paths() 169 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths() 170 sep - path); in create_paths() [all …]
|
D | dt-extract-compatibles | 53 for path, dirs, files in os.walk(root): 60 yield os.path.join(path, f) 64 if os.path.isdir(f):
|
D | dtx_diff | 29 -s SRCTREE linux kernel source tree is at path SRCTREE 53 and DTx utilizes '#include' or '/include/' then the path of the 62 may not work since \${ARCH} is part of the include path. The following 71 add the path of DTx_1 and DTx_2 to the include paths. If DTx_2 includes 72 a local file that exists in both the path of DTx_1 and DTx_2 then the 73 file in the path of DTx_1 will incorrectly be included. Possible 316 If \${KBUILD_OUTPUT} is a relative path, then '-s SRCDIR', -S, or run
|
D | livetree.c | 512 struct node *get_node_by_path(struct node *tree, const char *path) in get_node_by_path() argument 517 if (!path || ! (*path)) { in get_node_by_path() 523 while (path[0] == '/') in get_node_by_path() 524 path++; in get_node_by_path() 526 p = strchr(path, '/'); in get_node_by_path() 529 if (p && strprefixeq(path, (size_t)(p - path), child->name)) in get_node_by_path() 531 else if (!p && streq(path, child->name)) in get_node_by_path() 585 const char *label = NULL, *path = NULL; in get_node_by_ref() local 591 path = ref; in get_node_by_ref() 602 path = slash + 1; in get_node_by_ref() [all …]
|
/scripts/dtc/libfdt/ |
D | fdt_overlay.c | 47 const char *path = NULL; in fdt_overlay_target_offset() local 58 path = fdt_getprop(fdto, fragment_offset, "target-path", &path_len); in fdt_overlay_target_offset() 59 if (path) in fdt_overlay_target_offset() 60 ret = fdt_path_offset(fdt, path); in fdt_overlay_target_offset() 82 *pathp = path ? path : NULL; in fdt_overlay_target_offset() 355 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument 381 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle() 430 const char *path, *name, *fixup_end; in overlay_fixup_phandle() local 445 path = fixup_str; in overlay_fixup_phandle() 450 path_len = sep - path; in overlay_fixup_phandle() [all …]
|
/scripts/kconfig/tests/ |
D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 36 self._test_dir = os.path.dirname(str(request.fspath)) 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 67 os.path.join(temp_dir, '.config')) 94 with open(os.path.join(temp_dir, out_file)) as f: 154 defconfig_path = os.path.join(self._test_dir, defconfig) 159 all_config_path = os.path.join(self._test_dir, all_config) 230 with open(os.path.join(self._test_dir, expected)) as f:
|
/scripts/gdb/linux/ |
D | genpd.py | 17 path = kobj['name'].string() 20 path = kobject_get_path(parent) + '/' + path 21 return path
|
D | symbols.py | 76 for path in self.module_paths: 77 gdb.write("scanning for modules in {0}\n".format(path)) 78 for root, dirs, files in os.walk(path): 88 if re.match(module_pattern, name) and os.path.exists(name): 171 self.module_paths = [os.path.abspath(os.path.expanduser(p))
|
/scripts/gdb/ |
D | vmlinux-gdb.py | 16 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "/scripts/gdb")
|
/scripts/kconfig/ |
D | gconf.c | 776 GtkTreePath *path = gtk_tree_path_new_from_string(path_string); in renderer_edited() local 782 if (!gtk_tree_model_get_iter(model2, &iter, path)) in renderer_edited() 795 gtk_tree_path_free(path); in renderer_edited() 877 GtkTreePath *path; in on_treeview2_button_press_event() local 888 gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, in on_treeview2_button_press_event() 891 gtk_tree_view_get_cursor(view, &path, &column); in on_treeview2_button_press_event() 893 if (path == NULL) in on_treeview2_button_press_event() 896 if (!gtk_tree_model_get_iter(model2, &iter, path)) in on_treeview2_button_press_event() 912 gtk_tree_view_expand_row(view, path, TRUE); in on_treeview2_button_press_event() 917 gtk_tree_view_expand_row(view, path, TRUE); in on_treeview2_button_press_event() [all …]
|
/scripts/kconfig/tests/err_recursive_inc/ |
D | expected_stderr | 2 Inclusion path:
|