| /linux-6.15/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 75 layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F() 78 layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F() 81 layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY); in TEST_F() 84 layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY); in TEST_F() 87 layer_fds[4] = openat(fd_tmpfs, "l3", O_DIRECTORY); in TEST_F() 90 layer_fds[5] = openat(fd_tmpfs, "l4", O_DIRECTORY); in TEST_F() 93 layer_fds[6] = openat(fd_tmpfs, "d1", O_DIRECTORY); in TEST_F() 96 layer_fds[7] = openat(fd_tmpfs, "d2", O_DIRECTORY); in TEST_F() 192 fd_work = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F() 196 fd_upper = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F() [all …]
|
| H A D | dev_in_maps.c | 108 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644); in test()
|
| /linux-6.15/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()
|
| /linux-6.15/tools/testing/selftests/tmpfs/ |
| H A D | bug-link-o-tmpfile.c | 59 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 71 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
| /linux-6.15/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()
|
| /linux-6.15/tools/testing/selftests/ftrace/test.d/filter/ |
| H A D | event-filter-function.tc | 90 nocnt=`grep openat trace | wc -l` 93 hitcnt=`grep openat trace | wc -l`;
|
| /linux-6.15/tools/perf/bench/ |
| H A D | sched-pipe.c | 130 fd = openat(cgrp->fd, "cgroup.threads", O_WRONLY); in enter_cgroup() 132 fd = openat(cgrp->fd, "cgroup.procs", O_WRONLY); in enter_cgroup() 136 fd = openat(cgrp->fd, "tasks", O_WRONLY); in enter_cgroup()
|
| /linux-6.15/tools/perf/tests/ |
| H A D | hwmon_pmu.c | 96 hwmon_dirfd = openat(test_dirfd, "hwmon1234", O_DIRECTORY); in test_pmu_get() 101 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get() 118 file = openat(hwmon_dirfd, item->name, O_WRONLY | O_CREAT, 0600); in test_pmu_get()
|
| H A D | Build | 8 perf-test-y += openat-syscall.o 9 perf-test-y += openat-syscall-all-cpus.o 10 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o
|
| H A D | pmu.c | 88 file = openat(dirfd, "perf-pmu-test/type", O_WRONLY | O_CREAT, 0600); in test_pmu_get() 113 file = openat(dirfd, name, O_WRONLY | O_CREAT, 0600); in test_pmu_get() 132 file = openat(dirfd, "perf-pmu-test/events/test-event", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
|
| H A D | tests-scripts.c | 84 io__init(&io, openat(dir_fd, name, O_RDONLY), buf, sizeof(buf)); in shell_test__description() 261 fd = openat(dir_fd, ent->d_name, O_PATH); in append_scripts_in_dir()
|
| 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()
|
| H A D | openat-syscall-tp-fields.c | 89 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
| /linux-6.15/tools/perf/trace/strace/groups/ |
| H A D | file | 10 openat
|
| H A D | string | 42 openat
|
| /linux-6.15/tools/perf/util/ |
| H A D | hwmon_pmu.c | 248 io_dir__init(&dir, openat(pmu->hwmon_dir_fd, ".", O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in hwmon_pmu__read_events() 286 int fd = openat(pmu->hwmon_dir_fd, ent->d_name, O_RDONLY); in hwmon_pmu__read_events() 423 fd = openat(hwm->hwmon_dir_fd, buf, O_RDONLY); in hwmon_pmu__describe_items() 725 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus() 765 fd = openat(hwm->hwmon_dir_fd, buf, O_RDONLY); in evsel__hwmon_pmu_open()
|
| H A D | print-events.c | 77 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events() 100 io__init(&id, openat(dir_fd, buf, O_RDONLY), buf, sizeof(buf)); in print_tracepoint_events()
|
| /linux-6.15/tools/perf/ui/browsers/ |
| H A D | scripts.c | 101 fd = openat(dir_fd, filename, O_RDONLY); in check_ev_match() 212 lang_dir_fd = openat(scripts_dir_fd, lang_dirent->d_name, O_DIRECTORY); in find_scripts()
|
| /linux-6.15/samples/pidfd/ |
| H A D | pidfd-metadata.c | 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
| /linux-6.15/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-6.15/tools/perf/Documentation/ |
| H A D | perf-trace.txt | 292 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match… 296 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31 297 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65 298 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65 299 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3
|
| /linux-6.15/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()
|