/tools/testing/selftests/tc-testing/ |
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')
|
D | tdc_multibatch.py | 11 import os 62 os.system("./tdc_batch.py -n {} -a {} -e {} -m {} {} {}".format(
|
D | tdc.py | 11 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/ |
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): 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/ |
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"] 64 if os.getuid() != 0:
|
D | tcp_server.py | 6 import sys, os, os.path, getopt 49 os.system(cmdStr)
|
D | tcp_client.py | 6 import sys, os, os.path, getopt
|
/tools/perf/util/ |
D | stat-display.c | 156 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 …]
|
D | parse-regs-options.c | 17 char *s, *os = NULL, *p; in __parse_regs() local 38 s = os = strdup(str); in __parse_regs() 85 free(os); in __parse_regs()
|
D | parse-branch-options.c | 47 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/ |
D | iocost_coef_gen.py | 25 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/ |
D | kunit_kernel.py | 11 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)
|
D | kunit_json.py | 10 import os 62 os.path.join(root, result_path.name))
|
D | kunit.py | 12 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/ |
D | binfmt_script | 6 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/ |
D | rootPlugin.py | 1 import os 17 if os.geteuid():
|
/tools/perf/Documentation/ |
D | perf-kvm.txt | 6 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/ |
D | lsvmbus | 4 import os 19 if not os.path.isdir(vmbus_sys_path): 63 for f in os.listdir(vmbus_sys_path):
|
/tools/perf/scripts/python/ |
D | syscall-counts.py | 10 import os 13 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
|
D | futex-contention.py | 15 import os 17 sys.path.append(os.environ['PERF_EXEC_PATH'] +
|
D | net_dropmonitor.py | 6 import os 9 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
|
D | check-perf-trace.py | 12 import os 15 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
|
D | sctop.py | 13 import os, sys, time 20 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
|
D | syscall-counts-by-pid.py | 10 import os, sys 12 sys.path.append(os.environ['PERF_EXEC_PATH'] + \
|
/tools/power/pm-graph/ |
D | bootgraph.py | 29 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 …]
|