On Wed, 3 Nov 2021 17:44:07 +0200 "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@xxxxxxxxx> wrote: > diff --git a/include/tracefs.h b/include/tracefs.h > index a2cda30..fa7f316 100644 > --- a/include/tracefs.h > +++ b/include/tracefs.h > @@ -10,6 +10,10 @@ > #include <sched.h> > #include <event-parse.h> > > +#define TRACEFS_BIT_SET(M, B) do { (M) |= (1ULL << (B)); } while (0) > +#define TRACEFS_BIT_TEST(M, B) ((M) & (1ULL<<(B))) > +#define TRACEFS_BIT_CLEAR(M, B) do { (M) &= ~(1ULL << (B)); } while (0) Does this really need to be public? I was thinking that this would just be used internally, and thus in the tracefs-local.h. -- Steve > + > char *tracefs_get_tracing_file(const char *name);