Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 59) sorted by relevance

123

/tools/testing/selftests/tc-testing/
Dtdc_config_local_template.py7 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')
Dtdc_multibatch.py11 import os
62 os.system("./tdc_batch.py -n {} -a {} -e {} -m {} {} {}".format(
Dtdc.py11 import os
47 plugindir = os.getenv('TDC_PLUGIN_DIR', './plugins')
48 for dirpath, dirnames, filenames in os.walk(plugindir):
98 if os.path.isfile(pgpath):
527 if not os.path.isfile(NAMES['TC']):
640 if not os.path.isfile(ff):
643 flist.append(os.path.abspath(ff))
649 for root, dirnames, filenames in os.walk(testdir):
651 candidate = os.path.abspath(os.path.join(root, filename))
746 if os.getenv('SUDO_UID') is not None:
[all …]
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py29 import os
104 if os.path.exists(file_name):
125 if os.path.exists(file_name):
144 if os.path.exists(file_name):
159 if os.path.exists(file_name):
174 if os.path.exists('cpu.csv'):
350 if os.path.exists('cpu.csv'):
353 os.system('grep -m 1 common_cpu cpu.csv > cpu{:0>3}.csv'.format(index))
354 os.system('grep CPU_{:0>3} cpu.csv >> cpu{:0>3}.csv'.format(index, index))
359 uid = os.environ.get('SUDO_UID')
[all …]
/tools/testing/selftests/bpf/
Dtest_bpftool.py7 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"]
64 if os.getuid() != 0:
Dtcp_server.py6 import sys, os, os.path, getopt
49 os.system(cmdStr)
Dtcp_client.py6 import sys, os, os.path, getopt
/tools/perf/util/
Dstat-display.c156 struct outstate *os = ctx; in new_line_std() local
158 os->newline = true; in new_line_std()
162 struct outstate *os) in do_new_line_std() argument
164 fputc('\n', os->fh); in do_new_line_std()
165 fputs(os->prefix, os->fh); in do_new_line_std()
166 aggr_printout(config, os->evsel, os->id, os->nr); in do_new_line_std()
168 fprintf(os->fh, " "); in do_new_line_std()
169 fprintf(os->fh, " "); in do_new_line_std()
176 struct outstate *os = ctx; in print_metric_std() local
177 FILE *out = os->fh; in print_metric_std()
[all …]
Dparse-regs-options.c17 char *s, *os = NULL, *p; in __parse_regs() local
38 s = os = strdup(str); in __parse_regs()
85 free(os); in __parse_regs()
Dparse-branch-options.c47 char *os = NULL; in parse_branch_str() local
56 s = os = strdup(str); in parse_branch_str()
89 free(os); in parse_branch_str()
/tools/cgroup/
Diocost_coef_gen.py25 import os
64 devname = os.path.basename(devname).decode('utf-8').strip()
69 devname = os.path.basename(os.path.dirname(parents[0]))
70 rdev = os.stat(f'/dev/{devname}').st_rdev
76 if os.path.isfile(path) and os.stat(path).st_size == size:
127 devname = os.path.basename(args.testdev)
128 rdev = os.stat(f'/dev/{devname}').st_rdev
/tools/testing/kunit/
Dkunit_kernel.py11 import os
102 linux_bin = os.path.join(build_dir, 'linux')
113 kconfig_path = os.path.join(build_dir, KCONFIG_PATH)
119 kunitconfig_path = os.path.join(build_dir, KUNITCONFIG_PATH)
125 outfile_path = os.path.join(build_dir, OUTFILE_PATH)
145 if not os.path.exists(kunitconfig_path):
169 if build_dir and not os.path.exists(build_dir):
170 os.mkdir(build_dir)
182 if os.path.exists(kconfig_path):
187 os.remove(kconfig_path)
Dkunit_json.py10 import os
62 os.path.join(root, result_path.name))
Dkunit.py12 import os
48 parts = os.path.realpath(parts).split('tools/testing/kunit')
252 os.chdir(get_kernel_root_path())
255 if not os.path.exists(cli_args.build_dir):
256 os.mkdir(cli_args.build_dir)
276 not os.path.exists(cli_args.build_dir)):
277 os.mkdir(cli_args.build_dir)
/tools/testing/selftests/exec/
Dbinfmt_script6 import os, subprocess
63 os.makedirs(dirpath, mode=0o755, exist_ok=True)
65 os.chmod(binary, 0o755)
73 os.chmod(script, 0o755)
95 os.unlink(script)
98 os.unlink(binary)
101 os.rmdir("/".join(elements))
/tools/testing/selftests/tc-testing/plugin-lib/
DrootPlugin.py1 import os
17 if os.geteuid():
/tools/perf/Documentation/
Dperf-kvm.txt6 perf-kvm - Tool to trace/measure kvm guest os
23 a performance counter profile of guest os in realtime
47 for use by perf report. As buildid is read from /sys/kernel/notes in os, then
81 Guest os root file system mount directory. Users mounts guest os
83 typically, sshfs. For example, start 2 guest os. The one's pid is 8888
90 Guest os /proc/kallsyms file copy. 'perf' kvm' reads it to get guest
91 kernel symbols. Users copy it out from guest os.
93 Guest os /proc/modules file copy. 'perf' kvm' reads it to get guest
94 kernel module information. Users copy it out from guest os.
96 Guest os kernel vmlinux.
/tools/hv/
Dlsvmbus4 import os
19 if not os.path.isdir(vmbus_sys_path):
63 for f in os.listdir(vmbus_sys_path):
/tools/perf/scripts/python/
Dsyscall-counts.py10 import os
13 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
Dfutex-contention.py15 import os
17 sys.path.append(os.environ['PERF_EXEC_PATH'] +
Dnet_dropmonitor.py6 import os
9 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
Dcheck-perf-trace.py12 import os
15 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
Dsctop.py13 import os, sys, time
20 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
Dsyscall-counts-by-pid.py10 import os, sys
12 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
/tools/power/pm-graph/
Dbootgraph.py29 import os
74 if os.path.exists('/proc/version'):
143 cmdline = '%s -cronjob' % os.path.abspath(sys.argv[0])
152 cmdline += ' %s "%s"' % (arg, os.path.abspath(next(args)))
156 cmdline += ' %s "%s"' % (arg, os.path.abspath(file))
161 cmdline += ' -o "%s"' % os.path.abspath(self.testdir)
179 if not os.path.exists('/etc/default/grub'):
185 if not os.path.exists(cfg):
292 os.path.basename(sysvals.dmesgfile))
378 os.path.basename(sysvals.ftracefile))
[all …]

123