/linux/tools/testing/selftests/damon/ |
H A D | _damon_sysfs.py | 60 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern') 64 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0]) 68 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1]) 71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'), 75 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'), 80 os.path.join(self.sysfs_dir(), 'age', 'min'), self.age[0]) 84 os.path.join(self.sysfs_dir(), 'age', 'max'), self.age[1]) 108 return os.path.join(self.quota.sysfs_dir(), 'goals', '%d' % self.idx) 111 err = write_file(os.path.join(self.sysfs_dir(), 'target_metric'), 115 err = write_file(os.path.join(sel [all...] |
/linux/drivers/comedi/drivers/ni_routing/tools/ |
H A D | convert_csv_to_c.py | 56 lines = '\n'.join(lines) 113 return '\n'.join(lines) 152 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 241 sheet_filename = os.path.join(self.ITEMS_DIR,'{}.c'.format(S)) 258 with open(os.path.join(self.OUTPUT_DIR, sheet_filename), 'w') as f: 259 f.write('\n'.join(s_chunks)) 262 with open(os.path.join(self.OUTPUT_DIR, self.MKFILE_SEGMENTS), 'w') as f: 265 f.write('\n'.join(objs)) 268 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H) 269 with open(os.path.join(sel [all...] |
H A D | convert_py_to_csv.py | 34 csv_fname = path.join(CSV_DIR, name + '.csv') 54 os.makedirs(path.join(CSV_DIR,d)) 59 create_csv(path.join('route_values',family), dst_src_map, iter_src_values) 62 create_csv(path.join('device_routes',device), dst_src_map, iter_src)
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmmnv50.c | 147 struct nvkm_vmm_join *join; in nv50_vmm_pgd_pde() local 154 list_for_each_entry(join, &vmm->join, head) { in nv50_vmm_pgd_pde() 155 nvkm_kmap(join->inst); in nv50_vmm_pgd_pde() 156 nvkm_wo64(join->inst, pdeo, data); in nv50_vmm_pgd_pde() 157 nvkm_done(join->inst); in nv50_vmm_pgd_pde() 329 struct nvkm_vmm_join *join; in nv50_vmm_part() local 331 list_for_each_entry(join, &vmm->join, head) { in nv50_vmm_part() 332 if (join in nv50_vmm_part() 344 struct nvkm_vmm_join *join; nv50_vmm_join() local [all...] |
H A D | vmmgk20a.c | 38 .join = gf100_vmm_join, 53 .join = gf100_vmm_join,
|
H A D | vmmgm20b.c | 26 .join = gm200_vmm_join, 42 .join = gm200_vmm_join,
|
H A D | vmmgk104.c | 69 .join = gf100_vmm_join, 84 .join = gf100_vmm_join,
|
/linux/scripts/ |
H A D | rustdoc_test_gen.rs | 62 let joined_potential_components = potential_components.join("_") + ".rs"; in find_real_path() 64 .join("rust/kernel") in find_real_path() 65 .join(prefix) in find_real_path() 66 .join(&joined_potential_components) in find_real_path() 72 .join(prefix) in find_real_path() 73 .join(joined_potential_components), in find_real_path() 81 let prefix = prefix.join(components_prefix.join("_")); in find_real_path() 82 if srctree.join("rust/kernel").join( in find_real_path() [all...] |
H A D | checktransupdate.py | 40 return "/".join(opaths) 171 linux_path = os.path.join(script_path, "..") 189 ab_item = os.path.join(pwd, item) 235 linux_path = os.path.join(script_path, "..") 277 os.path.join(linux_path, "Documentation"), ["translations", "output"], "rst" 288 # join the path parts back together 289 new_file = os.sep.join(new_path_parts)
|
H A D | test_doc_build.py | 215 self.log("$ " + " ".join(cmd), verbose) 233 cmd=" ".join(cmd), 270 ver = ".".join(map(str, cur_ver)) 288 pip = os.path.join(venv_dir, "bin/pip") 312 bin_dir = os.path.join(venv_dir, "bin") 409 DEFAULT_VERS += "\n - ".join(map(lambda v: f"{v[0]}.{v[1]}.{v[2]}",
|
/linux/tools/testing/selftests/devices/probe/ |
H A D | test_discoverable_devices.py | 26 sys.path.append(os.path.join(this_dir, "../../kselftest/")) 44 pci_controllers.append(os.path.join(path, d)) 64 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 80 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 89 with open(os.path.join(sysfs_dev_dir, "firmware_node", "uid")) as f: 95 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 101 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 147 dirname = os.path.join( 156 path_glob = os.path.join(path_glob, pci_dev_sysfs_fmt.format(dev_func)) 158 dir_list = glob.glob(os.path.join(parent_sysf [all...] |
/linux/drivers/net/wireless/ti/wl1251/ |
H A D | cmd.c | 232 struct cmd_join *join; in wl1251_cmd_join() local 236 join = kzalloc(sizeof(*join), GFP_KERNEL); in wl1251_cmd_join() 237 if (!join) in wl1251_cmd_join() 240 wl1251_debug(DEBUG_CMD, "cmd join%s ch %d %d/%d", in wl1251_cmd_join() 245 bssid = (u8 *) &join->bssid_lsb; in wl1251_cmd_join() 249 join->rx_config_options = wl->rx_config; in wl1251_cmd_join() 250 join->rx_filter_options = wl->rx_filter; in wl1251_cmd_join() 252 join->basic_rate_set = RATE_MASK_1MBPS | RATE_MASK_2MBPS | in wl1251_cmd_join() 255 join in wl1251_cmd_join() [all...] |
/linux/tools/testing/selftests/bpf/ |
H A D | test_bpftool_synctypes.py | 10 LINUX_ROOT = os.path.abspath(os.path.join(__file__, 13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')) 15 os.path.join(BPFTOOL_DIR, 'bash-completion')) 17 os.path.join(BPFTOOL_DIR, 'Documentation')) 19 os.path.join(LINUX_ROOT, 'tools/include')) 304 filename = os.path.join(BPFTOOL_DIR, 'main.h') 330 filename = os.path.join(BPFTOOL_DOC_DIR, 'substitutions.rst') 353 filename = os.path.join(BPFTOOL_DIR, 'prog.c') 366 filename = os.path.join(BPFTOOL_DIR, 'map.c') 375 filename = os.path.join(BPFTOOL_DI [all...] |
/linux/tools/testing/kunit/ |
H A D | kunit_kernel.py | 33 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs') 67 print('Populating config with:\n$', ' '.join(command)) 82 print('Building with:\n$', ' '.join(command)) 121 kernel_path = os.path.join(build_dir, self._kernel_path) 126 '-append', ' '.join(params + [self._kernel_command_line]), 133 # Note: shlex.join() does what we want, but requires python 3.8+. 134 print('Running tests with:\n$', ' '.join(shlex.quote(arg) for arg in qemu_command)) 154 linux_bin = os.path.join(build_dir, 'linux') 156 print('Running tests with:\n$', linux_bin, ' '.join(shlex.quote(arg) for arg in params)) 164 return os.path.join(build_di [all...] |
/linux/tools/verification/rvgen/rvgen/ |
H A D | dot2k.py | 46 return '\n'.join(buff) 52 return '\n'.join(buff) 58 return '\n'.join(buff) 84 return '\n'.join(buff) 112 tp_proto_c = ", ".join([a+b for a,b in tp_args]) 113 tp_args_c = ", ".join([b for a,b in tp_args]) 116 return '\n'.join(buff)
|
H A D | generator.py | 19 os.path.join(os.path.dirname(__file__), "templates", self.template_dir) 34 kernel_path = os.path.join("../..", self.rv_dir) 43 kernel_path = os.path.join("/lib/modules/%s/build" % platform.release(), self.rv_dir) 47 if os.path.exists(os.path.join(kernel_path, "rv_trace.h")): 66 path = os.path.join(self.abs_template_dir, file) 71 path = os.path.join(self.abs_template_dir, "..", file) 127 return '\n'.join(buff) 142 file_to_patch = os.path.join(self.rv_dir, file) 199 path = os.path.join(self.rv_dir, "monitors", path) 220 path = os.path.join(sel [all...] |
H A D | ltl2k.py | 44 return '_'.join([x[:2] for x in s.lower().split('_') if x not in skip]) 211 return '\n'.join(buff) 225 return '\n'.join(buff) 259 return '\n'.join(buf)
|
/linux/tools/net/ynl/pyynl/ |
H A D | ynl_gen_rst.py | 102 return headroom(level) + "[" + ", ".join(inline(i) for i in list_) + "]" 123 return "\n".join(lines) 133 return "\n".join(lines) 151 return "\n".join(lines) 164 return "\n".join(lines) 173 return "\n".join(lines) 207 return "\n".join(lines) 232 return "\n".join(lines) 257 return "\n".join(lines) 288 return "\n".join(line [all...] |
/linux/scripts/kconfig/tests/ |
H A D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 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: 104 print("[command]\n{}\n".format(' '.join(command))) 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:
|
/linux/tools/testing/selftests/drivers/net/ |
H A D | netpoll_basic.py | 141 random_suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) 258 BPF_THREAD.join() 261 def bpftrace_any_hit(join: bool) -> bool: 267 if join: 269 BPF_THREAD.join() 291 if bpftrace_any_hit(join=True): 304 if not BPF_THREAD.is_alive() or bpftrace_any_hit(join=False):
|
/linux/tools/testing/selftests/tc-testing/ |
H A D | tdc_helper.py | 37 print(curcase['id'] + ': (' + ', '.join(curcase['category']) + ") " + curcase['name']) 44 print(", ".join(str(s) for s in categories)) 58 print("\n".join(str(s) for s in items))
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_syncmap.c | 288 * Each pass the common prefix shrinks and we have to insert a join. in igt_syncmap_join_above() 289 * Each join will only contain two branches, the latest of which in igt_syncmap_join_above() 298 struct i915_syncmap *join; in igt_syncmap_join_above() local 304 join = sync->parent; in igt_syncmap_join_above() 305 if (!join) /* very first insert will have no parents */ in igt_syncmap_join_above() 308 if (!join->height) { in igt_syncmap_join_above() 314 if (hweight32(join->bitmap) != 2) { in igt_syncmap_join_above() 316 join->bitmap, hweight32(join->bitmap)); in igt_syncmap_join_above() 321 if (__sync_child(join)[__sync_branch_id in igt_syncmap_join_above() local [all...] |
/linux/scripts/clang-tools/ |
H A D | gen_compile_commands.py | 86 exclude_dirs = [ os.path.join(directory, d) for d in _EXCLUDE_DIRS ] 96 yield os.path.join(dirpath, filename) 109 return os.path.join(dir, '.' + base + '.cmd') 176 abs_path = os.path.realpath(os.path.join(root_directory, file_path))
|
/linux/Documentation/sphinx/ |
H A D | kernel_abi.py | 46 sys.path.insert(0, os.path.join(srctree, "scripts/lib/abi")) 53 path = os.path.join(srctree, "Documentation/ABI") 150 fname = os.path.join(srctree, f)
|
/linux/tools/cgroup/ |
H A D | memcg_shrinker.py | 15 path = os.path.join(root, cgroup) 28 count_path = os.path.join(root, shrinker, "count")
|