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

From: Josef Bacik
Date: Fri Nov 20 2015 - 15:58:13 EST


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@xxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/