/linux/tools/testing/selftests/proc/ |
H A D | read.c | 45 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 D | fd-003-kthread.c | 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()
|
H A D | proc-pid-vm.c | 197 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_EXCL|O_TMPFILE, 0700); in make_exe()
|
/linux/tools/testing/selftests/openat2/ |
H A D | helpers.c | 35 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 D | rename_attack_test.c | 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
H A D | resolve_test.c | 65 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 D | hwmon_pmu.c | 90 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 D | openat-syscall.c | 49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
|
H A D | openat-syscall-all-cpus.c | 85 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
|
/linux/tools/perf/trace/strace/groups/ |
H A D | file | 10 openat
|
H A D | string | 42 openat
|
/linux/tools/perf/util/ |
H A D | hwmon_pmu.c | 265 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 D | pidfd-metadata.c | 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
/linux/tools/testing/selftests/fchmodat2/ |
H A D | fchmodat2_test.c | 32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
|
/linux/tools/perf/Documentation/ |
H A D | perf-trace.txt | 288 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 D | pidfd_bind_mount.c | 175 fd_pidfd_mnt = openat(-EBADF, self->template, O_RDONLY | O_NOCTTY | O_CLOEXEC); in TEST_F()
|
H A D | pidfd_setns_test.c | 164 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 D | bench_htab_mem.c | 273 fd = openat(ctx.fd, name, O_RDONLY); in htab_mem_read_mem_cgrp_file()
|
/linux/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 147 int from = openat(fromfd, fromname, O_RDONLY); in copy_fromat_to()
|
/linux/tools/testing/selftests/iommu/ |
H A D | iommufd_fail_nth.c | 33 fd = openat(dfd, fn, O_WRONLY); in writeat()
|
/linux/fs/ |
H A D | open.c | 1454 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 D | syscall_n64.tbl | 258 247 n64 openat sys_openat
|
/linux/scripts/ |
H A D | syscall.tbl | 74 56 common openat sys_openat
|
/linux/arch/x86/entry/syscalls/ |
H A D | syscall_64.tbl | 269 257 common openat sys_openat
|
/linux/tools/perf/arch/x86/entry/syscalls/ |
H A D | syscall_64.tbl | 269 257 common openat sys_openat
|