3 # Verify the good stuff happens with pmclient and pmclient_fg
5 # Copyright (c) 2016 Red Hat.
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard filters
19 |
sed -e 's/pmFetchGroup/pmFetch/g' \
21 /^Archive: / { print "... title ..."; next }
22 /^[0-9. ]*$/ { print "... " NF " numbers ..."; next }
26 trap "rm -f $tmp $tmp.*; exit" 0 1 2 3 15
30 # real QA test starts here
31 cat >$tmp.config
<<End-of-File
32 log mandatory on once {
35 log mandatory on 5 secs {
36 kernel.all.load [ "1 minute", "15 minute" ]
37 kernel.percpu.cpu.user
43 pmlogger
-c $tmp.config
-l $tmp.log
-s 4 $tmp
44 _filter_pmlogger_log
<$tmp.log
45 cat $tmp.log
>>$here/$seq.full
47 pmdumplog
$tmp >>$here/$seq.full
49 ncpu
=`pmprobe -v hinv.ncpu 2>&1 \
51 NF == 3 && $2 == 1 { print $3; exit }
57 echo "== $pmclient variant =="
59 # output is sensitive to SP/MP ... so do the one that is real,
64 echo "real SP case" >>$here/$seq.full
65 $pmclient -a $tmp 2>&1 | _filter
70 CPU Busy Busy Free Mem Disk Load Average
71 Util CPU Util (Mbytes) IOPS 1 Min 15 Min
74 $pmclient: pmFetch: End of PCP archive log
80 CPU Free Mem Disk Load Average
81 Util (Mbytes) IOPS 1 Min 15 Min
84 $pmclient: pmFetch: End of PCP archive log
87 echo "real MP case" >>$here/$seq.full
88 $pmclient -a $tmp 2>&1 | _filter
91 echo "== $pmclient done ==" && echo