Home
last modified time | relevance | path

Searched refs:openat (Results 1 – 25 of 34) sorted by relevance

12

/linux/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.c56 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()
H A Dproc-pid-vm.c197 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700); in make_exe()
/linux/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.c102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
H A Dresolve_test.c65 tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY); in setup_testdir()
459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY); in test_openat2_opath_tests()
/linux/tools/perf/tests/
H A Dhwmon_pmu.c90 hwmon_dirfd = openat(test_dirfd, "hwmon1234", O_DIRECTORY); in test_pmu_get()
95 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
112 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
H A Dopenat-syscall.c49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__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()
/linux/tools/perf/trace/strace/groups/
H A Dfile10 openat
H A Dstring42 openat
/linux/tools/perf/util/
H A Dhwmon_pmu.c265 dup_fd = openat(pmu->hwmon_dir_fd, ".", O_DIRECTORY); in hwmon_pmu__read_events()
309 int fd = openat(pmu->hwmon_dir_fd, ent->d_name, O_RDONLY); in hwmon_pmu__read_events()
446 fd = openat(hwm->hwmon_dir_fd, buf, O_RDONLY); in hwmon_pmu__describe_items()
747 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus()
787 fd = openat(hwm->hwmon_dir_fd, buf, O_RDONLY); in evsel__hwmon_pmu_open()
/linux/samples/pidfd/
H A Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux/tools/perf/Documentation/
H A Dperf-trace.txt288 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match here):
292 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
293 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
294 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
295 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_bind_mount.c175 fd_pidfd_mnt = openat(-EBADF, self->template, O_RDONLY | O_NOCTTY | O_CLOEXEC); in TEST_F()
H A Dpidfd_setns_test.c164 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
314 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
/linux/tools/testing/selftests/bpf/benchs/
H A Dbench_htab_mem.c273 fd = openat(ctx.fd, name, O_RDONLY); in htab_mem_read_mem_cgrp_file()
/linux/tools/testing/selftests/capabilities/
H A Dtest_execve.c147 int from = openat(fromfd, fromname, O_RDONLY); in copy_fromat_to()
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c33 fd = openat(dfd, fn, O_WRONLY); in writeat()
/linux/fs/
H A Dopen.c1454 SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, in SYSCALL_DEFINE4() argument
1503 COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) in COMPAT_SYSCALL_DEFINE4() argument
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl258 247 n64 openat sys_openat
/linux/scripts/
H A Dsyscall.tbl74 56 common openat sys_openat
/linux/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl269 257 common openat sys_openat
/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscall_64.tbl269 257 common openat sys_openat

12