Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 129) sorted by relevance

123456

/tools/perf/scripts/python/
Dsctop.py13 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]
Dsyscall-counts.py11 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]
Dsyscall-counts-by-pid.py10 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]
Dfailed-syscalls-by-pid.py11 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]
Dcompaction-times.py8 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 …]
Dexport-to-sqlite.py16 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/
Drun_vmtests33 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/
Drun_hugetlbfs_test.sh26 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/
Dfunc_stack_tracer.tc13 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
Dfgraph-filter-stack.tc19 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/
DMakefile15 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/
Dfw_lib.sh7 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/
Dtrace-event.c75 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()
Dtrace-event-info.c144 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 …]
Dtrace-event-read.c269 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/
Dtcp_client.py6 import sys, os, os.path, getopt
32 serverPort = int(sys.argv[1])
39 sys.exit(1)
50 sys.exit(0)
Dtest_flow_dissector.sh53 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
Dtcp_server.py6 import sys, os, os.path, getopt
77 sys.exit(0)
80 sys.exit(1)
/tools/testing/selftests/powerpc/eeh/
Deeh-functions.sh48 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
Deeh-basic.sh24 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/
Dcpufreq-bench_script.sh30 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/
Dfunctions.sh33 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/
Dpstore_crash_test16 echo 1 > /proc/sys/kernel/sysrq
18 echo 3 > /proc/sys/kernel/panic
/tools/testing/selftests/tc-testing/plugin-lib/
DrootPlugin.py2 import sys
18 print('This script must be run with root privileges', file=sys.stderr)
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py33 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 …]

123456