On Mon, Jan 17, 2022 at 5:02 AM Klemens Nanni <k...@openbsd.org> wrote:

> These don't hurt on !VMM architectures but I was still surprised to see
> them on e.g. sparc64:
>
>         # arch -s ; btrace -l | grep vmm
>         sparc64
>         tracepoint:vmm:guest_enter
>         tracepoint:vmm:guest_exit
>
> Like some network drivers, we could use __amd64__ to limit those to
> amd64 and save a few bits in all other kernels.
>
> Is this approach feasible or should we just ignore such one-offs?
>

If there's a non-trivial number of trace points in drivers, then it would
suggest that such tracepoints should be added/registered/pick-a-term by the
driver's attach routine.

Philip

Reply via email to