[PATCH v1] Add %open trace class.
Dmitry V. Levin
ldv at strace.io
Mon Apr 3 19:09:18 UTC 2023
On Mon, Apr 03, 2023 at 06:03:36PM +0000, Kossi Glokpor wrote:
> It makes sense to me to include socket(2) but there are some syscalls
> (like dup(2)) that return file descriptors but are not used to open a
> file/socket. Do you think that I should include all of them ?
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.
> On Mon, Apr 3, 2023 at 5:20 PM Eugene Syromyatnikov <evgsyr at gmail.com> wrote:
> > On Mon, Apr 3, 2023 at 5:55 AM glk0 <hotkatz32 at gmail.com> wrote:
> > >
> > > The %open class includes syscalls syscalls used to open files: open,
> > > openat, openat2 and open_by_handle_at.
> > What about socket(2) and many other syscalls that have RVAL_FD in
> > their decoder return code?
More information about the Strace-devel