Re: [PATCH v3 0/2] kstats: kernel metric collector

From: Alexei Starovoitov
Date: Wed Feb 26 2020 - 15:50:04 EST


On Wed, Feb 26, 2020 at 09:26:22AM -0800, Luigi Rizzo wrote:
> Any pointers to this are welcome; Alexei mentioned fentry/fexit and
> bpf trampolines, but I haven't found an example that lets me do something
> equivalent to kretprobe (take a timestamp before and one after a function
> without explicit instrumentation)

please see the link in my previous email.

> - I still see some huge differences in usability, and this is in my opinion
> one very big difference between the two approaches. The systems where data
> collection may be of interest are not necessarily accessible to developers
> with the skills to write custom bpf code,

bpf code and tooling is already written. There are bcc and bpftrace scripts
that already do what you're proposing without adding any new code to the kernel.
These tools are trivial to use. Requires zero knowledge in bpf.
So please stop the fud.