Skip to content

Commit e093188

Browse files
nabijaczlewelibehlendorf
authored andcommitted
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
1 parent 0f29156 commit e093188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/bpftrace/zfs-trace.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/sh
22

3-
ZVER=$(cat /sys/module/zfs/version | cut -f 1 -d '-')
3+
ZVER=$(cut -f 1 -d '-' /sys/module/zfs/version)
44
KVER=$(uname -r)
55

6-
bpftrace \
6+
exec bpftrace \
77
--include "/usr/src/zfs-$ZVER/$KVER/zfs_config.h" \
88
-I "/usr/src/zfs-$ZVER/include" \
99
-I "/usr/src/zfs-$ZVER/include/spl" \

0 commit comments

Comments
 (0)