diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2022-02-14 10:02:41 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-02-23 20:50:31 -0500 |
commit | e75c5ced5fefdc6dbab8e17ccd0d2e94d753267a (patch) | |
tree | 1d2222b8a9acffdbab4b26cb3ac5a984fc0439dc /include | |
parent | b8ca7189a5f28148852e667c07165325dcb633fc (diff) | |
download | libtracefs-e75c5ced5fefdc6dbab8e17ccd0d2e94d753267a.tar.gz |
libtracefs: Add define for ALL dynamic events
Some of the tracefs APIs for dynamic events accept bitmask of events. If
a caller wants to address all types of events, it should list them in
the bitmask. This logic is fragile. When a new type of dynamic event is
introduced, the API callers should be modified. That's why a new define
is added, part of the library API, to address all types of dynamic
events.
Link: https://lore.kernel.org/linux-trace-devel/20220214080241.634290-1-tz.stoyanov@gmail.com
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tracefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tracefs.h b/include/tracefs.h index 301f1b1..05f3352 100644 --- a/include/tracefs.h +++ b/include/tracefs.h @@ -260,6 +260,8 @@ enum tracefs_dynevent_type { TRACEFS_DYNEVENT_MAX = 1 << 6, }; +#define TRACEFS_DYNEVENT_ALL 0xFFFFFFFF + int tracefs_dynevent_create(struct tracefs_dynevent *devent); int tracefs_dynevent_destroy(struct tracefs_dynevent *devent, bool force); int tracefs_dynevent_destroy_all(unsigned int types, bool force); |