/scripts/clang-tools/ |
D | gen_compile_commands.py | 65 os.path.abspath(args.directory), 88 yield os.path.join(dirpath, filename) 91 def to_cmdfile(path): argument 100 dir, base = os.path.split(path) 101 return os.path.join(dir, '.' + base + '.cmd') 148 base, ext = os.path.splitext(ko) 182 abs_path = os.path.abspath(os.path.join(root_directory, file_path)) 183 if not os.path.exists(abs_path): 203 for path in paths: 209 if os.path.isdir(path): [all …]
|
D | run-clang-tools.py | 54 p = subprocess.run(["clang-tidy", "-p", args.path, checks, entry["file"]], 69 with open(args.path, "r") as f:
|
/scripts/ |
D | leaking_addresses.pl | 413 my ($path) = @_; 416 return 1 if (/^$path$/); 419 my($filename, $dirs, $suffix) = fileparse($path); 469 my ($path) = @_; 471 if (may_leak_address($path)) { 472 printf("Path name may contain address: $path\n"); 489 my $path = "$pwd/$file"; 490 next if (-l $path); 493 next if (($path =~ /^\/proc\/[0-9]+$/) && 494 ($path !~ /^\/proc\/1$/)); [all …]
|
D | spdxcheck.py | 43 if not os.path.isfile(el.path): 47 for l in open(el.path).readlines(): 210 if el.path.startswith("LICENSES"): 212 if el.path.find("license-rules.rst") >= 0: 214 if not os.path.isfile(el.path): 216 with open(el.path, 'rb') as fd: 217 parser.parse_lines(fd, args.maxlines, el.path) 219 def scan_git_subtree(tree, path): argument 220 for p in path.strip('/').split('/'): 234 if '-' in args.path and len(args.path) > 1: [all …]
|
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 | documentation-file-ref-check | 145 my $path = $f; 146 $path =~ s,(.*)/.*,$1,; 147 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
|
D | mkuboot.sh | 8 MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage") 11 MKIMAGE=$(type -path mkimage)
|
D | headers_check.pl | 116 my $path = $_[0]; 120 my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path);
|
D | get_abi.pl | 346 my $path = $filepath[$i]; 349 $path =~ s,.*/(.*/.*),$1,;; 350 $path =~ s,[/\-],_,g;; 351 my $fileref = "abi_file_".$path; 385 my $path = $f; 386 $path =~ s,.*/(.*/.*),$1,;; 387 $path =~ s,[/\-],_,g;; 388 $xref .= " <abi_file_" . $path . ">";
|
D | generate_initcall_order.pl | 112 my ($path)= $_ =~ /^(.+)\:$/; 114 if (defined($path)) { 138 die "$0: ERROR: invalid initcall name $symbol in $file($path)"
|
D | bpf_helpers_doc.py | 580 script = os.path.abspath(sys.argv[0]) 581 linuxRoot = os.path.dirname(os.path.dirname(script)) 582 bpfh = os.path.join(linuxRoot, 'include/uapi/linux/bpf.h') 591 if (os.path.isfile(bpfh)):
|
D | get_maintainer.pl | 401 my $path = "${lk_path}MAINTAINERS"; 403 $path = $maintainer_path; 405 …$path =~ s@^~([^/]*)@ $1 ? (getpwnam($1))[7] : ( $ENV{HOME} || $ENV{LOGDIR} || (getpwuid($<))[7])@… 408 if (-d $path) { 409 $path .= '/' if ($path !~ m@/$@); 414 }, "$path"); 416 opendir(DIR, "$path") or die $!; 420 push(@mfiles, "$path$file") if ($file !~ /^\./); 423 } elsif (-f "$path") { 424 push(@mfiles, "$path"); [all …]
|
/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 | 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 | util.c | 84 char *join_path(const char *path, const char *name) in join_path() argument 86 int lenp = strlen(path); in join_path() 93 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path() 99 memcpy(str, path, lenp); in join_path()
|
D | srcpos.c | 26 static char *get_dirname(const char *path) in get_dirname() argument 28 const char *slash = strrchr(path, '/'); in get_dirname() 31 int len = slash - path; in get_dirname() 34 memcpy(dir, path, len); in get_dirname()
|
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, p - path, child->name)) in get_node_by_path() 531 else if (!p && streq(path, child->name)) in get_node_by_path()
|
/scripts/dtc/libfdt/ |
D | fdt_overlay.c | 62 const char *path = NULL; in overlay_get_target() local 73 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target() 74 if (path) in overlay_get_target() 75 ret = fdt_path_offset(fdt, path); in overlay_get_target() 97 *pathp = path ? path : NULL; in overlay_get_target() 370 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument 396 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle() 445 const char *path, *name, *fixup_end; in overlay_fixup_phandle() local 460 path = fixup_str; in overlay_fixup_phandle() 465 path_len = sep - path; in overlay_fixup_phandle() [all …]
|
D | fdt_ro.c | 250 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument 252 const char *end = path + namelen; in fdt_path_offset_namelen() 253 const char *p = path; in fdt_path_offset_namelen() 259 if (*path != '/') { in fdt_path_offset_namelen() 260 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen() 295 int fdt_path_offset(const void *fdt, const char *path) in fdt_path_offset() argument 297 return fdt_path_offset_namelen(fdt, path, strlen(path)); in fdt_path_offset()
|
/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)) 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) 90 with open(os.path.join(temp_dir, out_file)) as f: 150 defconfig_path = os.path.join(self._test_dir, defconfig) 155 all_config_path = os.path.join(self._test_dir, all_config) 226 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): 167 self.module_paths = [os.path.expanduser(p) for p in arg.split()]
|
/scripts/gdb/ |
D | vmlinux-gdb.py | 16 sys.path.insert(0, os.path.dirname(__file__) + "/scripts/gdb")
|
/scripts/kconfig/ |
D | gconf.c | 783 GtkTreePath *path = gtk_tree_path_new_from_string(path_string); in renderer_edited() local 789 if (!gtk_tree_model_get_iter(model2, &iter, path)) in renderer_edited() 802 gtk_tree_path_free(path); in renderer_edited() 884 GtkTreePath *path; in on_treeview2_button_press_event() local 895 gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, in on_treeview2_button_press_event() 898 gtk_tree_view_get_cursor(view, &path, &column); in on_treeview2_button_press_event() 900 if (path == NULL) in on_treeview2_button_press_event() 903 if (!gtk_tree_model_get_iter(model2, &iter, path)) in on_treeview2_button_press_event() 919 gtk_tree_view_expand_row(view, path, TRUE); in on_treeview2_button_press_event() 924 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:
|