Skip to content

Commit 87dab91

Browse files
hying-caritasHuang Ying
andauthored
sar: fallback to system sar (#525)
It's better than nothing. Signed-off-by: Huang Ying <[email protected]> Co-authored-by: Huang Ying <[email protected]>
1 parent c9d2643 commit 87dab91

File tree

1 file changed

+7
-2
lines changed
  • monitors/no-stdout

1 file changed

+7
-2
lines changed

monitors/no-stdout/sar

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
. $LKP_SRC/lib/common.sh
88
. $LKP_SRC/lib/wait.sh
99

10-
sadc="/lkp/benchmarks/sysstat/usr/local/lib/sa/sadc"
11-
sadf="/lkp/benchmarks/sysstat/usr/local/bin/sadf"
10+
for sadc in /lkp/benchmarks/sysstat/usr/local/lib/sa/sadc /usr/lib/sysstat/sadc /usr/lib64/sa/sadc; do
11+
[ -x $sadc ] && break
12+
done
13+
14+
for sadf in /lkp/benchmarks/sysstat/usr/local/bin/sadf /usr/bin/sadf; do
15+
[ -x $sadf ] && break
16+
done
1217

1318
: "${activity:=ALL}"
1419
: "${interval:=1}"

0 commit comments

Comments
 (0)