/linux-master/tools/testing/selftests/mm/ |
H A D | gup_test.c | 8 #include <sys/ioctl.h> 9 #include <sys/mman.h> 10 #include <sys/stat.h> 11 #include <sys/types.h> 24 #define GUP_TEST_FILE "/sys/kernel/debug/gup_test" 223 if (opendir("/sys/kernel/debug") == NULL) 224 ksft_print_msg("mount debugfs at /sys/kernel/debug\n");
|
/linux-master/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 10 #include <sys/mman.h> 11 #include <sys/shm.h> 12 #include <sys/syscall.h> 13 #include <sys/vfs.h>
|
/linux-master/tools/testing/selftests/seccomp/ |
H A D | seccomp_benchmark.c | 18 #include <sys/param.h> 19 #include <sys/prctl.h> 20 #include <sys/syscall.h> 21 #include <sys/types.h> 203 system("grep -H . /proc/sys/net/core/bpf_jit_enable"); 205 system("grep -H . /proc/sys/net/core/bpf_jit_harden");
|
/linux-master/tools/testing/selftests/x86/ |
H A D | fsgsbase.c | 12 #include <sys/syscall.h> 15 #include <sys/user.h> 17 #include <sys/prctl.h> 20 #include <sys/ucontext.h> 25 #include <sys/mman.h> 27 #include <sys/ptrace.h> 28 #include <sys/wait.h>
|
H A D | sigreturn.c | 30 #include <sys/time.h> 33 #include <sys/syscall.h> 38 #include <sys/mman.h> 39 #include <sys/signal.h> 40 #include <sys/ucontext.h> 46 #include <sys/ptrace.h> 47 #include <sys/user.h>
|
H A D | ptrace_syscall.c | 4 #include <sys/ptrace.h> 5 #include <sys/types.h> 6 #include <sys/wait.h> 7 #include <sys/syscall.h> 8 #include <sys/user.h> 16 #include <sys/auxv.h>
|
/linux-master/tools/testing/selftests/ptp/ |
H A D | testptp.c | 17 #include <sys/ioctl.h> 18 #include <sys/mman.h> 19 #include <sys/stat.h> 20 #include <sys/time.h> 21 #include <sys/timex.h> 22 #include <sys/types.h> 42 #include <sys/syscall.h>
|
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 17 #include <sys/ptrace.h> 18 #include <sys/ioctl.h> 19 #include <sys/uio.h> 20 #include <sys/types.h> 21 #include <sys/wait.h> 22 #include <sys/signal.h> 23 #include <sys/ipc.h> 24 #include <sys/shm.h> 25 #include <sys/user.h> 26 #include <sys/syscal [all...] |
H A D | core-pkey.c | 10 #include <sys/mman.h> 11 #include <sys/types.h> 12 #include <sys/stat.h> 13 #include <sys/time.h> 14 #include <sys/resource.h> 42 static const char core_pattern_file[] = "/proc/sys/kernel/core_pattern";
|
/linux-master/tools/usb/ffs-aio-example/multibuff/device_app/ |
H A D | aio_multibuff.c | 37 #include <sys/ioctl.h> 38 #include <sys/stat.h> 39 #include <sys/types.h> 40 #include <sys/poll.h> 43 #include <sys/eventfd.h>
|
/linux-master/tools/testing/selftests/powerpc/benchmarks/ |
H A D | context_switch.c | 20 #include <sys/time.h> 21 #include <sys/syscall.h> 22 #include <sys/sysinfo.h> 23 #include <sys/types.h> 24 #include <sys/shm.h>
|
/linux-master/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 9 #include <sys/capability.h> 10 #include <sys/types.h> 11 #include <sys/mount.h> 12 #include <sys/prctl.h> 13 #include <sys/wait.h> 23 * - requires securityfs to me mounted at /sys/kernel/security, e.g.: 24 * mount -n -t securityfs -o nodev,noexec,nosuid securityfs /sys/kernel/security 40 char* add_uid_whitelist_policy_file = "/sys/kernel/security/safesetid/uid_allowlist_policy"; 41 char* add_gid_whitelist_policy_file = "/sys/kernel/security/safesetid/gid_allowlist_policy"; 169 if (mount("securityfs", "/sys/kerne [all...] |
/linux-master/fs/hostfs/ |
H A D | hostfs_user.c | 13 #include <sys/stat.h> 14 #include <sys/time.h> 15 #include <sys/types.h> 16 #include <sys/vfs.h> 17 #include <sys/syscall.h>
|
/linux-master/tools/cgroup/ |
H A D | iocost_monitor.py | 12 import sys namespace 38 print(s, file=sys.stderr, flush=True) 39 sys.exit(1) 244 sys.exit(0) 276 sys.stdout.flush()
|
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c | 4 #include <sys/socket.h> 9 #include <sys/ioctl.h> 12 #include <sys/un.h> 13 #include <sys/signal.h> 14 #include <sys/poll.h>
|
H A D | scm_pidfd.c | 8 #include <sys/socket.h> 13 #include <sys/un.h> 14 #include <sys/signal.h> 15 #include <sys/types.h> 16 #include <sys/wait.h>
|
/linux-master/tools/testing/selftests/sgx/ |
H A D | load.c | 14 #include <sys/ioctl.h> 15 #include <sys/mman.h> 16 #include <sys/stat.h> 17 #include <sys/time.h> 18 #include <sys/types.h>
|
/linux-master/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 23 #include <sys/eventfd.h> 24 #include <sys/wait.h> 25 #include <sys/types.h> 27 #include <sys/prctl.h> 36 #include <sys/syscall.h>
|
/linux-master/tools/power/x86/intel-speed-select/ |
H A D | isst.h | 12 #include <sys/types.h> 14 #include <sys/stat.h> 15 #include <sys/resource.h> 20 #include <sys/time.h> 29 #include <sys/ioctl.h>
|
/linux-master/tools/perf/scripts/python/ |
H A D | task-analyzer.py | 13 import sys namespace 20 sys.path.append( 76 if sys.stdout.isatty() and args.stdio_color != "never": 689 sys.exit() 792 sys.exit("Error: Filter and Limit at the same time active.") 794 sys.exit("Error: Summary only and extended times active.") 796 sys.exit( 800 sys.exit("Error: Cannot set time limit and print summary") 804 sys.exit("Error: Chosen files for csv and csv summary are the same") 806 sys [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | toeplitz.c | 47 #include <sys/mman.h> 48 #include <sys/socket.h> 49 #include <sys/stat.h> 50 #include <sys/sysinfo.h> 51 #include <sys/time.h> 52 #include <sys/types.h>
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | fp-stress.c | 19 #include <sys/auxv.h> 20 #include <sys/epoll.h> 21 #include <sys/prctl.h> 22 #include <sys/types.h> 23 #include <sys/uio.h> 24 #include <sys/wait.h>
|
/linux-master/tools/perf/tests/ |
H A D | attr.py | 6 import sys namespace 219 .decode(sys.stdout.encoding) 420 ''' % sys.argv[0] 443 sys.exit(-1) 453 sys.exit(-1) 455 sys.exit(0)
|
/linux-master/kernel/cgroup/ |
H A D | rstat.c | 574 u64 sys = 0; local 582 sys += cpustat[CPUTIME_SYSTEM]; 583 sys += cpustat[CPUTIME_IRQ]; 584 sys += cpustat[CPUTIME_SOFTIRQ]; 585 cputime->stime += sys; 588 cputime->sum_exec_runtime += sys;
|
/linux-master/tools/testing/selftests/tc-testing/ |
H A D | tdc.py | 12 import sys namespace 258 print('', file=sys.stderr) 260 file=sys.stderr) 262 file=sys.stderr) 265 print("\n{} *** Aborting test run.".format(prefix), file=sys.stderr) 266 print("\n\n{} *** stdout ***".format(proc.stdout), file=sys.stderr) 267 print("\n\n{} *** stderr ***".format(proc.stderr), file=sys.stderr) 489 ex_type, ex, ex_tb = sys.exc_info() 539 ex_type, ex, ex_tb = sys.exc_info() 580 if input(sys [all...] |