Re: Rough idea of implementing blocking perf calls for system call tracepoints

From: Steven Rostedt
Date: Fri Nov 30 2018 - 09:45:29 EST


On Fri, 30 Nov 2018 15:01:58 +0100
Jiri Olsa <jolsa@xxxxxxxxxx> wrote:

> > or perhaps just tracepoints.. does not seem to make much
> > sense for he events
>
> actualy the syscalls seems to be enough for now ;-) I tried
> something and ended up with hack below

Actually, we *only* want to do syscalls. We really don't want to add
blocking to trace events. That would be a nightmare for deadlocks and
such.

I was thinking about adding a PTRACE feature that makes this part of
PTRACE. That is, we start this via PTRACE and let PTRACE signal the
tracer process when the tracee process blocks, and it can then wake up
the tracee process.

A tracer must have PTRACE permissions anyway. The goal of this is to
speed up syscall tracing.

-- Steve