/tools/perf/scripts/python/ |
D | sctop.py | 13 import os, sys, time 20 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 33 if len(sys.argv) > 3: 34 sys.exit(usage) 36 if len(sys.argv) > 2: 37 for_comm = sys.argv[1] 38 interval = int(sys.argv[2]) 39 elif len(sys.argv) > 1: 41 interval = int(sys.argv[1]) 43 for_comm = sys.argv[1]
|
D | syscall-counts.py | 11 import sys 13 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 24 if len(sys.argv) > 2: 25 sys.exit(usage) 27 if len(sys.argv) > 1: 28 for_comm = sys.argv[1]
|
D | syscall-counts-by-pid.py | 10 import os, sys 12 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 24 if len(sys.argv) > 2: 25 sys.exit(usage) 27 if len(sys.argv) > 1: 29 for_pid = int(sys.argv[1]) 31 for_comm = sys.argv[1]
|
D | failed-syscalls-by-pid.py | 11 import sys 13 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 25 if len(sys.argv) > 2: 26 sys.exit(usage) 28 if len(sys.argv) > 1: 30 for_pid = int(sys.argv[1]) 32 for_comm = sys.argv[1]
|
D | compaction-times.py | 8 import sys 138 sys.stderr.write("missing start compaction event for pid %d\n" % pid) 147 sys.stderr.write("missing start compaction event for pid %d\n" % pid) 192 sys.stdout.write("%d[%s].%d: %s\n" % (self.pid, self.comm, i+1, pelem)) 202 sys.stdout.write("%d[%s]: %s\n" % (self.pid, self.comm, self.val)) 206 sys.stdout.write("total: %s\n" % chead.str()) 249 sys.stdout.write(usage) 250 sys.stdout.write("\n") 251 sys.stdout.write("-h display this help\n") 252 sys.stdout.write("-p display by process\n") [all …]
|
D | export-to-sqlite.py | 16 import sys 73 if not "pyside-version-1" in sys.argv: 83 sys.path.append(os.environ['PERF_EXEC_PATH'] + \ 95 print(*args, file=sys.stderr, **keyword_args) 108 if (len(sys.argv) < 2): 111 dbname = sys.argv[1] 113 if (len(sys.argv) >= 3): 114 columns = sys.argv[2] 123 for i in range(3,len(sys.argv)): 124 if (sys.argv[i] == "calls"): [all …]
|
/tools/testing/selftests/vm/ |
D | run_vmtests | 33 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages` 38 echo 3 > /proc/sys/vm/drop_caches 39 echo $(( $lackpgs + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages 75 shmmax=`cat /proc/sys/kernel/shmmax` 76 shmall=`cat /proc/sys/kernel/shmall` 77 echo 268435456 > /proc/sys/kernel/shmmax 78 echo 4194304 > /proc/sys/kernel/shmall 89 echo $shmmax > /proc/sys/kernel/shmmax 90 echo $shmall > /proc/sys/kernel/shmall 146 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
|
/tools/testing/selftests/memfd/ |
D | run_hugetlbfs_test.sh | 26 nr_hugepgs=`cat /proc/sys/vm/nr_hugepages` 34 echo 3 > /proc/sys/vm/drop_caches 35 echo $(( $hpages_needed + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages 50 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages 67 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
|
/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_stack_tracer.tc | 13 echo 1 > /proc/sys/kernel/stack_tracer_enabled 23 echo 0 > /proc/sys/kernel/stack_tracer_enabled 29 echo 1 > /proc/sys/kernel/stack_tracer_enabled 39 echo 0 > /proc/sys/kernel/stack_tracer_enabled
|
D | fgraph-filter-stack.tc | 19 if [ -e /proc/sys/kernel/stack_tracer_enabled ]; then 20 echo 0 > /proc/sys/kernel/stack_tracer_enabled 51 echo 1 > /proc/sys/kernel/stack_tracer_enabled 70 echo 0 > /proc/sys/kernel/stack_tracer_enabled
|
/tools/perf/arch/x86/ |
D | Makefile | 15 sys := $(srctree)/tools/perf/arch/x86/entry/syscalls macro 16 systbl := $(sys)/syscalltbl.sh 21 $(header): $(sys)/syscall_64.tbl $(systbl) 22 $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
|
/tools/testing/selftests/firmware/ |
D | fw_lib.sh | 7 DIR=/sys/devices/virtual/misc/test_firmware 127 echo -n "$FWPATH" >/sys/module/firmware_class/parameters/path 179 echo "$OLD_TIMEOUT" >/sys/class/firmware/timeout 184 printf '\000' >/sys/module/firmware_class/parameters/path 186 echo -n "$OLD_FWPATH" >/sys/module/firmware_class/parameters/path 216 if [ -d /sys/class/firmware/ ]; then
|
/tools/perf/util/ |
D | trace-event.c | 75 tp_format(const char *sys, const char *name) in tp_format() argument 77 char *tp_dir = get_events_file(sys); in tp_format() 95 tep_parse_format(pevent, &event, data, size, sys); in tp_format() 105 trace_event__tp_format(const char *sys, const char *name) in trace_event__tp_format() argument 110 return tp_format(sys, name); in trace_event__tp_format()
|
D | trace-event-info.c | 144 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps) in name_in_tp_list() argument 147 if (!strcmp(sys, tps->name)) in name_in_tp_list() 161 static int copy_event_system(const char *sys, struct tracepoint_path *tps) in copy_event_system() argument 171 dir = opendir(sys); in copy_event_system() 173 pr_debug("can't read directory '%s'", sys); in copy_event_system() 181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 203 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 242 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps) in system_in_tp_list() argument 245 if (!strcmp(sys, tps->system)) in system_in_tp_list() 258 char *sys; in record_event_files() local [all …]
|
D | trace-event-read.c | 269 static int read_event_file(struct tep_handle *pevent, char *sys, in read_event_file() argument 285 ret = parse_event_file(pevent, buf, size, sys); in read_event_file() 314 char *sys; in read_event_files() local 323 sys = read_string(); in read_event_files() 324 if (sys == NULL) in read_event_files() 331 ret = read_event_file(pevent, sys, size); in read_event_files() 333 free(sys); in read_event_files() 337 free(sys); in read_event_files()
|
/tools/testing/selftests/bpf/ |
D | tcp_client.py | 6 import sys, os, os.path, getopt 32 serverPort = int(sys.argv[1]) 39 sys.exit(1) 50 sys.exit(0)
|
D | test_flow_dissector.sh | 53 if /bin/mount | grep /sys/fs/bpf > /dev/null; then 58 /bin/mount bpffs /sys/fs/bpf -t bpf 66 echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter 67 echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter 68 echo 0 > /proc/sys/net/ipv4/conf/lo/rp_filter
|
D | tcp_server.py | 6 import sys, os, os.path, getopt 77 sys.exit(0) 80 sys.exit(1)
|
/tools/testing/selftests/powerpc/eeh/ |
D | eeh-functions.sh | 48 if ! test -e /sys/bus/pci/devices/$dev/ ; then 54 echo $dev >/sys/kernel/debug/powerpc/eeh_dev_break 59 echo $dev >/sys/kernel/debug/powerpc/eeh_dev_check
|
D | eeh-basic.sh | 24 echo 5000 > /sys/kernel/debug/powerpc/eeh_max_freezes 32 for dev in `ls -1 /sys/bus/pci/devices/ | grep '\.0$'` ; do
|
/tools/power/cpupower/bench/ |
D | cpufreq-bench_script.sh | 30 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 32 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold) 33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate)
|
/tools/testing/selftests/livepatch/ |
D | functions.sh | 33 DYNAMIC_DEBUG=$(grep '^kernel/livepatch' /sys/kernel/debug/dynamic_debug/control | \ 39 echo -n "$DYNAMIC_DEBUG" > /sys/kernel/debug/dynamic_debug/control 49 cat <<-EOF > /sys/kernel/debug/dynamic_debug/control 195 echo 0 > /sys/kernel/livepatch/"$mod"/enabled 211 echo "$ret" > /sys/module/"$mod"/parameters/pre_patch_ret
|
/tools/testing/selftests/pstore/ |
D | pstore_crash_test | 16 echo 1 > /proc/sys/kernel/sysrq 18 echo 3 > /proc/sys/kernel/panic
|
/tools/testing/selftests/tc-testing/plugin-lib/ |
D | rootPlugin.py | 2 import sys 18 print('This script must be run with root privileges', file=sys.stderr)
|
/tools/power/x86/intel_pstate_tracer/ |
D | intel_pstate_tracer.py | 33 import sys 385 sys.exit(2) 395 sys.exit(2) 405 sys.exit(2) 415 sys.exit(2) 425 sys.exit(2) 437 sys.exit(2) 502 sys.exit(0) 519 …opts, args = getopt.getopt(sys.argv[1:],"ht:i:c:n:m:",["help","trace_file=","interval=","cpu=","na… 522 sys.exit(2) [all …]
|