aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-05-05 09:49:41 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-05-06 10:39:52 -0400
commitfc94d1a87cc132564a75856c9aca401fcfb5233b (patch)
treeb637d171388cfbaeada1d6901fa8006e226e42dc /include
parent2aa253e5b6be42bc7711a4adf1ff030e2c26a62a (diff)
downloadlibtracefs-fc94d1a87cc132564a75856c9aca401fcfb5233b.tar.gz
libtracefs: Add tracefs_event_enable/disable() API
Add the API of the following functions: tracefs_event_enable() tracefs_event_disable() That takes a system string and an event string and enables the events that match. Where a NULL system means (all systems) and a NULL event means all events in the system. Link: https://lore.kernel.org/linux-trace-devel/20210505134942.3583826-2-rostedt@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r--include/tracefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tracefs.h b/include/tracefs.h
index 551c37c..73ee42b 100644
--- a/include/tracefs.h
+++ b/include/tracefs.h
@@ -55,6 +55,9 @@ int tracefs_trace_off(struct tracefs_instance *instance);
int tracefs_trace_on_fd(int fd);
int tracefs_trace_off_fd(int fd);
+int tracefs_event_enable(struct tracefs_instance *instance, const char *system, const char *event);
+int tracefs_event_disable(struct tracefs_instance *instance, const char *system, const char *event);
+
/**
* tracefs_trace_on_get_fd - Get a file descriptor of "tracing_on" in given instance
* @instance: ftrace instance, can be NULL for the top instance