Re: ktrace output file not showing up in fstat

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Thu, Feb 05, 2026 at 07:54:30AM +0100, Edgar Fuß wrote:
> Why does that ktrace file not show up? Because it isn't associated with 
> a process?


DESCRIPTION
     fstat identifies open files.  A file is considered open by a process if
     it was explicitly opened, is the working directory, root directory,
     active pure text, or kernel trace file for that process. [..]

So it sounds like a bug. Even if the original ktrace process is long gone
and child processes have inherited the ktrace via -i, the file should
be listed.


Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.