This file is indexed.

/var/lib/pcp/testsuite/1030 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
# PCP QA Test No. 1030
# Exercise the Linux kernel softnet metrics.
#
# Copyright (c) 2015 Red Hat.
#

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

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

[ $PCP_PLATFORM = linux ] || _notrun "pmdalinux specific testing"

status=1	# failure is the default!
$sudo rm -rf $tmp.* $seq.full
trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15

# create some data files for testing - from various kernels
cat <<EOF > $tmp.el7
0010c333 00000002 00000003 00000001 00000001 00000001 00000001 00000001 00000004 00000005 00000006
000ee8f7 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
000feeeb 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0035d448 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
EOF
cat <<EOF > $tmp.el6
00001409 00000002 00000003 00000000 00000000 00000000 00000001 00000001 00000004 00000005
000071ea 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00001532 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000efb 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
EOF
cat <<EOF > $tmp.el5
00001904 00000002 00000003 00000001 00000001 00000001 00000001 00000001 00000004
00000534 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000394 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000165 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
EOF

# real QA test starts here
root=$tmp.root
mkdir $root
export LINUX_NCPUS=4
export LINUX_STATSPATH=$root
pmda=$PCP_PMDAS_DIR/linux/pmda_linux.so,linux_init
metrics=`pminfo network.softnet | grep -v percpu | LC_COLLATE=POSIX sort`
cd $here

for file in el7 el6 el5
do
    rm -fr $root
    mkdir -p $root/proc/net || _fail "root in use when preparing $file"
    cp $tmp.$file $root/proc/net/softnet_stat
    _make_proc_stat $root/proc/stat $LINUX_NCPUS
 
    echo "== Checking metric values - $file" | tee -a $here/$seq.full
    pminfo -L -K clear -K add,60,$pmda -f $metrics 2>&1 \
    | tee -a $here/$seq.full
    ( echo && echo "== done" && echo ) | tee -a $here/$seq.full
done

# success, all done
status=0
exit