summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-04-07 18:38:07 +0200
committerBrian Behlendorf <[email protected]>2021-04-14 13:19:50 -0700
commit8bc955f54616b0c36cf61fdd2c91ef8d58d3af7c (patch)
treee53375c7a797bb92f53eec76e59b3d420cff6ea9 /contrib
parentb3bb604a4c3a46e5d3f725ff76d9aa3cbf845104 (diff)
contrib/bpftrace: exec bpftrace, remove useless cat
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Pavel Zakharov <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #11859
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bpftrace/zfs-trace.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bpftrace/zfs-trace.sh b/contrib/bpftrace/zfs-trace.sh
index 13230b78c..54f66f3ba 100755
--- a/contrib/bpftrace/zfs-trace.sh
+++ b/contrib/bpftrace/zfs-trace.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-ZVER=$(cat /sys/module/zfs/version | cut -f 1 -d '-')
+ZVER=$(cut -f 1 -d '-' /sys/module/zfs/version)
KVER=$(uname -r)
-bpftrace \
+exec bpftrace \
--include "/usr/src/zfs-$ZVER/$KVER/zfs_config.h" \
-I "/usr/src/zfs-$ZVER/include" \
-I "/usr/src/zfs-$ZVER/include/spl" \