/var/lib/pcp/testsuite/archives/mk.diff is in pcp-testsuite 4.0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #!/bin/sh
#
# Recipe for creating the diff1 and diff2 archives
#
. $PCP_DIR/etc/pcp.env
here=`pwd`
tmp=/tmp/$$
rm -rf $tmp
cat <<End-of-File >$tmp.config
log mandatory on 1sec {
kernel.all.load
sample.bin
sample.seconds
sample.milliseconds
sample.long.write_me
sample.ulong.write_me
sample.longlong.write_me
sample.ulonglong.write_me
sample.float.write_me
sample.double.write_me
sampledso.long.write_me
sampledso.ulong.write_me
sampledso.longlong.write_me
sampledso.ulonglong.write_me
sampledso.float.write_me
sampledso.double.write_me
}
End-of-File
# diff1
pmstore sample.long.write_me 0
pmstore sample.ulong.write_me 3
pmstore sampledso.ulong.write_me 3
pmstore sample.longlong.write_me 2
pmstore sample.ulonglong.write_me 1000
pmstore sample.float.write_me 50
pmstore sample.double.write_me 2000.0
pmstore sampledso.double.write_me 2010.0
pmstore sampledso.long.write_me 10
rm -f diff1.0 diff1.meta diff1.index
${PCP_BINADM_DIR}/pmlogger -s 5 -c $tmp.config diff1
# diff1
# [inf]
pmstore sample.long.write_me 10
# [=100]
pmstore sample.ulong.write_me 300
# [>100]
pmstore sampledso.ulong.write_me 301
# [60]
pmstore sample.longlong.write_me 120
# [1]
pmstore sample.ulonglong.write_me 1000
# [1/5]
pmstore sample.float.write_me 10
# [=1/1000]
pmstore sample.double.write_me 2.0
# [<1/1000]
pmstore sampledso.double.write_me 2.0
# [1/inf]
pmstore sampledso.long.write_me 0
rm -f diff2.0 diff2.meta diff2.index
${PCP_BINADM_DIR}/pmlogger -s 5 -c $tmp.config diff2
|