Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2025 09:01:56 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        arch@freebsd.org
Subject:   Re: ktrace pipe2
Message-ID:  <aH46RKQdE5UrVwu4@nuc>
In-Reply-To: <2bee6914-6bfb-4208-992d-f722f43246cc@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

On Sat, Jul 19, 2025 at 02:23:28PM +0300, Andriy Gapon wrote:
> 
> What would be the best / proper way to make ktrace report file descriptors
> of a pipe crated with pipe2(2) ?
> Can ktrstructarray() be used for that?

I think it can.  I don't see any better options, at least.  We could add
a fdarray record type, but I don't see much advantage to that.

If you plan to add a tracepoint to pipe2(), it'd be nice to add one to
socketpair() as well.


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aH46RKQdE5UrVwu4>