zfs-builds-mm/zfs-2.0.0-rc4/contrib/bpftrace/zfs-trace.sh

11 lines
227 B
Bash
Raw Permalink Normal View History

2020-10-22 14:20:35 +02:00
#!/bin/sh
ZVER=$(cat /sys/module/zfs/version | cut -f 1 -d '-')
KVER=$(uname -r)
bpftrace \
--include "/usr/src/zfs-$ZVER/$KVER/zfs_config.h" \
-I "/usr/src/zfs-$ZVER/include" \
-I "/usr/src/zfs-$ZVER/include/spl" \
"$@"