Re: [PATCH v2 1/4] libtracefs: Add new constructors for histograms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 24.09.21 г. 18:54, Steven Rostedt wrote:
On Fri, 24 Sep 2021 18:51:38 +0300
Tzvetomir Stoyanov <tz.stoyanov@xxxxxxxxx> wrote:

  struct tracefs_hist *
  tracefs_hist_alloc(struct tep_handle *tep,

For consistency with the newly added "alloc" APIs, this should be
renamed. The dimensions of the histogram are part of the name, this
one is for N dimensions:
   tracefs_hist_alloc_1d()
   tracefs_hist_alloc_2d()
   tracefs_hist_alloc_nd()
or something like that.

I rather not have the _nd().

  tracefs_hist_alloc_1d()
  tracefs_hist_alloc_2d() are more just helper handlers for specific cases.

  tracefs_hist_alloc() should be the "main" function, and hence doesn't need
any extra annotation.


My idea was the same.

Thanks!
Yordan


-- Steve




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux