3 # Run valgrind on the Linux kernel PMDA metrics
5 # Copyright (c) 2014 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
17 pmns
=$PCP_VAR_DIR/pmns
/root_linux
18 [ -f $pmns ] || _notrun
"Cannot find the Linux PMDA namespace root"
20 status
=1 # failure is the default!
21 $sudo rm -rf $tmp.
* $seq.full
22 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
27 -e '/No value.s. available/d' \
28 -e '/Metric not supported by this version of monitored application/d' \
29 -e '/^Warning: noted but unhandled ioctl/d' \
30 -e '/^This could cause spurious value errors/d' \
31 -e '/^See README_MISSING_SYSCALL_OR_IOCTL/d' \
35 # real QA test starts here
36 pmda
="-Kclear -Kadd,60,$PCP_PMDAS_DIR/linux/pmda_linux.so,linux_init"
37 trees
=`pminfo -n $pmns | $PCP_AWK_PROG -F. '{ print $1 }' | sort -u`
42 echo "=== CHECKING SUBTREE: $subtree"
44 _run_valgrind pminfo
-v -L $pmda $subtree 2>&1 | _filter