From 8bc955f54616b0c36cf61fdd2c91ef8d58d3af7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 7 Apr 2021 18:38:07 +0200 Subject: [PATCH] contrib/bpftrace: exec bpftrace, remove useless cat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Reviewed-by: Pavel Zakharov Reviewed-by: Ryan Moeller Signed-off-by: Ahelenia ZiemiaƄska Closes #11859 --- contrib/bpftrace/zfs-trace.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/bpftrace/zfs-trace.sh b/contrib/bpftrace/zfs-trace.sh index 13230b78c3..54f66f3ba3 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" \