Home
last modified time | relevance | path

Searched refs:syscall (Results 1 – 7 of 7) sorted by relevance

/samples/seccomp/
Dbpf-direct.c65 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()
Dbpf-fancy.c97 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()
Duser-trap.c29 return syscall(__NR_seccomp, op, flags, args); in seccomp()
/samples/vfs/
Dtest-fsmount.c74 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()
Dtest-statx.c45 return syscall(__NR_statx, dfd, filename, flags, mask, buffer); in statx()
/samples/bpf/
Dmap_perf_test_user.c85 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/
Dpidfd-metadata.c49 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()