Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c75 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()
99 layer_fds[8] = openat(fd_tmpfs, "d3", O_DIRECTORY); in TEST_F()
187 layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY); in TEST_F()
[all …]
H A Ddev_in_maps.c108 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644); in test()
/linux/Documentation/trace/
H A Deprobetrace.rst145 within the kernel). In order to trace the openat system call, one can create
175 # echo 'e:openat raw_syscalls.sys_enter nr=$id filename=+8($args):ustring' >> dynamic_events
177 This is being run on x86_64 where the word size is 8 bytes and the openat
181 # echo 'nr == 257' > events/eprobes/openat/filter
186 # echo 1 > events/eprobes/openat/enable
201 … cat-1298 [003] ...2. 2060.875970: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
202 … cat-1298 [003] ...2. 2060.876197: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
203 … cat-1298 [003] ...2. 2060.879126: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
204 … cat-1298 [003] ...2. 2060.879639: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault)
218 # echo 1 > events/eprobes/openat/enable
[all …]
/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()
/linux/tools/testing/selftests/tmpfs/
H A Dbug-link-o-tmpfile.c59 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/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()
/linux/tools/testing/selftests/ftrace/test.d/filter/
H A Devent-filter-function.tc94 nocnt=`grep openat trace | wc -l`
97 hitcnt=`grep openat trace | wc -l`;
/linux/tools/perf/tests/
H A DBuild8 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 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()
H A Dtests-scripts.c84 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 Dhwmon_pmu.c103 file = openat(hwmon_dirfd, "name", O_WRONLY | O_CREAT, 0600); in test_pmu_get()
120 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()
H A Dopenat-syscall-tp-fields.c88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
/linux/tools/perf/trace/strace/groups/
H A Dfile10 openat
H A Dstring42 openat
/linux/tools/perf/util/
H A Ddrm_pmu.c170 io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf)); in read_drm_pmus_cb()
410 fd_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir()
456 fdinfo_dir_fd = openat(proc_dir, buf, O_DIRECTORY); in for_each_drm_fdinfo_in_dir()
587 io__init(&io, openat(fdinfo_dir_fd, fd_name, O_RDONLY), buf, sizeof(buf)); in read_drm_event()
H A Dhwmon_pmu.c286 int fd = openat(dir.dirfd, ent->d_name, O_RDONLY); in hwmon_pmu__read_events()
433 fd = openat(dir, buf, O_RDONLY); in hwmon_pmu__describe_items()
737 name_fd = openat(hwmon_dir, "name", O_RDONLY); in perf_pmus__read_hwmon_pmus()
781 fd = openat(dir, buf, O_RDONLY); in evsel__hwmon_pmu_open()
/linux/tools/include/nolibc/
H A Dfcntl.h28 int openat(int dirfd, const char *path, int flags, ...) in openat() function
/linux/tools/perf/ui/browsers/
H A Dscripts.c101 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/samples/pidfd/
H A Dpidfd-metadata.c105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/linux/tools/perf/Documentation/
H A Dperf-trace.txt295 Trace the first 4 open, openat or open_by_handle_at syscalls (in the future more syscalls may match…
299 2272.992 ( 0.037 ms): gnome-shell/1370 openat(dfd: CWD, filename: /proc/self/stat) = 31
300 2277.481 ( 0.139 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
301 3026.398 ( 0.076 ms): gnome-shell/3039 openat(dfd: CWD, filename: /proc/self/stat) = 65
302 4294.665 ( 0.015 ms): sed/15879 openat(dfd: CWD, filename: /etc/ld.so.cache, flags: CLOEXEC) = 3
/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()

123