Re: [POC][RFC][PATCH 0/3] tracing: Add perf events to trace buffer

From: Steven Rostedt
Date: Tue Nov 18 2025 - 09:04:26 EST


On Tue, 18 Nov 2025 08:53:24 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> > Yes, so if user adds more than that, it will return -ENOSPC.
>
> The issue is that the ids are defined by what is possible, not by what the
> user enables.

Now we could take 4 more bits from the mask and bring the raw value down to
just 52 bits. 2^51 at 4GHz is still 6 days. Which is plenty more than required.

This will make the id 12 bits, or 4096 different defined events.

-- Steve