Re: [PATCH 0/1] Introduce an instrumented profiler using BpfTrace
From: Aaron Lewis
Date: Mon Jul 06 2026 - 13:38:59 EST
On Tue, Jun 30, 2026 at 11:57 PM Viktor Malik <vmalik@xxxxxxxxxx> wrote:
>
> Agreed with Alexei, this doesn't belong to the kernel tree. For the very
> least, the provided bpftrace scripts depend on a specific version of
> bpftrace (e.g. they use macros, which are only available from 0.24). But
> we could certainly consider it for the bpftrace main repo [1] or the
> user-tools repo [2].
>
> Looking at the code, I'm just wondering what value does the Python
> script provide. Wouldn't it be possible to do the same in bpftrace
> directly? If so, then including such a tool into bpftrace could be
> relatively simple.
>
> Thanks!
> Viktor
>
> [1] https://github.com/bpftrace/bpftrace
> [2] https://github.com/bpftrace/user-tools
>
Thanks! I'll look into those repos for a potential house for this.
I wrote the Python script because I thought the logic was too
complicated for bpftrace to handle. I thought it only handled simple
scripts with simple logic, i.e. no recursion which this script uses.
If that isn't the case, I can certainly try it.