/tools/testing/selftests/proc/ |
D | .gitignore | 5 /proc-fsconfig-hidepid 6 /proc-loadavg-001 7 /proc-multiple-procfs 8 /proc-pid-vm 9 /proc-self-map-files-001 10 /proc-self-map-files-002 11 /proc-self-syscall 12 /proc-self-wchan 13 /proc-subset-pid 14 /proc-uptime-001 [all …]
|
D | Makefile | 9 TEST_GEN_PROGS += proc-loadavg-001 10 TEST_GEN_PROGS += proc-pid-vm 11 TEST_GEN_PROGS += proc-self-map-files-001 12 TEST_GEN_PROGS += proc-self-map-files-002 13 TEST_GEN_PROGS += proc-self-syscall 14 TEST_GEN_PROGS += proc-self-wchan 15 TEST_GEN_PROGS += proc-subset-pid 16 TEST_GEN_PROGS += proc-uptime-001 17 TEST_GEN_PROGS += proc-uptime-002 23 TEST_GEN_PROGS += proc-multiple-procfs [all …]
|
/tools/testing/selftests/livepatch/ |
D | test-livepatch.sh | 58 grep 'live patched' /proc/cmdline > /dev/kmsg 59 grep 'live patched' /proc/meminfo > /dev/kmsg 63 grep 'live patched' /proc/cmdline > /dev/kmsg 64 grep 'live patched' /proc/meminfo > /dev/kmsg 69 grep 'live patched' /proc/cmdline > /dev/kmsg 70 grep 'live patched' /proc/meminfo > /dev/kmsg 75 grep 'live patched' /proc/cmdline > /dev/kmsg 76 grep 'live patched' /proc/meminfo > /dev/kmsg 119 grep 'live patched' /proc/cmdline > /dev/kmsg 120 grep 'live patched' /proc/meminfo > /dev/kmsg [all …]
|
/tools/testing/selftests/timens/ |
D | procfs.c | 73 FILE *proc; in read_proc_uptime() local 75 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 76 if (proc == NULL) { in read_proc_uptime() 81 if (fscanf(proc, "%lu.%02lu", &up_sec, &up_nsec) != 2) { in read_proc_uptime() 89 fclose(proc); in read_proc_uptime() 98 FILE *proc; in read_proc_stat_btime() local 101 proc = fopen("/proc/stat", "r"); in read_proc_stat_btime() 102 if (proc == NULL) { in read_proc_stat_btime() 107 while (fgets(line_buf, 2048, proc)) { in read_proc_stat_btime() 110 fclose(proc); in read_proc_stat_btime() [all …]
|
/tools/testing/selftests/memfd/ |
D | run_hugetlbfs_test.sh | 20 done < /proc/meminfo 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 40 done < /proc/meminfo 50 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages 67 echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
|
/tools/testing/selftests/vm/ |
D | run_vmtests.sh | 19 done < /proc/meminfo 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 48 done < /proc/meminfo 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 [all …]
|
/tools/testing/selftests/sched/ |
D | cs_prctl_test.c | 169 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument 175 proc[i].num_threads = num_threads; in create_processes() 177 if (pipe(proc[i].pfd) == -1) in create_processes() 181 SIGCHLD, &proc[i]); in create_processes() 182 proc[i].cpid = cpid; in create_processes() 183 close(proc[i].pfd[1]); in create_processes() 187 read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes() 188 close(proc[i].pfd[0]); in create_processes() 192 void disp_processes(int num_processes, struct child_args proc[]) in disp_processes() argument 200 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].cpid, proc[i].cpid, in disp_processes() [all …]
|
/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_stack_tracer.tc | 9 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
|
D | fgraph-filter-stack.tc | 10 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/testing/selftests/tc-testing/plugin-lib/ |
D | buildebpfPlugin.py | 53 proc = subprocess.Popen(command, 58 (rawout, serr) = proc.communicate() 60 if proc.returncode != 0 and len(serr) > 0: 65 proc.stdout.close() 66 proc.stderr.close() 67 return proc, foutput
|
D | nsPlugin.py | 132 proc = subprocess.Popen(command, 137 (rawout, serr) = proc.communicate() 139 if proc.returncode != 0 and len(serr) > 0: 144 proc.stdout.close() 145 proc.stderr.close() 146 return proc, foutput
|
/tools/testing/selftests/splice/ |
D | short_splice_read.sh | 118 expect_failure "proc_single_open(), seq_read() splice" test_splice /proc/$$/limits 119 expect_failure "special open(), seq_read() splice" test_splice /proc/$$/comm 122 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
|
/tools/testing/selftests/pstore/ |
D | pstore_crash_test | 16 echo 1 > /proc/sys/kernel/sysrq 18 echo 3 > /proc/sys/kernel/panic 30 echo c > /proc/sysrq-trigger
|
D | pstore_post_reboot_tests | 23 mount_info=`grep pstore /proc/mounts` 30 mount_point=`grep pstore /proc/mounts | cut -d' ' -f2 | head -n1`
|
/tools/testing/selftests/ftrace/test.d/kprobe/ |
D | kprobe_args_symbol.tc | 8 if [ ! -f /proc/kallsyms ]; then 11 elif ! grep "$SYMBOL\$" /proc/kallsyms; then 37 ORIG=`cat /proc/version | sed -e 's/.* \((.*)\) \((.*)\) .*/\1 \2/'`
|
D | kprobe_eventname.tc | 8 FUNC=`grep " [tT] .*vfs_read$" /proc/kallsyms | tail -n 1 | cut -f 3 -d " "` 28 grep -m 10 " [tT] .*\.isra\..*$" /proc/kallsyms | tail -n 1 | cut -f 3 -d " " 32 grep " [tT] .*\.isra\..*" /proc/kallsyms | cut -f 3 -d " " | while read f; do
|
/tools/testing/selftests/powerpc/eeh/ |
D | eeh-functions.sh | 44 test -e /proc/powerpc/eeh && \ 45 grep -q 'EEH Subsystem is enabled' /proc/powerpc/eeh 156 if grep -q pSeries /proc/cpuinfo ; then 157 if [ ! -f /proc/device-tree/rtas/ibm,open-sriov-allow-unfreeze ] || 158 [ ! -f /proc/device-tree/rtas/ibm,open-sriov-map-pe-number ] ; then
|
/tools/bootconfig/scripts/ |
D | ftrace2bconf.sh | 26 TRACEFS=`grep -m 1 -w tracefs /proc/mounts | cut -f 2 -d " "` 28 if ! grep -wq debugfs /proc/mounts; then 32 TRACEFS=`grep -m 1 -w debugfs /proc/mounts | cut -f 2 -d " "`/tracing
|
/tools/testing/selftests/kmod/ |
D | kmod.sh | 156 echo "$MODPROBE" > /proc/sys/kernel/modprobe 455 echo "/KMOD_TEST_NONEXISTENT" > /proc/sys/kernel/modprobe 458 echo "$MODPROBE" > /proc/sys/kernel/modprobe 469 echo > /proc/sys/kernel/modprobe 472 echo "$MODPROBE" > /proc/sys/kernel/modprobe 497 kmod_check_visibility /proc/modules \ 684 MODPROBE=$(</proc/sys/kernel/modprobe)
|
/tools/testing/selftests/powerpc/security/ |
D | mitigation-patching.sh | 37 tainted=$(cat /proc/sys/kernel/tainted) 68 tainted=$(cat /proc/sys/kernel/tainted)
|
/tools/testing/selftests/bpf/ |
D | test_xsk.sh | 107 if [ -f /proc/net/if_inet6 ]; then 108 echo 1 > /proc/sys/net/ipv6/conf/${VETH0}/disable_ipv6 109 echo 1 > /proc/sys/net/ipv6/conf/${VETH1}/disable_ipv6
|
/tools/power/cpupower/ |
D | .gitignore | 12 lib/proc.lo 13 lib/proc.o
|
/tools/power/cpupower/utils/helpers/ |
D | cpuid.c | 50 unsigned int proc, x; in get_cpu_info() local 72 sscanf(value, "processor\t: %u", &proc); in get_cpu_info() 74 if (proc != (unsigned int)base_cpu) in get_cpu_info()
|
/tools/testing/selftests/exec/ |
D | binfmt_script | 75 proc = subprocess.Popen(["./%s" % (script)], shell=True, 77 stdout = proc.communicate()[0] 79 if proc.returncode == 0 and b'Executed interpreter' in stdout: 89 % (test_num, name, proc.returncode))
|
/tools/testing/fault-injection/ |
D | failcmd.sh | 35 set /proc/sys/vm/oom_kill_allocating_task to specified value 115 oom_kill_allocating_task_saved=`cat /proc/sys/vm/oom_kill_allocating_task` 121 > /proc/sys/vm/oom_kill_allocating_task 212 echo $oom_kill_allocating_task > /proc/sys/vm/oom_kill_allocating_task
|