Home
last modified time | relevance | path

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

123

/linux-6.12.1/tools/testing/selftests/proc/
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()
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()
/linux-6.12.1/tools/testing/selftests/tmpfs/
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()
/linux-6.12.1/tools/testing/selftests/openat2/
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()
Drename_attack_test.c102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
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-6.12.1/tools/perf/bench/
Dsched-pipe.c125 fd = openat(cgrp->fd, "cgroup.threads", O_WRONLY); in enter_cgroup()
127 fd = openat(cgrp->fd, "cgroup.procs", O_WRONLY); in enter_cgroup()
131 fd = openat(cgrp->fd, "tasks", O_WRONLY); in enter_cgroup()
/linux-6.12.1/tools/perf/tests/
DBuild9 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall.o
10 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-all-cpus.o
11 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o
Dpmu.c88 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()
Dtests-scripts.c84 io__init(&io, openat(dir_fd, name, O_RDONLY), buf, sizeof(buf)); in shell_test__description()
256 fd = openat(dir_fd, ent->d_name, O_PATH); in append_scripts_in_dir()
Dopenat-syscall.c49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
Dopenat-syscall-tp-fields.c88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
Dopenat-syscall-all-cpus.c85 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
/linux-6.12.1/tools/perf/trace/strace/groups/
Dfile10 openat
Dstring42 openat
/linux-6.12.1/samples/pidfd/
Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/linux-6.12.1/tools/testing/selftests/fchmodat2/
Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/linux-6.12.1/tools/perf/util/
Dprint-events.c91 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events()
114 io__init(&id, openat(dir_fd, buf, O_RDONLY), buf, sizeof(buf)); in print_tracepoint_events()
Dpmu.c218 int fd = openat(dirfd, name, O_RDONLY); in perf_pmu__format_parse()
656 fd = openat(events_dir_fd, name, O_RDONLY); in __pmu_aliases_parse()
709 events_dir_fd = openat(sysfs_fd, path, O_DIRECTORY, 0); in pmu_aliases_parse_eager()
2104 fd = openat(caps_fd, name, O_RDONLY); in perf_pmu__caps_parse()
2255 return openat(dirfd, path, flags); in perf_pmu__pathname_fd()
Dutil.c569 int err, fd = openat(dirfd, dirp, O_PATH); in scandirat()
/linux-6.12.1/tools/perf/Documentation/
Dperf-trace.txt283 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match…
287 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
288 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
289 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
290 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3
/linux-6.12.1/tools/testing/selftests/filesystems/overlayfs/
Ddev_in_maps.c133 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644); in test()
/linux-6.12.1/tools/testing/selftests/bpf/benchs/
Dbench_htab_mem.c273 fd = openat(ctx.fd, name, O_RDONLY); in htab_mem_read_mem_cgrp_file()
/linux-6.12.1/tools/testing/selftests/pidfd/
Dpidfd_setns_test.c203 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
353 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
/linux-6.12.1/tools/testing/selftests/capabilities/
Dtest_execve.c147 int from = openat(fromfd, fromname, O_RDONLY); in copy_fromat_to()

123