Re: [LSF/MM/BPF TOPIC] tracing the source of errors

From: Miklos Szeredi
Date: Thu Feb 08 2024 - 04:10:06 EST


On Wed, 7 Feb 2024 at 22:37, Dave Chinner <david@xxxxxxxxxxxxx> wrote:

> ftrace using the function_graph tracer will emit the return values
> of the functions if you use it with the 'funcgraph-retval' option.
>
> Seems like a solved problem?

Except

a) this seems exceedingly difficult to set up for non-developers,
which is often where this is needed. Even strace is pretty verbose
and the generated output too big, let alone all function calls across
the whole system.

b) can only point to the function was generated. But the same error
is often generated for several different reasons within the same
function and the return value doesn't help there.

I think a) is the critical one, and possibly the ftrace infrastructure
could be used for something more friendly that just pointed to the
function where the error was generated without having to go through
hoops.

Thanks,
Miklos