[PATCH v1] Add %open trace class.
Kossi Glokpor
hotkatz32 at gmail.com
Mon Apr 3 19:36:57 UTC 2023
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
> turns 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 descriptor.
Is this definition satisfactory enough ?
Kossi.
More information about the Strace-devel
mailing list