pmrep: update TODO, man page
[pcp.git] / qa / 888
blobe80cae8f0e620c27b6ca7ea8e94b9d12a46f4218
1 #!/bin/sh
2 # PCP QA Test No. 888
3 # ipc.shm.{tot,rss,swp} metrics testing
5 # Copyright (c) 2015 Red Hat. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 if [ $PCP_PLATFORM != linux ]
17 then
18 _notrun "shmctl(..,SHM_INFO,..) metrics only available on linux"
21 status=1 # failure is the default!
22 $sudo rm -rf $tmp.* $seq.full
23 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
25 # real QA test starts here
26 export LINUX_PAGESIZE=4096
27 pmda=$PCP_PMDAS_DIR/linux/pmda_linux.$DSO_SUFFIX,linux_init
29 LD_PRELOAD=$here/src/qa_shmctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.shm.tot
30 LD_PRELOAD=$here/src/qa_shmctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.shm.rss
31 LD_PRELOAD=$here/src/qa_shmctl.so pminfo -L -K clear -K add,60,$pmda -d -f ipc.shm.swp
33 # success, all done
34 status=0
35 exit