Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 33) sorted by relevance

12

/scripts/
Dleaking_addresses.pl413 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 …]
Dspdxcheck.py43 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 …]
Dgen_compile_commands.py62 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)
Dheaderdep.pl81 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($!);
Ddocumentation-file-ref-check138 my $path = $f;
139 $path =~ s,(.*)/.*,$1,;
140 next if (grep -e, glob("$path/$ref $path/../$ref $path/$fulref"));
Dmkuboot.sh8 MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
11 MKIMAGE=$(type -path mkimage)
Dheaders_check.pl116 my $path = $_[0];
120 my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path);
Dbpf_helpers_doc.py547 script = os.path.abspath(sys.argv[0])
548 linuxRoot = os.path.dirname(os.path.dirname(script))
549 bpfh = os.path.join(linuxRoot, 'include/uapi/linux/bpf.h')
558 if (os.path.isfile(bpfh)):
Dget_maintainer.pl392 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 …]
Dtags.sh76 \( -path ${tree}include -o -path ${tree}arch -o -name '.tmp_*' \) -prune -o \
/scripts/dtc/
Dfdtput.c152 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 …]
Ddtx_diff27 -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. The following
68 add the path of DTx_1 and DTx_2 to the include paths. If DTx_2 includes
69 a local file that exists in both the path of DTx_1 and DTx_2 then the
70 file in the path of DTx_1 will incorrectly be included. Possible
305 If \${KBUILD_OUTPUT} is a relative path, then '-s SRCDIR', -S, or run
Dsrcpos.c26 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()
Dutil.c83 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()
Dlivetree.c512 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()
Dutil.h63 extern char *join_path(const char *path, const char *name);
/scripts/dtc/libfdt/
Dfdt_overlay.c62 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 …]
Dfdt_ro.c235 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/
Dconftest.py18 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/
Dgenpd.py17 path = kobj['name'].string()
20 path = kobject_get_path(parent) + '/' + path
21 return path
Dsymbols.py76 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/
Dvmlinux-gdb.py16 sys.path.insert(0, os.path.dirname(__file__) + "/scripts/gdb")
/scripts/kconfig/
Dgconf.c782 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/
Dexpected_stderr2 Inclusion path:
/scripts/coccinelle/null/
Dbadzero.cocci8 //# include path.
120 // This rule may lead to inconsistent path problems, if E is defined in two

12