diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-06-01 00:17:06 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-07-16 15:14:47 -0400 |
commit | 455b289973f7df350ea179c7eb8bfed0c766ec40 (patch) | |
tree | 5d863af6ee6ca3e3993d8c898a60ff49412c8bd2 /kernel/trace/trace_probe.h | |
parent | b4d4b96be89466049a0d383d019edc1403bf0ba9 (diff) | |
download | lwn-455b289973f7df350ea179c7eb8bfed0c766ec40.tar.gz lwn-455b289973f7df350ea179c7eb8bfed0c766ec40.zip |
tracing/probe: Add trace_probe init and free functions
Add common trace_probe init and cleanup function in
trace_probe.c, and use it from trace_kprobe.c and trace_uprobe.c
Link: http://lkml.kernel.org/r/155931582664.28323.5934870189034740822.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_probe.h')
-rw-r--r-- | kernel/trace/trace_probe.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace_probe.h b/kernel/trace/trace_probe.h index 42816358dd48..818b1d7693ba 100644 --- a/kernel/trace/trace_probe.h +++ b/kernel/trace/trace_probe.h @@ -248,6 +248,10 @@ static inline bool trace_probe_is_registered(struct trace_probe *tp) return !!(tp->flags & TP_FLAG_REGISTERED); } +int trace_probe_init(struct trace_probe *tp, const char *event, + const char *group); +void trace_probe_cleanup(struct trace_probe *tp); + /* Check the name is good for event/group/fields */ static inline bool is_good_name(const char *name) { |