/scripts/ |
A D | macro_checker.py | 107 def get_correct_macros(path): argument 108 file_check_macro(path, False) 113 path = os.path.join(dir_path, dentry) 114 if os.path.isdir(path): 115 dir_check_macro(path) 116 elif os.path.isfile(path): 117 get_correct_macros(path) 122 if os.path.isfile(args.path): 123 get_correct_macros(args.path) 125 elif os.path.isdir(args.path): [all …]
|
A D | leaking_addresses.pl | 375 my ($path, $line) = @_; 444 my ($path) = @_; 447 return 1 if (/^$path$/); 528 my ($path) = @_; 530 if (may_leak_address($path, $path)) { 548 my $path = "$pwd/$file"; 549 next if (-l $path); 555 next if (skip($path)); 559 if (-d $path) { 560 push @dirs, $path; [all …]
|
A D | checktransupdate.py | 133 if not os.path.isfile(opath): 170 script_path = os.path.dirname(os.path.abspath(__file__)) 171 linux_path = os.path.join(script_path, "..") 185 if os.path.basename(pwd) in exclude_folders: 189 ab_item = os.path.join(pwd, item) 190 if os.path.isdir(ab_item): 234 script_path = os.path.dirname(os.path.abspath(__file__)) 235 linux_path = os.path.join(script_path, "..") 290 if os.path.isfile(new_file): 294 logging.info(os.path.relpath(os.path.abspath(file), linux_path)) [all …]
|
A D | spdxcheck.py | 43 bdir = os.path.dirname(fname) 59 if not os.path.isfile(el.path): 247 base = os.path.dirname(fname) 301 if not os.path.isfile(el.path): 303 if exclude_file(el.path): 306 with open(el.path, 'rb') as fd: 346 if '-' in args.path and len(args.path) > 1: 376 fname = os.path.join(os.path.dirname(__file__), 'spdxexclude') 383 if len(args.path) and args.path[0] == '-': 387 if args.path: [all …]
|
A 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"));
|
A 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($!);
|
A D | jobserver-exec | 32 _, _, path = fds.partition('fifo:') 34 if path: 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) 36 writer = os.open(path, os.O_WRONLY)
|
A D | rustdoc_test_gen.rs | 35 path::{Path, PathBuf}, 98 for path in valid_paths { in find_real_path() 115 .map(|entry| entry.unwrap().path()) in main() 129 for path in paths { in main() 132 let name = path.file_name().unwrap().to_str().unwrap().to_string(); in main() 157 File::open(path).unwrap().read_to_string(&mut body).unwrap(); in main()
|
A D | mkuboot.sh | 8 MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage") 11 MKIMAGE=$(type -path mkimage)
|
A D | generate_rust_analyzer.py | 159 for path in folder.rglob("*.rs"): 160 logging.info("Checking %s", path) 161 name = path.name.replace(".rs", "") 164 if not is_root_crate(path.parent / "Makefile", name) and \ 165 not is_root_crate(path.parent / "Kbuild", name): 171 path,
|
A D | make_fit.py | 205 fsw.property_string('description', os.path.basename(fname)) 236 path, basename = os.path.split(fname) 237 cmd_fname = os.path.join(path, f'.{basename}.cmd') 274 size += os.path.getsize(args.kernel) 279 if os.path.splitext(fname)[1] != '.dtb': 291 size += os.path.getsize(fn)
|
A D | rustdoc_test_builder.rs | 71 let path = format!("rust/test/doctests/kernel/{name}"); in main() 73 std::fs::write(path, body.as_bytes()).unwrap(); in main()
|
A D | get_abi.py | 18 SRC_DIR = os.path.dirname(os.path.realpath(__file__)) 20 sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR))
|
A D | kernel-doc.py | 106 SRC_DIR = os.path.dirname(os.path.realpath(__file__)) 108 sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR))
|
/scripts/clang-tools/ |
A D | gen_compile_commands.py | 67 os.path.realpath(args.directory), 99 def to_cmdfile(path): argument 108 dir, base = os.path.split(path) 142 base, ext = os.path.splitext(obj) 176 abs_path = os.path.realpath(os.path.join(root_directory, file_path)) 177 if not os.path.exists(abs_path): 197 for path in paths: 202 if os.path.isdir(path): 203 cmdfiles = cmdfiles_in_dir(path) 204 elif path.endswith('.a'): [all …]
|
/scripts/dtc/ |
A 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 …]
|
A D | dt-extract-compatibles | 98 for path, dirs, files in os.walk(root): 105 yield os.path.join(path, f) 109 if os.path.isdir(f):
|
A 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
|
/scripts/kconfig/tests/ |
A 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) 234 with open(os.path.join(self._test_dir, expected)) as f:
|
/scripts/lib/abi/ |
A D | system_symbols.py | 23 def graph_add_file(self, path, link=None): argument 28 if path in self.files: 33 for edge in path.split("/"): 43 self.files.add(path) 97 path = os.path.join(root, entry.name) 99 p = path.replace(self.sysfs, "/sys", count=1) 101 p = path 108 real = os.path.realpath(path) 110 self.aliases[path] = real 123 self._walk(path)
|
/scripts/gdb/linux/ |
A D | genpd.py | 17 path = kobj['name'].string() 20 path = kobject_get_path(parent) + '/' + path 21 return path
|
A D | symbols.py | 131 for path in self.module_paths: 132 gdb.write("scanning for modules in {0}\n".format(path)) 133 for root, dirs, files in os.walk(path): 143 if re.match(module_pattern, name) and os.path.exists(name): 233 self.module_paths = [os.path.abspath(os.path.expanduser(p))
|
/scripts/dtc/libfdt/ |
A D | fdt_overlay.c | 47 const char *path = NULL; in fdt_overlay_target_offset() local 59 if (path) in fdt_overlay_target_offset() 82 *pathp = path ? path : NULL; in fdt_overlay_target_offset() 423 path = fixup_str; in overlay_fixup_phandle() 428 path_len = sep - path; in overlay_fixup_phandle() 912 const char *path; in overlay_symbol_update() local 939 if (!path) in overlay_symbol_update() 943 if (path_len < 1 || memchr(path, '\0', path_len) != &path[path_len - 1]) in overlay_symbol_update() 947 e = path + path_len; in overlay_symbol_update() 949 if (*path != '/') in overlay_symbol_update() [all …]
|
/scripts/gdb/ |
A D | vmlinux-gdb.py | 16 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "/scripts/gdb")
|
/scripts/kconfig/ |
A D | gconf.c | 109 GtkTreePath *path; in _select_menu() local 116 gtk_tree_view_expand_to_path(view, path); in _select_menu() 119 gtk_tree_path_free(path); in _select_menu() 682 gtk_tree_path_free(path); in renderer_edited() 751 GtkTreePath *path; in on_treeview2_button_press_event() local 760 if (path == NULL) in on_treeview2_button_press_event() 804 GtkTreePath *path; in on_treeview2_key_press_event() local 810 if (path == NULL) in on_treeview2_key_press_event() 815 gtk_tree_view_collapse_row(view, path); in on_treeview2_key_press_event() 862 GtkTreePath *path; in on_treeview1_button_press_event() local [all …]
|