contrib/bpftrace: exec bpftrace, remove useless cat

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11859
This commit is contained in:
наб 2021-04-07 18:38:07 +02:00 committed by Brian Behlendorf
parent b3bb604a4c
commit 8bc955f546
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
ZVER=$(cat /sys/module/zfs/version | cut -f 1 -d '-') ZVER=$(cut -f 1 -d '-' /sys/module/zfs/version)
KVER=$(uname -r) KVER=$(uname -r)
bpftrace \ exec bpftrace \
--include "/usr/src/zfs-$ZVER/$KVER/zfs_config.h" \ --include "/usr/src/zfs-$ZVER/$KVER/zfs_config.h" \
-I "/usr/src/zfs-$ZVER/include" \ -I "/usr/src/zfs-$ZVER/include" \
-I "/usr/src/zfs-$ZVER/include/spl" \ -I "/usr/src/zfs-$ZVER/include/spl" \