/linux-master/tools/testing/selftests/tc-testing/ |
H A D | tdc_config_local_template.py | 7 import os namespace 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-master/arch/m68k/ifpsp060/ |
H A D | Makefile | 5 obj-y := fskeleton.o iskeleton.o os.o
|
/linux-master/scripts/ |
H 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 [all...] |
/linux-master/arch/x86/um/ |
H A D | syscalls_32.c | 3 #include <os.h>
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | acpi.h | 4 #include <core/os.h>
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | ioctl.h | 4 #include <core/os.h>
|
/linux-master/tools/testing/kunit/qemu_configs/ |
H A D | riscv.py | 2 import os namespace 3 import os.path namespace 9 if not os.path.isfile(OPENSBI_PATH):
|
/linux-master/drivers/gpu/drm/ci/ |
H A D | check-patch.py | 11 import os namespace 12 import os.path namespace 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_NAME"]], 29 "check-patch/%s" % os.environ["CI_MERGE_REQUEST_TARGET_BRANCH_NAME"], "HEAD"], 50 "--types", os.environ["CHECKPATCH_TYPES"],
|
/linux-master/tools/testing/selftests/tc-testing/plugin-lib/ |
H A D | rootPlugin.py | 1 import os namespace 17 if os.geteuid():
|
/linux-master/tools/tracing/rtla/sample/ |
H A D | timerlat_load.py | 25 import os namespace 40 os.sched_setaffinity(0, affinity_mask); 47 param = os.sched_param(int(args.prio)) 48 os.sched_setscheduler(0, os.SCHED_FIFO, param)
|
/linux-master/drivers/comedi/drivers/ni_routing/tools/ |
H A D | make_blank_csv.py | 4 from os import path 5 import os, csv namespace 14 os.makedirs(CSV_DIR)
|
/linux-master/tools/testing/selftests/drivers/sdsi/ |
H A D | sdsi_test.py | 9 import os namespace 38 return os.path.isfile(kmemleak) 59 assert os.path.isfile(folder + "guid") == True 60 assert os.path.isfile(folder + "provision_akc") == True 61 assert os.path.isfile(folder + "provision_cap") == True 62 assert os.path.isfile(folder + "state_certificate") == True 63 assert os.path.isfile(folder + "registers") == True 67 mode = os.stat(folder + "guid").st_mode & 0o777 69 mode = os.stat(folder + "registers").st_mode & 0o777 71 mode = os [all...] |
/linux-master/Documentation/sphinx/ |
H A D | load_config.py | 4 import os namespace 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-master/tools/cgroup/ |
H A D | memcg_shrinker.py | 6 import os namespace 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")
|
/linux-master/tools/testing/selftests/damon/ |
H A D | _damon_sysfs.py | 3 import os namespace 45 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern') 49 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0]) 53 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1]) 56 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'), 60 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'), 65 os.path.join(self.sysfs_dir(), 'age', 'min'), self.age[0]) 69 os.path.join(self.sysfs_dir(), 'age', 'max'), self.age[1]) 85 return os.path.join(self.scheme.sysfs_dir(), 'quotas') 88 err = write_file(os [all...] |
/linux-master/tools/testing/selftests/devices/ |
H A D | test_discoverable_devices.py | 19 import os namespace 35 for path, dirs, _ in os.walk(sysfs_devices): 38 pci_controllers.append(os.path.join(path, d)) 45 for d in os.scandir(sysfs_usb_devices): 47 usb_controllers.append(os.path.realpath(d.path)) 58 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 63 sysfs_dev_dir = os.path.dirname(sysfs_dev_dir) 67 with open(os.path.join(sysfs_dev_dir, "firmware_node", "uid")) as f: 73 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 79 with open(os [all...] |
/linux-master/tools/perf/util/ |
H A D | stat-display.c | 374 struct outstate *os = ctx; local 376 os->newline = true; 380 struct outstate *os) 382 fputc('\n', os->fh); 383 if (os->prefix) 384 fputs(os->prefix, os->fh); 385 aggr_printout(config, os->evsel, os->id, os 379 __new_line_std_csv(struct perf_stat_config *config, struct outstate *os) argument 388 __new_line_std(struct outstate *os) argument 393 do_new_line_std(struct perf_stat_config *config, struct outstate *os) argument 406 struct outstate *os = ctx; local 431 struct outstate *os = ctx; local 444 struct outstate *os = ctx; local 466 struct outstate *os = ctx; local 477 struct outstate *os = ctx; local 500 struct outstate *os = ctx; local 520 struct outstate *os = ctx; local 560 struct outstate *os = ctx; local 584 struct outstate *os = ctx; local 606 struct outstate *os = ctx; local 635 struct outstate *os = ctx; local 778 printout(struct perf_stat_config *config, struct outstate *os, double uval, u64 run, u64 ena, double noise, int aggr_idx) argument 966 print_counter_aggrdata(struct perf_stat_config *config, struct evsel *counter, int aggr_idx, struct outstate *os) argument 1017 print_metric_begin(struct perf_stat_config *config, struct evlist *evlist, struct outstate *os, int aggr_idx) argument 1042 print_metric_end(struct perf_stat_config *config, struct outstate *os) argument 1057 print_aggr(struct perf_stat_config *config, struct evlist *evlist, struct outstate *os) argument 1081 print_aggr_cgroup(struct perf_stat_config *config, struct evlist *evlist, struct outstate *os) argument 1111 print_counter(struct perf_stat_config *config, struct evsel *counter, struct outstate *os) argument 1125 print_no_aggr_metric(struct perf_stat_config *config, struct evlist *evlist, struct outstate *os) argument 1201 struct outstate os = { local 1476 print_percore(struct perf_stat_config *config, struct evsel *counter, struct outstate *os) argument 1524 print_cgroup_counter(struct perf_stat_config *config, struct evlist *evlist, struct outstate *os) argument 1552 struct outstate os = { local [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_state.c | 25 union drbd_state os; member in struct:after_state_chg_work 280 static void after_state_ch(struct drbd_device *device, union drbd_state os, 285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns); 286 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os, 464 * @os: old (current) state. 468 union drbd_state os, union drbd_state ns) 470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && 471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || 472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || 473 (os 467 cl_wide_st_chg(struct drbd_device *device, union drbd_state os, union drbd_state ns) argument 481 apply_mask_val(union drbd_state os, union drbd_state mask, union drbd_state val) argument 520 union drbd_state os, ns; local 568 union drbd_state os, ns; local 733 print_st_err(struct drbd_device *device, union drbd_state os, union drbd_state ns, enum drbd_state_rv err) argument 743 print_state_change(char *pb, union drbd_state os, union drbd_state ns, enum chg_state_flags flags) argument 774 drbd_pr_state_change(struct drbd_device *device, union drbd_state os, union drbd_state ns, enum chg_state_flags flags) argument 799 conn_pr_state_change(struct drbd_connection *connection, union drbd_state os, union drbd_state ns, enum chg_state_flags flags) argument 912 is_valid_soft_transition(union drbd_state os, union drbd_state ns, struct drbd_connection *connection) argument 1014 is_valid_transition(union drbd_state os, union drbd_state ns) argument 1052 sanitize_state(struct drbd_device *device, union drbd_state os, union drbd_state ns, enum sanitize_state_warnings *warn) argument 1268 union drbd_state os; local 1681 lost_contact_to_peer_data(enum drbd_disk_state os, enum drbd_disk_state ns) argument 1708 after_state_ch(struct drbd_device *device, union drbd_state os, union drbd_state ns, enum chg_state_flags flags, struct drbd_state_change *state_change) argument 2118 union drbd_dev_state os, cs = { local 2164 union drbd_state ns, os; local 2206 union drbd_state ns, os, ns_max = { }; local 2299 union drbd_state ns_max, ns_min, os; local [all...] |
/linux-master/scripts/gdb/ |
H A D | vmlinux-gdb.py | 14 import os namespace 16 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)) + "/scripts/gdb")
|
/linux-master/scripts/clang-tools/ |
H A D | gen_compile_commands.py | 13 import os namespace 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 [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_bpftool.py | 7 import os namespace 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:
|
H A D | test_bpftool_synctypes.py | 8 import os, sys namespace 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 [all...] |
/linux-master/Documentation/ |
H A D | conf.py | 16 import os namespace 43 # documentation root, use os.path.abspath to make it absolute, like shown here. 44 sys.path.insert(0, os.path.abspath('sphinx')) 141 if 'SPHINX_IMGMATH' in os.environ: 142 env_sphinx_imgmath = os.environ['SPHINX_IMGMATH'] 282 if "DOCS_THEME" in os.environ: 283 html_theme = os.environ["DOCS_THEME"] 317 if "DOCS_CSS" in os.environ: 318 css = os.environ["DOCS_CSS"].split(" ") 448 for fn in os [all...] |
/linux-master/drivers/net/fddi/skfp/ |
H A D | hwmtm.c | 263 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) 273 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; 276 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, 356 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + 393 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; 426 mb = smc->os.hwm.mbuf_pool.mb_start ; 427 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; 449 smc->os.hwm.llc_rx_pipe = smc->os [all...] |
/linux-master/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 24 import os namespace 33 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "intel_pstate_tracer")) 68 if os.path.exists(file_name): 85 if os.path.exists(file_name): 100 if os.path.exists(file_name): 178 if os.path.exists('cpu.csv'): 179 os.remove('cpu.csv') 277 location = os.path.realpath(os [all...] |