Re: [PATCH v4 08/10] libtracefs: Use the internal dynamic events API when creating synthetic events

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

 



On Thu, 4 Nov 2021 14:47:34 +0200
Yordan Karadzhov <y.karadz@xxxxxxxxx> wrote:

> > @@ -1919,7 +1911,6 @@ tracefs_synth_get_start_hist(struct tracefs_synth *synth)
> >   int tracefs_synth_create(struct tracefs_instance *instance,  
> 
> I wonder is it really necessary this function to take 'tracefs_instance' as argument?
> 
> I remember from conversations with Steven that setting the histograms/triggers in the top instance will have the same 
> effect. Or maybe I am wrong? The same question applies for the 'destroy' API.

Good point.

Yeah, let's make the events global, and just use the top level for creation
and destruction. As events added to the system affect all instances, they
should only be done at the top level.

-- Steve



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

  Powered by Linux