/scripts/ |
D | leaking_addresses.pl | 413 my ($path) = @_; 416 return 1 if (/^$path$/); 419 my($filename, $dirs, $suffix) = fileparse($path); 468 my ($path) = @_; 470 if (may_leak_address($path)) { 471 printf("Path name may contain address: $path\n"); 488 my $path = "$pwd/$file"; 489 next if (-l $path); 492 next if (($path =~ /^\/proc\/[0-9]+$/) && 493 ($path !~ /^\/proc\/1$/)); [all …]
|
D | spdxcheck.py | 43 if not os.path.isfile(el.path): 47 for l in open(el.path).readlines(): 207 if el.path.startswith("LICENSES"): 209 if el.path.find("license-rules.rst") >= 0: 211 if not os.path.isfile(el.path): 213 with open(el.path, 'rb') as fd: 214 parser.parse_lines(fd, args.maxlines, el.path) 216 def scan_git_subtree(tree, path): argument 217 for p in path.strip('/').split('/'): 231 if '-' in args.path and len(args.path) > 1: [all …]
|
D | gen_compile_commands.py | 62 output = args.output or os.path.join(directory, _DEFAULT_OUTPUT) 63 directory = os.path.abspath(directory) 94 expected_path = os.path.join(cur_dir, relative_path) 95 if not os.path.exists(expected_path): 99 expected_path = os.path.join(cur_dir, relative_path) 100 if not os.path.exists(expected_path): 125 filepath = os.path.join(dirpath, filename)
|
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 | 138 my $path = $f; 139 $path =~ s,(.*)/.*,$1,; 140 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 | bpf_helpers_doc.py | 399 script = os.path.abspath(sys.argv[0]) 400 linuxRoot = os.path.dirname(os.path.dirname(script)) 401 bpfh = os.path.join(linuxRoot, 'include/uapi/linux/bpf.h') 408 if (os.path.isfile(bpfh)):
|
D | get_maintainer.pl | 392 my $path = "${lk_path}MAINTAINERS"; 394 $path = $maintainer_path; 396 …$path =~ s@^~([^/]*)@ $1 ? (getpwnam($1))[7] : ( $ENV{HOME} || $ENV{LOGDIR} || (getpwuid($<))[7])@… 399 if (-d $path) { 400 $path .= '/' if ($path !~ m@/$@); 405 }, "$path"); 407 opendir(DIR, "$path") or die $!; 411 push(@mfiles, "$path$file") if ($file !~ /^\./); 414 } elsif (-f "$path") { 415 push(@mfiles, "$path"); [all …]
|
D | tags.sh | 69 \( -path ${tree}include -o -path ${tree}arch -o -name '.tmp_*' \) -prune -o \
|
/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 | 27 -s SRCTREE linux kernel source tree is at path SRCTREE 50 and DTx utilizes '#include' or '/include/' then the path of the 59 may not work since \${ARCH} is part of the include path. Two possible 72 add the path of DTx_1 and DTx_2 to the include paths. If DTx_2 includes 73 a local file that exists in both the path of DTx_1 and DTx_2 then the 74 file in the path of DTx_1 will incorrectly be included. Possible 309 If \${KBUILD_OUTPUT} is a relative path, then '-s SRCDIR', -S, or run
|
D | util.c | 83 char *join_path(const char *path, const char *name) in join_path() argument 85 int lenp = strlen(path); in join_path() 92 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path() 98 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 && (strlen(child->name) == p-path) && in get_node_by_path() 530 strprefixeq(path, p - path, child->name)) in get_node_by_path() 532 else if (!p && streq(path, child->name)) in get_node_by_path()
|
D | util.h | 63 extern char *join_path(const char *path, const char *name);
|
/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() 369 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument 395 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle() 444 const char *path, *name, *fixup_end; in overlay_fixup_phandle() local 459 path = fixup_str; in overlay_fixup_phandle() 464 path_len = sep - path; in overlay_fixup_phandle() [all …]
|
D | fdt_ro.c | 235 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) in fdt_path_offset_namelen() argument 237 const char *end = path + namelen; in fdt_path_offset_namelen() 238 const char *p = path; in fdt_path_offset_namelen() 244 if (*path != '/') { in fdt_path_offset_namelen() 245 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen() 280 int fdt_path_offset(const void *fdt, const char *path) in fdt_path_offset() argument 282 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 | 782 GtkTreePath *path = gtk_tree_path_new_from_string(path_string); in renderer_edited() local 788 if (!gtk_tree_model_get_iter(model2, &iter, path)) in renderer_edited() 801 gtk_tree_path_free(path); in renderer_edited() 883 GtkTreePath *path; in on_treeview2_button_press_event() local 894 gtk_tree_view_get_path_at_pos(view, tx, ty, &path, &column, &cx, in on_treeview2_button_press_event() 897 gtk_tree_view_get_cursor(view, &path, &column); in on_treeview2_button_press_event() 899 if (path == NULL) in on_treeview2_button_press_event() 902 if (!gtk_tree_model_get_iter(model2, &iter, path)) in on_treeview2_button_press_event() 918 gtk_tree_view_expand_row(view, path, TRUE); in on_treeview2_button_press_event() 923 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:
|
/scripts/coccinelle/null/ |
D | badzero.cocci | 8 //# include path. 120 // This rule may lead to inconsistent path problems, if E is defined in two
|