This file is indexed.

/var/lib/pcp/testsuite/313 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#! /bin/sh
# PCP QA Test No. 313
# assorted issues associated with pmval and archives with mark
# records
#
## note this file edited by hand to simulate the expected output
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard filters
. ./common.product
. ./common.filter
. ./common.check

status=1	# failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# deal with an annoying libc error ... using TZ=:Australia/Melbourne
# causes the -z option to report the wrong time, at least for some
# times of the year
#
TZ=EST-10
export TZ

offset=`_arch_start archives/changeinst -0.25`

# real QA test starts here

for delta in 1sec 0.5sec
do

echo
echo "=== delta=$delta counter in each non-prologue|epilogue result in all 3 sections ==="
pmval -O $offset -t $delta -z -a archives/changeinst sample.seconds 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta counter in the 2nd section only ==="
pmval -O $offset -t $delta -z -a archives/changeinst sample.milliseconds 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta instantaneous in 1st and 3rd sections ==="
pmval -O $offset -t $delta -z -a archives/changeinst sample.drift 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta discrete and logged once in the 1st and 3rd sections ==="
pmval -O $offset -t $delta -z -a archives/changeinst hinv.ncpu 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta counter and indom all over the place ==="
echo "  lo0     ec0     ec2     section"
echo "  yes     yes     no      1"
echo "  no      no      no      2"
echo "  yes     no      yes     3"
pmval -O $offset -t $delta -z -a archives/changeinst -i ec0,ec2,lo0 irix.network.interface.total.packets 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta instantaneous and indom all over the place ==="
echo "  bin-100 bin-200 bin-300 bin-400 bin-500 section"
echo "  yes     yes     no      yes     no      1"
echo "  yes     no      yes     yes     once    2"
echo "  no      yes     yes     yes     no      3"
pmval -O $offset -t $delta -z -a archives/changeinst -i bin-100,bin-200,bin-300,bin-400,bin-500 sample.bin 2>$tmp.err
cat $tmp.err

echo
echo "=== delta=$delta discrete logged once, different indom in each section ==="
pmval -O $offset -t $delta -z -a archives/changeinst pmcd.pmlogger.port 2>$tmp.err
cat $tmp.err

done

echo
echo "=== the whole shooting match ==="
pmdumplog -z -dilmst archives/changeinst \
| sed -e '/\[[0-9][0-9]* bytes\]/d'

# success, all done
status=0
exit