[PATCH v1] Add %open trace class.

Kossi Glokpor hotkatz32 at gmail.com
Mon Apr 3 19:42:07 UTC 2023

Sorry, in the previous message I made some typos that I corrected here. I
for the inconvenience.

On Mon, Apr 3, 2023 at 7:09 PM Dmitry V. Levin <ldv at strace.io> wrote:
> It depends on the definition of "open file", but no, dup(2) doesn't open
> any file, it just returns another descriptor referencing the same open
> file descriptor.  Anyway, a new trace class should have a clear
> definition so users would be able to understand what to expect
> from the new trace class.

Originally, I intended the class to be for syscalls used to open and
possibly create files.
I included in it the four syscalls associated to the 4 functions
listed in the man page of
open(2) and added open_by_handle_at(2) because according to its manual,

> The  name_to_handle_at()  and  open_by_handle_at() system calls split
> the functionality of openat(2) into two parts: name_to_handle_at()
> returns an opaque handle that corresponds to a specified file;
> open_by_handle_at() opens the file corresponding to a handle returned
> by a previous call to name_to_handle_at() and returns an open file

Is this definition satisfactory enough ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20230403/6a9b1922/attachment.htm>

More information about the Strace-devel mailing list