trace-cmd: Limit amount of events to send over the network
Limit the events sent out over the network the same way they are
limited when being recorded locally to a file.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
diff --git a/trace-record.c b/trace-record.c
index 9343822..2611bfa 100644
--- a/trace-record.c
+++ b/trace-record.c
@@ -1391,7 +1391,7 @@
}
/* Now create the handle through this socket */
- handle = tracecmd_create_init_fd(sfd);
+ handle = tracecmd_create_init_fd_glob(sfd, listed_events);
/* OK, we are all set, let'r rip! */
}