| /linux/tools/testing/selftests/damon/ |
| A D | _damon_sysfs.py | 3 import os 207 return os.path.join( 248 return os.path.join( 346 nr_targets_file = os.path.join( 360 nr_schemes_file = os.path.join( 392 nr_contexts_file = os.path.join(self.sysfs_dir(), 421 tried_regions_dir = os.path.join( 423 for filename in os.listdir( 426 if not os.path.isdir(tried_region_dir): 485 nr_contexts_file = os.path.join(self.sysfs_dir(), [all …]
|
| /linux/tools/perf/util/ |
| A D | stat-display.c | 387 fputs(os->prefix, os->fh); in __new_line_std_csv() 388 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in __new_line_std_csv() 484 fprintf(os->fh, "%s", os->prefix); in new_line_json() 485 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in new_line_json() 643 os->evsel->priv != os->evsel->evlist->selected->priv) in print_metric_header() 646 if (os->evsel->cgrp != os->cgrp) in print_metric_header() 826 out.ctx = os; in printout() 840 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in printout() 982 os->id = id; in print_counter_aggrdata() 1219 .ctx = &os, in print_metric_headers() [all …]
|
| /linux/scripts/ |
| A D | jobserver-exec | 10 import os, sys, errno 18 flags = os.environ['MAKEFLAGS'] 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) 36 writer = os.open(path, os.O_WRONLY) 41 reader = os.open("/proc/self/fd/%d" % (reader), 42 os.O_RDONLY | os.O_NONBLOCK) 47 slot = os.read(reader, 8) 55 os.write(writer, jobs) 69 os.environ['PARALLELISM'] = '%d' % (claim) 75 os.write(writer, jobs)
|
| A D | checktransupdate.py | 26 import os 46 pipe = os.popen(command) 76 pipe = os.popen(command) 87 pipe = os.popen(command) 100 if not os.path.isfile(opath): 134 script_path = os.path.dirname(os.path.abspath(__file__)) 152 for item in os.listdir(pwd): 198 script_path = os.path.dirname(os.path.abspath(__file__)) 258 logging.info(os.path.relpath(os.path.abspath(file), linux_path)) 261 files = list(map(lambda x: os.path.relpath(os.path.abspath(x), linux_path), files)) [all …]
|
| A D | diffconfig | 11 import sys, os 88 if "KBUILD_OUTPUT" in os.environ: 89 build_dir = os.environ["KBUILD_OUTPUT"]+"/" 138 devnull = os.open(os.devnull, os.O_WRONLY) 139 os.dup2(devnull, sys.stdout.fileno())
|
| /linux/drivers/block/drbd/ |
| A D | drbd_state.c | 955 ns.conn != os.conn && os.conn > C_CONNECTED) in is_valid_soft_transition() 967 os.conn < C_CONNECTED && os.pdsk > D_OUTDATED) in is_valid_soft_transition() 1195 !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) in sanitize_state() 1200 !(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE)) in sanitize_state() 1473 ascw->os = os; in _drbd_set_state() 1683 if ((os >= D_INCONSISTENT && os != D_UNKNOWN && os != D_OUTDATED) in lost_contact_to_peer_data() 1720 sib.os = os; in after_state_ch() 1733 if (!(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE) && in after_state_ch() 1880 if ((!os.aftr_isp && !os.peer_isp && !os.user_isp) && in after_state_ch() 2019 if ((os.conn > C_CONNECTED && os.conn < C_AHEAD) && in after_state_ch() [all …]
|
| /linux/tools/testing/selftests/devices/probe/ |
| A D | test_discoverable_devices.py | 19 import os 25 this_dir = os.path.dirname(os.path.realpath(__file__)) 41 for path, dirs, _ in os.walk(sysfs_devices): 51 for d in os.scandir(sysfs_usb_devices): 69 sysfs_dev_dir = os.path.dirname(sysfs_dev_dir) 85 sysfs_dev_dir = os.path.dirname(sysfs_dev_dir) 147 dirname = os.path.join( 150 return [os.path.realpath(dirname)] 298 if os.path.exists(platform_compatible_file): 340 if not os.path.exists(args.boards_dir): [all …]
|
| /linux/drivers/net/fddi/skfp/ |
| A D | hwmtm.c | 273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init() 449 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver() 450 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver() 451 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver() 453 smc->os.hwm.queued_rx_frames = smc->os.hwm.queued_txd_mb = 0 ; in init_fddi_driver() 455 smc->os.hwm.rx_break = 0 ; in init_fddi_driver() 1006 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = FALSE ; in mac_drv_rx_mode() 1676 smc->os.hwm.tx_data = in hwm_tx_frag() 1681 smc->os.hwm.tx_len) ; in hwm_tx_frag() 1686 if (smc->os.hwm.tx_mb) { in hwm_tx_frag() [all …]
|
| A D | skfddi.c | 265 smc->os.dev = dev; in skfp_init_one() 267 smc->os.pdev = *pdev; in skfp_init_one() 270 smc->os.dev = dev; in skfp_init_one() 304 smc->os.LocalRxBuffer, smc->os.LocalRxBufferDMA); in skfp_init_one() 332 lp->os.SharedMemSize, in skfp_remove_one() 333 lp->os.SharedMemAddr, in skfp_remove_one() 334 lp->os.SharedMemDMA); in skfp_remove_one() 340 lp->os.LocalRxBuffer, in skfp_remove_one() 613 bp = &smc->os; in skfp_interrupt() 1314 virt = (void *) (smc->os.SharedMemAddr + smc->os.SharedMemHeap); in mac_drv_get_space() [all …]
|
| /linux/tools/testing/selftests/drivers/sdsi/ |
| A D | sdsi_test.py | 9 import os 38 return os.path.isfile(kmemleak) 81 st = os.stat(folder + "guid") 85 st = os.stat(folder + "registers") 89 st = os.stat(folder + "provision_akc") 93 st = os.stat(folder + "provision_cap") 105 st = os.stat(folder + "registers") 108 st = os.stat(folder + "provision_akc") 119 rand_file = bytes(os.urandom(8)) 157 rand_file = bytes(os.urandom(1017)) [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| A D | test_bpftool_synctypes.py | 8 import os, sys 10 LINUX_ROOT = os.path.abspath(os.path.join(__file__, 11 os.pardir, os.pardir, os.pardir, os.pardir, os.pardir)) 12 BPFTOOL_DIR = os.getenv('BPFTOOL_DIR', 13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')) 14 BPFTOOL_BASHCOMP_DIR = os.getenv('BPFTOOL_BASHCOMP_DIR', 15 os.path.join(BPFTOOL_DIR, 'bash-completion')) 16 BPFTOOL_DOC_DIR = os.getenv('BPFTOOL_DOC_DIR', 17 os.path.join(BPFTOOL_DIR, 'Documentation')) 18 INCLUDE_DIR = os.getenv('INCLUDE_DIR', [all …]
|
| A D | test_bpftool.py | 7 import os 14 cur_dir = os.path.dirname(os.path.realpath(__file__)) 15 bpftool_dir = os.path.abspath(os.path.join(cur_dir, "..", "..", "..", "..", 17 os.environ["PATH"] = bpftool_dir + ":/usr/local/sbin:" + os.environ["PATH"] 69 if os.getuid() != 0:
|
| /linux/tools/power/x86/amd_pstate_tracer/ |
| A D | amd_pstate_trace.py | 24 import os 33 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "intel_pstate_tracer")) 68 if os.path.exists(file_name): 179 os.remove('cpu.csv') 277 location = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) 303 os.mkdir('results') 306 os.chdir('results') 307 if os.path.exists(test_name): 310 os.mkdir(test_name) 312 os.chdir(test_name) [all …]
|
| /linux/tools/testing/selftests/tc-testing/ |
| A D | tdc_config_local_template.py | 7 import os 9 ENVIR = os.environ.copy() 11 ENV_LD_LIBRARY_PATH = os.getenv('LD_LIBRARY_PATH', '') 12 ENV_OTHER_LIB = os.getenv('OTHER_LIB', '') 17 EXTRA_NAMES['SOME_BIN'] = os.path.join(os.getenv('OTHER_BIN', ''), 'some_bin')
|
| /linux/Documentation/ |
| A D | conf.py | 16 import os 44 sys.path.insert(0, os.path.abspath('sphinx')) 143 if 'SPHINX_IMGMATH' in os.environ: 144 env_sphinx_imgmath = os.environ['SPHINX_IMGMATH'] 284 if "DOCS_THEME" in os.environ: 285 html_theme = os.environ["DOCS_THEME"] 319 if "DOCS_CSS" in os.environ: 320 css = os.environ["DOCS_CSS"].split(" ") 450 for fn in os.listdir('.'): 451 doc = os.path.join(fn, "index") [all …]
|
| /linux/drivers/gpu/drm/ci/ |
| A D | check-patch.py | 11 import os 12 import os.path 16 repourl = "https://gitlab.freedesktop.org/%s.git" % os.environ["CI_MERGE_REQUEST_PROJECT_PATH"] 21 os.environ["GIT_DEPTH"] = "1000" 24 subprocess.check_call(["git", "fetch", "check-patch", os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NA… 29 … "check-patch/%s" % os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NAME"], "HEAD"], 50 "--types", os.environ["CHECKPATCH_TYPES"],
|
| /linux/scripts/clang-tools/ |
| A D | gen_compile_commands.py | 13 import os 67 os.path.realpath(args.directory), 86 exclude_dirs = [ os.path.join(directory, d) for d in _EXCLUDE_DIRS ] 88 for dirpath, dirnames, filenames in os.walk(directory, topdown=True): 96 yield os.path.join(dirpath, filename) 108 dir, base = os.path.split(path) 109 return os.path.join(dir, '.' + base + '.cmd') 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): [all …]
|
| /linux/tools/power/x86/intel_pstate_tracer/ |
| A D | intel_pstate_tracer.py | 29 import os 104 if os.path.exists(file_name): 125 if os.path.exists(file_name): 144 if os.path.exists(file_name): 366 os.remove('cpu.csv') 524 location = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) 550 os.mkdir('results') 554 os.chdir('results') 558 os.mkdir(testname) 561 os.chdir(testname) [all …]
|
| /linux/tools/testing/kunit/ |
| A D | kunit_kernel.py | 13 import os 31 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__)) 170 if not os.path.exists(path): 177 if os.path.isdir(path): 179 if not os.path.exists(path): 195 if os.path.isfile(config_path): 212 module_path = '.' + os.path.join(os.path.basename(QEMU_CONFIGS_DIR), os.path.basename(config_path)) 285 os.mkdir(build_dir) 297 if os.path.exists(old_path): 304 if not os.path.exists(old_path): [all …]
|
| /linux/drivers/scsi/elx/efct/ |
| A D | efct_hw.c | 50 struct efct *efct = hw->os; in efct_hw_read_max_dump_size() 246 hw->os = os; in efct_hw_setup() 278 if (sli_setup(&hw->sli, hw->os, pdev, ((struct efct *)os)->reg)) { in efct_hw_setup() 321 efc_log_info(hw->os, in efct_logfcfi() 554 efc_log_err(hw->os, in efct_hw_setup_io() 1784 efc_log_err(hw->os, in efct_hw_io_add_sge() 1791 efc_log_err(hw->os, in efct_hw_io_add_sge() 2577 efc_log_err(hw->os, in efct_hw_bls_send() 2626 efc_log_err(hw->os, in efct_hw_bls_send() 2835 efc_log_err(hw->os, in efct_els_hw_srrs_send() [all …]
|
| /linux/drivers/comedi/drivers/ni_routing/tools/ |
| A D | convert_csv_to_c.py | 7 import os, sys, re 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)) 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: 278 filename=os.path.join(self.OUTPUT_DIR, self.SET_C) 281 os.makedirs(os.path.join(self.OUTPUT_DIR, self.ITEMS_DIR)) 457 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H) 458 with open(os.path.join(self.OUTPUT_DIR, EXTERN_H), 'w') as f: 467 filename=os.path.join(self.OUTPUT_DIR, self.SET_C) [all …]
|
| /linux/Documentation/security/tpm/ |
| A D | xen-tpmfront.rst | 24 mini-os to reduce memory and processor overhead. 44 | mini-os/tpmback | 50 | mini-os/tpmfront | 55 | mini-os/tpmback | 61 | mini-os/tpm_tis | 77 * mini-os/tpmback: 78 Mini-os TPM backend driver. The Linux frontend driver 84 A mini-os stub domain that implements a vTPM. There is a 89 * mini-os/tpmfront: 90 Mini-os TPM frontend driver. The vTPM mini-os domain [all …]
|
| /linux/scripts/kconfig/tests/ |
| A D | conftest.py | 12 import os 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')) 74 env=dict(os.environ, **extra_env)) 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:
|
| /linux/Documentation/sphinx/ |
| A D | load_config.py | 4 import os 19 config_file = os.environ.get("SPHINX_CONF", None) 21 and os.path.normpath(namespace["__file__"]) != os.path.normpath(config_file) ): 22 config_file = os.path.abspath(config_file) 47 if os.path.isfile(config_file):
|
| /linux/tools/cgroup/ |
| A D | memcg_shrinker.py | 6 import os 13 for root, subdirs, _ in os.walk(cgroup_root): 15 path = os.path.join(root, cgroup) 16 ino = os.stat(path).st_ino 26 for root, subdirs, _ in os.walk(shrinker_debugfs): 28 count_path = os.path.join(root, shrinker, "count")
|