3 # ipc.shm.{tot,rss,swp} metrics testing
5 # Copyright (c) 2015 Red Hat. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 if [ $PCP_PLATFORM != linux
]
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