3 # exercise local context kernel pmda metrics
4 # (fetch and instance PDUs). See RH BZ 858384.
6 # Copyright (c) 2012 Red Hat.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 status
=1 # failure is the default!
18 $sudo rm -rf $tmp.
* $seq.full
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # real QA test starts here
24 # iterate over local context (dso) kernel pmda metrics,
25 # checking each one with different PDU orderings.
27 pminfo
-L kernel hinv
2>/dev
/null |
30 echo checking metric
: $metric >> $seq.full
32 # check fetch (eg. RH BZ 858384)
33 pmval
-s 1 @
:$metric >> $seq.full
34 [ $?
-ne 0 ] && echo "$metric failed (pmval)"
36 # check instance identifiers (only, no fetch)
37 pmprobe
-L -i $metric >> $seq.full
38 [ $?
-ne 0 ] && echo "$metric failed (pmprobe)"