Re: [PATCH v2 01/12] libtracefs: Add new internal APIs for dynamic events

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

 



On Tue, 2 Nov 2021 06:33:36 +0200
Tzvetomir Stoyanov <tz.stoyanov@xxxxxxxxx> wrote:

> > > +
> > > +#define DYNEVENTS_EVENTS "dynamic_events"
> > > +#define KPROBE_EVENTS "kprobe_events"  
> >
> > A definition of KPROBE_EVENTS already exists in /utest/tracefs-utest.c and src/tracefs-kprobes.c
> >
> > Isn't better to move the whole group of definitions of filenames to include/tracefs-local.h?  
> 
> The unit test should use only the official library API, defined in
> tracefs.h. We could move these defines in the official API header, but
> I think these should be internal to the library.

Agreed. In fact, if one day the name changes (which is highly unlikely) we
want the unit tests to fail on that ;-)

-- Steve



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

  Powered by Linux