This file is indexed.

/var/lib/pcp/testsuite/655 is in pcp-testsuite 3.9.10.

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
#! /bin/sh
# PCP QA Test No. 655
# checks extended pmdagfs2 functionality (gfs2_tracepoints)
# Requires GFS2 support in the kernel and gfs2_utils installed,
# else the test will not run.
#
# Copyright (c) 2013 - 2014 Red Hat, Inc. All Rights Reserved.
#
seq=`basename $0`
echo "QA output created by $seq"

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

# Attempt to set up the gfs2 pmda test enviroment
_gfs2_filesystem_support_tests
_debugfs_mount_tests
_gfs2_tracepoints_support_tests
_setup_gfs2_tracepoints false

# check for any loopback devices, cowardly abort this test if any exist
loopcount=`$sudo losetup -a | wc -l`
[ $loopcount -eq 0 ] || _notrun "System has loop devices already, bailing"

iam=gfs2
status=1 # failure is the default!
trap "_cleanup $iam" 0 1 2 3 15

$sudo rm -fr $tmp.*.dir
$sudo rm -f $tmp.* $seq.full
touch $here/$seq.full

# real QA test starts here
_prepare_pmda_install $iam
_install_pmda | _filter_gfs2
_setup_gfs2_mounts
_gfs2_sysfs_support_tests

cd $here
_setup_gfs2_tracepoints true

echo
echo "=== Check for successful install of pmda ===" | tee -a $here/$seq.full
pminfo -v gfs2 > /dev/null || _fail "install failed?"

echo
echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
pminfo -dfmtT gfs2.glstats | _gfs2_filter_pminfo

echo
echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
pminfo -dfmtT gfs2.tracepoints | _gfs2_filter_pminfo

echo
echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
pminfo -dfmtT gfs2.worst_glock | _gfs2_filter_pminfo

echo
echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
pminfo -dfmtT gfs2.control | _gfs2_filter_pminfo

echo
echo "=== check functionality of pmstore (off) ===" | tee -a $here/$seq.full
pmstore gfs2.control.tracepoints.all 0 | sed \
    -e 's/old value=[0-9]/OLD VALUE/'

echo
echo "=== check functionality of pmstore (on) === " | tee -a $here/$seq.full
pmstore gfs2.control.tracepoints.all 1 | sed \
     -e 's/old value=[0-9]/OLD VALUE/'

echo
echo "=== Removing the GFS2 PMDA ===" | tee -a $here/$seq.full
_remove_pmda

status=0
exit