Re: [PATCH V7 05/14] rtla/osnoise: Add the hist mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH V7 05/14] rtla/osnoise: Add the hist mode
- From: Steven Rostedt <rostedt@xxxxxxxxxxx>
- Date: Wed, 24 Nov 2021 17:15:03 -0500
- Cc: Tao Zhou <tao.zhou@xxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Tom Zanussi <zanussi@xxxxxxxxxx>, Masami Hiramatsu <mhiramat@xxxxxxxxxx>, Juri Lelli <juri.lelli@xxxxxxxxxx>, Clark Williams <williams@xxxxxxxxxx>, John Kacur <jkacur@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>, linux-rt-users@xxxxxxxxxxxxxxx, linux-trace-devel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- In-reply-to: <20211124171212.537b43c3@gandalf.local.home>
- References: <cover.1635535309.git.bristot@kernel.org> <1d9826696a1e8c3584158c0dd570b8b22db708db.1635535309.git.bristot@kernel.org> <20211124171212.537b43c3@gandalf.local.home>
On Wed, 24 Nov 2021 17:12:12 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> > + /*
> > + * Set the size of the bucket.
> > + */
> > + bucket_size = params->output_divisor * params->bucket_size;
> > + snprintf(buff, sizeof(buff), "duration.buckets=%d", bucket_size);
> > +
> > + data->trace_hist = tracefs_hist_alloc(tool->trace.tep, "osnoise", "sample_threshold",
> > + buff, TRACEFS_HIST_KEY_NORMAL);
>
> FYI, we changed the API (haven't tagged it yet, so we can do that :-) and
> the above needs to be:
>
> data->trace_hist = tracefs_hist1d_alloc(tool->trace.tep, "osnoise", "sample_threshold",
Or do you think that 1d should be the default, and we have:
tracefs_hist_alloc() -- 1d histogram
tracefs_hist_alloc_2d() -- 2d histogram
tracefs_hist_alloc_nd() -- Nd histogram?
??
We haven't tagged it yet, so we could change it again (and then your code
will work as is).
-- Steve
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]