Home
last modified time | relevance | path

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

1234567

/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 …]
Dflamegraph.py18 import sys
53 file=sys.stderr)
54 sys.exit(1)
89 print("Error reading template file: {}".format(e), file=sys.stderr)
90 sys.exit(1)
97 with io.open(sys.stdout.fileno(), "w", encoding="utf-8", closefd=False) as out:
105 print("Error writing output file: {}".format(e), file=sys.stderr)
106 sys.exit(1)
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
83 shmmax=`cat /proc/sys/kernel/shmmax`
84 shmall=`cat /proc/sys/kernel/shmall`
85 echo 268435456 > /proc/sys/kernel/shmmax
86 echo 4194304 > /proc/sys/kernel/shmall
97 echo $shmmax > /proc/sys/kernel/shmmax
98 echo $shmall > /proc/sys/kernel/shmall
187 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
/tools/testing/selftests/bpf/
Dtest_flow_dissector.sh25 $bpftool prog loadall ./bpf_flow.o /sys/fs/bpf/flow \
29 /sys/fs/bpf/flow/flow_dissector flow_dissector; then
34 $bpftool prog attach pinned /sys/fs/bpf/flow/flow_dissector \
38 /sys/fs/bpf/flow/flow_dissector flow_dissector; then
44 /sys/fs/bpf/flow/flow_dissector flow_dissector; then
49 rm -rf /sys/fs/bpf/flow
89 if /bin/mount | grep /sys/fs/bpf > /dev/null; then
94 /bin/mount bpffs /sys/fs/bpf -t bpf
102 echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter
103 echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
[all …]
Dtcp_client.py6 import sys, os, os.path, getopt
32 serverPort = int(sys.argv[1])
39 sys.exit(1)
50 sys.exit(0)
/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/splice/
Dshort_splice_read.sh122 expect_success "proc_handler: proc_dointvec_minmax() splice" test_splice /proc/sys/fs/nr_open
123 expect_success "proc_handler: proc_dostring() splice" test_splice /proc/sys/kernel/modprobe
124 expect_success "proc_handler: special read splice" test_splice /proc/sys/kernel/version
127 if ! [ -d /sys/module/test_module/sections ] ; then
130 expect_failure "kernfs attr splice" test_splice /sys/module/test_module/coresize
131 expect_failure "kernfs binattr splice" test_splice /sys/module/test_module/sections/.init.text
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_stack_tracer.tc9 echo 1 > /proc/sys/kernel/stack_tracer_enabled
19 echo 0 > /proc/sys/kernel/stack_tracer_enabled
25 echo 1 > /proc/sys/kernel/stack_tracer_enabled
35 echo 0 > /proc/sys/kernel/stack_tracer_enabled
Dfgraph-filter-stack.tc10 if [ -e /proc/sys/kernel/stack_tracer_enabled ]; then
11 echo 0 > /proc/sys/kernel/stack_tracer_enabled
36 echo 1 > /proc/sys/kernel/stack_tracer_enabled
55 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/drivers/net/netdevsim/
Dethtool-pause.sh5 NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID
6 NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID/ports/0
13 echo $NSIM_ID > /sys/bus/netdevsim/del_device
26 new=$(ls /sys/class/net)
66 old_netdevs=$(ls /sys/class/net)
69 echo $NSIM_ID > /sys/bus/netdevsim/new_device
Dudp_tunnel_nic.sh6 NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID
7 NSIM_DEV_DFS=/sys/kernel/debug/netdevsim/netdevsim$NSIM_ID
30 [ -e /sys/class/net/$dev ] && ip link del dev $dev
37 echo $NSIM_ID > /sys/bus/netdevsim/del_device
236 new=$(ls /sys/class/net)
263 old_netdevs=$(ls /sys/class/net)
265 echo $NSIM_ID > /sys/bus/netdevsim/new_device
348 old_netdevs=$(ls /sys/class/net)
350 echo $NSIM_ID > /sys/bus/netdevsim/new_device
424 echo $NSIM_ID > /sys/bus/netdevsim/new_device
[all …]
/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 …]
/tools/testing/selftests/fpu/
Drun_test_fpu.sh30 if [ ! -e /sys/kernel/debug/selftest_helpers/test_fpu ]; then
31 mount -t debugfs none /sys/kernel/debug
33 if [ ! -e /sys/kernel/debug/selftest_helpers/test_fpu ]; then
/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
/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/pstore/
Dpstore_crash_test16 echo 1 > /proc/sys/kernel/sysrq
18 echo 3 > /proc/sys/kernel/panic
/tools/testing/kunit/
Dkunit.py11 import sys
38 KernelDirectoryPath = sys.argv[0].split('tools/testing/kunit/')[0]
47 parts = sys.argv[0] if not __file__ else __file__
50 sys.exit(1)
273 sys.exit(1)
292 sys.exit(1)
309 sys.exit(1)
330 sys.exit(1)
333 kunit_output = sys.stdin
343 sys.exit(1)
[all …]

1234567