| /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/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->inst == inst) { in nv50_vmm_part() 333 list_del(&join->head); in nv50_vmm_part() 334 kfree(join); in nv50_vmm_part() [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(self.OUTPUT_DIR, EXTERN_H), 'w') as f: [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/net/wireless/ti/wl1251/ |
| H A D | cmd.c | 232 struct cmd_join *join; in wl1251_cmd_join() local 236 join = kzalloc_obj(*join); 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->beacon_interval = beacon_interval; in wl1251_cmd_join() 256 join->dtim_interval = dtim_interval; in wl1251_cmd_join() [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/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_DIR, 'cgroup.c') [all …]
|
| /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() 315 pr_err("Join does not have 2 children: %x (%d)\n", in igt_syncmap_join_above() 316 join->bitmap, hweight32(join->bitmap)); in igt_syncmap_join_above() 321 if (__sync_child(join)[__sync_branch_idx(join, context)] != sync) { in igt_syncmap_join_above() local [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | dot2k.py | 34 return "\n".join(buff) 68 return '\n'.join(buff) 76 return '\n'.join(buff) 84 return '\n'.join(buff) 113 return '\n'.join(buff) 150 tp_proto_c = ", ".join([a + b for a, b in tp_args]) 151 tp_args_c = ", ".join([b for a, b in tp_args]) 154 return '\n'.join(buff) 296 return ["res = " + separator.join(rules) + ";"] 373 condition_str = " && ".join(condition [all...] |
| H A D | generator.py | 123 return '\n'.join(buff)
|
| /linux/scripts/ |
| H A D | rustdoc_test_gen.rs | 69 let joined_potential_components = potential_components.join("_") + ".rs"; in find_real_path() 71 .join("rust/kernel") in find_real_path() 72 .join(prefix) in find_real_path() 73 .join(&joined_potential_components) in find_real_path() 79 .join(prefix) in find_real_path() 80 .join(joined_potential_components), in find_real_path() 88 let prefix = prefix.join(components_prefix.join("_")); in find_real_path() 89 if srctree.join("rust/kernel").join( in find_real_path() [all...] |
| /linux/tools/net/ynl/pyynl/lib/ |
| H A D | doc_generator.py | 103 return self.headroom(level) + "[" + ", ".join(self.inline(i) for i in list_) + "]" 122 return "\n".join(lines) 132 return "\n".join(lines) 155 return "\n".join(lines) 172 return "\n".join(lines) 182 return "\n".join(lines) 226 return "\n".join(lines) 253 return "\n".join(lines) 282 return "\n".join(lines) 322 return "\n".join(lines) [all …]
|
| /linux/tools/docs/ |
| H A D | sphinx-build-wrapper | 63 sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR)) 105 join self.srctree. Finally, if requested, convert to abspath. 115 path = os.path.join(base, path) 126 config = os.path.join(self.srctree, ".config") 291 bin_dir = os.path.join(venv, "bin") 292 if not os.path.isfile(os.path.join(bin_dir, "activate")): 353 print(" ".join(cmd)) 368 css = os.path.join(self.srctree, css) 370 static_dir = os.path.join(output_dir, "_static") 423 pdf_from = os.path.join(from_dir, pdf_name) [all …]
|
| H A D | checktransupdate.py | 42 return "/".join(opaths) 173 linux_path = os.path.join(script_path, "../..") 191 ab_item = os.path.join(pwd, item) 237 linux_path = os.path.join(script_path, "../..") 279 os.path.join(linux_path, "Documentation"), ["translations", "output"], "rst" 290 # join the path parts back together 291 new_file = os.sep.join(new_path_parts)
|
| /linux/scripts/kconfig/tests/ |
| H A D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 70 shutil.copyfile(os.path.join(self._test_dir, dot_config), 71 os.path.join(temp_dir, '.config')) 113 with open(os.path.join(temp_dir, out_file)) as f: 123 print("[command]\n{}\n".format(' '.join(command))) 173 defconfig_path = os.path.join(self._test_dir, defconfig) 178 all_config_path = os.path.join(self._test_dir, all_config) 253 with open(os.path.join(self._test_dir, expected)) as f:
|
| /linux/rust/proc-macro2/ |
| H A D | extra.rs | 93 join: proc_macro::Span, 105 join: group.span(), in new() 122 pub fn join(&self) -> Span { in join() method 125 DelimSpanEnum::Compiler { join, .. } => Span::_new(imp::Span::Compiler(*join)), in join() 151 Debug::fmt(&self.join(), f) in fmt()
|
| /linux/tools/perf/scripts/python/ |
| H A D | export-to-sqlite.py | 399 ' FROM call_paths c INNER JOIN call_paths p ON p.id = c.parent_id') 424 ' FROM calls INNER JOIN call_paths ON call_paths.id = call_path_id') 459 ' INNER JOIN samples ON samples.id = ptwrite.id') 470 ' INNER JOIN samples ON samples.id = cbr.id') 480 ' INNER JOIN samples ON samples.id = mwait.id') 491 ' INNER JOIN samples ON samples.id = pwre.id') 500 ' INNER JOIN samples ON samples.id = exstop.id') 516 ' INNER JOIN samples ON samples.id = pwrx.id') 544 ' INNER JOIN selected_events ON selected_events.id = evsel_id' 565 ' INNER JOIN threads AS th_out ON th_out.id = context_switches.thread_out_id' [all …]
|
| H A D | export-to-postgresql.py | 561 ' FROM call_paths c INNER JOIN call_paths p ON p.id = c.parent_id') 586 ' FROM calls INNER JOIN call_paths ON call_paths.id = call_path_id') 621 ' INNER JOIN samples ON samples.id = ptwrite.id') 632 ' INNER JOIN samples ON samples.id = cbr.id') 642 ' INNER JOIN samples ON samples.id = mwait.id') 653 ' INNER JOIN samples ON samples.id = pwre.id') 662 ' INNER JOIN samples ON samples.id = exstop.id') 678 ' INNER JOIN samples ON samples.id = pwrx.id') 704 ' FULL JOIN mwait ON mwait.id = cbr.id' 705 ' FULL JOIN pwre ON pwre.id = cbr.id' [all …]
|
| /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']) 48 print(", ".join(sorted(categories))) 62 print("\n".join(str(s) for s in items))
|
| /linux/tools/lib/python/kdoc/ |
| H A D | enrich_formatter.py | 50 return "\n".join(indent + line for line in enriched.splitlines()) 70 usage_text = f"{prefix or 'usage: '} {prog} {' '.join(parts)}\n" 80 return ", ".join(action.option_strings)
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_join.sh | 1461 fail_test "got $count JOIN[s] syn tx expected $syn_tx" 1470 fail_test "got $count JOIN[s] syn tx create socket error expected $create" 1479 fail_test "got $count JOIN[s] syn tx bind error expected $bind" 1488 fail_test "got $count JOIN[s] syn tx connect error expected $connect" 1491 print_results "join Tx" ${rc} 1634 fail_test "got $count JOIN[s] syn rx expected $syn_nr" 1648 fail_test "got $count JOIN[s] synack rx expected $syn_ack_nr" 1658 fail_test "got $count JOIN[s] synack HMAC failure expected 0" 1667 fail_test "got $count JOIN[s] ack rx expected $ack_nr" 1676 fail_test "got $count JOIN[s] ack HMAC failure expected 0" [all …]
|
| /linux/Documentation/sphinx/ |
| H A D | maintainers_include.py | 146 doc_list = glob(os.path.join(self.base_dir, m.group(1))) 175 return self.re_doc.sub(", ".join(entries.values()), text) 235 details = ", ".join(entries.values()) 299 output += ",\n ".join(lines) + "\n" 332 docdir = os.path.dirname(os.path.join(env.srcdir, env.docname)) 361 fname = os.path.join(maint_parser.base_dir, "Documentation", f) 405 path = os.path.join(base_dir, "MAINTAINERS")
|
| /linux/Documentation/ |
| H A D | conf.py | 20 sys.path.insert(0, os.path.join(kern_doc_dir, "sphinx")) 23 sys.path.append(os.path.join(kern_doc_dir, "..", "tools")) 24 sys.path.append(os.path.join(kern_doc_dir, "..", "scripts")) 78 full = os.path.join(kern_doc_dir, p) 88 full = os.path.join(kern_doc_dir, p) 107 if os.path.exists(os.path.join(app.srcdir, fname + ".rst")): 117 fname = os.path.join(doc, "index") 118 if not os.path.exists(os.path.join(app.srcdir, fname + ".rst")): 608 rel = os.path.relpath(os.path.join(kern_doc_dir, 'sphinx-includes/subproject-index.rst'),
|
| /linux/tools/net/sunrpc/xdrgen/ |
| H A D | xdr_parse.py | 124 msg_parts.append(f"Expected one of: {', '.join(readable)}") 131 sys.stderr.write("\n".join(msg_parts) + "\n") 169 sys.stderr.write("\n".join(msg_parts) + "\n") 189 sys.stderr.write("\n".join(msg_parts) + "\n")
|