summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
Diffstat (limited to 'ripple')
-rwxr-xr-xripple/driver.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/ripple/driver.pl b/ripple/driver.pl
index 07be06f..7a8d164 100755
--- a/ripple/driver.pl
+++ b/ripple/driver.pl
@@ -6,6 +6,7 @@ use strict;
 use POSIX qw(mkfifo);
 
 @ARGV or die "Usage: $0 PROGRAM [ARG]... 2> [LOG FILE]";
+die "bpftrace does not support spaces in argv" if grep {/ /} @ARGV;
 
 unlink(my $fifo = "tracepipe");
 mkfifo($fifo, 0600) or die;
@@ -20,7 +21,7 @@ if (!$pid) {
         # NOTE: this expects bpftrace to be SUID-root,
         # and relies on shells dropping euid
         'bpftrace', '-o', $fifo, '-e', $script, '-c',
-        @ARGV
+        join(' ', @ARGV)
     ) or die;
 }