Re: strace of io_uring events?

From: tytso
Date: Wed Jul 15 2020 - 20:12:45 EST


On Wed, Jul 15, 2020 at 06:11:30PM +0100, Matthew Wilcox wrote:
> On Wed, Jul 15, 2020 at 07:35:50AM -0700, Andy Lutomirski wrote:
> > > On Jul 15, 2020, at 4:12 AM, Miklos Szeredi <miklos@xxxxxxxxxx> wrote:
> > > This thread is to discuss the possibility of stracing requests
> > > submitted through io_uring. I'm not directly involved in io_uring
> > > development, so I'm posting this out of interest in using strace on
> > > processes utilizing io_uring.

> > >
> > > Is there some existing tracing infrastructure that strace could use to
> > > get async completion events? Should we be introducing one?

I suspect the best approach to use here is use eBPF, since since
sending asyncronously to a ring buffer is going to be *way* more
efficient than using the blocking ptrace(2) system call...

- Ted