Home
last modified time | relevance | path

Searched refs:openat (Results 1 - 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
H A Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
H A Dfd-003-kthread.c35 * Test for kernel threadness atomically with openat().
56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd()
90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
/kernel/linux/linux-6.6/tools/testing/selftests/proc/
H A Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
60 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write()
109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
H A Dfd-003-kthread.c35 * Test for kernel threadness atomically with openat().
56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd()
90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
H A Dhelpers.c35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
H A Drename_attack_test.c98 ksft_print_msg("openat2(2) unsupported -- using openat(2) instead\n"); in test_rename_attack()
102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/
H A Dhelpers.c35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat()
49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
H A Drename_attack_test.c98 ksft_print_msg("openat2(2) unsupported -- using openat(2) instead\n"); in test_rename_attack()
102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
/kernel/linux/linux-5.10/tools/perf/examples/bpf/
H A Dhello.c3 int syscall_enter(openat)(void *args) in openat() function
H A Dsys_enter_openat.c3 * Hook into 'openat' syscall entry tracepoint
9 * It'll catch some openat syscalls related to the dynamic linked and
28 int syscall_enter(openat)(struct syscall_enter_openat_args *args) in openat() function
H A Detcsnoop.c10 * It'll catch some openat syscalls related to the dynamic linked and
64 augmented_filename_syscall_enter(openat); variable
H A Daugmented_syscalls.c9 * It'll catch some openat syscalls related to the dynamic linked and
72 augmented_filename_syscall(openat); variable
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dopenat-syscall.c45 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
H A Dopenat-syscall-tp-fields.c86 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
H A Dopenat-syscall-all-cpus.c82 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dopenat-syscall.c49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
75 TEST_CASE_REASON("Detect openat syscall event",
82 .desc = "Detect openat syscall event",
H A Dopenat-syscall-all-cpus.c85 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
129 TEST_CASE_REASON("Detect openat syscall event on all cpus",
136 .desc = "Detect openat syscall event on all cpus",
H A Dopenat-syscall-tp-fields.c88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
/kernel/linux/linux-6.6/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dprint-events.c89 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events()
105 evt_fd = openat(dir_fd, evt_path, O_RDONLY); in print_tracepoint_events()
/kernel/linux/linux-5.10/samples/pidfd/
H A Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/kernel/linux/linux-6.6/samples/pidfd/
H A Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c144 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
237 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()

Completed in 8 milliseconds

12