Searched refs:syscall (Results 1 – 7 of 7) sorted by relevance
/samples/seccomp/ |
D | bpf-direct.c | 65 int syscall; in emulator() local 73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; in emulator() 77 if (syscall != __NR_write) in emulator() 172 syscall(__NR_write, STDOUT_FILENO, in main() 174 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)); in main() 175 syscall(__NR_write, STDOUT_FILENO, payload("HELLO, ")); in main() 176 syscall(__NR_write, STDOUT_FILENO, buf, bytes); in main() 177 syscall(__NR_write, STDERR_FILENO, in main()
|
D | bpf-fancy.c | 97 syscall(__NR_write, STDOUT_FILENO, msg1, strlen(msg1)); in main() 98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); in main() 100 syscall(__NR_write, STDERR_FILENO, msg2, strlen(msg2)); in main() 101 syscall(__NR_write, STDERR_FILENO, buf, bytes); in main() 103 syscall(__NR_write, STDERR_FILENO, msg2, strlen(msg2)+2); in main()
|
D | user-trap.c | 29 return syscall(__NR_seccomp, op, flags, args); in seccomp()
|
/samples/vfs/ |
D | test-fsmount.c | 74 return syscall(__NR_fsopen, fs_name, flags); in fsopen() 79 return syscall(__NR_fsmount, fsfd, flags, ms_flags); in fsmount() 85 return syscall(__NR_fsconfig, fsfd, cmd, key, val, aux); in fsconfig() 92 return syscall(__NR_move_mount, in move_mount()
|
D | test-statx.c | 45 return syscall(__NR_statx, dfd, filename, flags, mask, buffer); in statx()
|
/samples/bpf/ |
D | map_perf_test_user.c | 85 syscall(__NR_getuid); in test_hash_prealloc() 132 ret = syscall(__NR_getcpu, &mycpu, &mynode, NULL); in do_test_lru() 223 syscall(__NR_geteuid); in test_percpu_hash_prealloc() 235 syscall(__NR_getgid); in test_hash_kmalloc() 247 syscall(__NR_getegid); in test_percpu_hash_kmalloc() 259 syscall(__NR_gettid); in test_lpm_kmalloc() 271 syscall(__NR_getpgid, 0); in test_hash_lookup() 283 syscall(__NR_getppid, 0); in test_array_lookup()
|
/samples/pidfd/ |
D | pidfd-metadata.c | 49 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
|