lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 20 Nov 2015 15:57:33 -0500
From:	Josef Bacik <jbacik@...com>
To:	<kernel-team@...com>, <linux-kernel@...r.kernel.org>,
	<rostedt@...dmis.org>
Subject: [PATCH 11/11] trace-cmd: add tracecmd_expand_event_list

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ