Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1274420

[PATCH 11/11] trace-cmd: add tracecmd_expand_event_list

From Josef Bacik <jbacik@fb.com>
Newsgroups linux.kernel
Subject [PATCH 11/11] trace-cmd: add tracecmd_expand_event_list
Date 2015-11-20 22:00 +0100
Message-ID <qx0WJ-3Qz-9@gated-at.bofh.it> (permalink)
References <qx0WJ-3Qz-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


We can add events, but we need to expose expand_event_list so that it will go
through and figure out the paths to those events so they can be enabled later.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
---
 trace-cmd.h    | 1 +
 trace-record.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/trace-cmd.h b/trace-cmd.h
index 08cb774..6bbc97a 100644
--- a/trace-cmd.h
+++ b/trace-cmd.h
@@ -286,6 +286,7 @@ void tracecmd_stop_recording(struct tracecmd_recorder *recorder);
 void tracecmd_stat_cpu(struct trace_seq *s, int cpu);
 long tracecmd_flush_recording(struct tracecmd_recorder *recorder);
 int tracecmd_add_event(const char *event_str, int stack);
+void tracecmd_expand_event_list(void);
 void tracecmd_enable_events(void);
 void tracecmd_disable_all_tracing(int disable_tracer);
 void tracecmd_disable_tracing(void);
diff --git a/trace-record.c b/trace-record.c
index 3c8eb58..e4194b5 100644
--- a/trace-record.c
+++ b/trace-record.c
@@ -2214,7 +2214,7 @@ static void expand_event_instance(struct buffer_instance *instance)
 	}
 }
 
-static void expand_event_list(void)
+void tracecmd_expand_event_list(void)
 {
 	struct buffer_instance *instance;
 
@@ -4318,7 +4318,7 @@ void trace_record (int argc, char **argv)
 		record_all_events();
 
 	if (events)
-		expand_event_list();
+		tracecmd_expand_event_list();
 
 	page_size = getpagesize();
 
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 11/11] trace-cmd: add tracecmd_expand_event_list Josef Bacik <jbacik@fb.com> - 2015-11-20 22:00 +0100

csiph-web