This file is indexed.

/usr/bin/tau-config is in tau 2.17.3.1.dfsg-4.

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
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#!/bin/bash

TAUROOT=/usr/lib/tau
TAUARCH=x86_64
BASEDIR=$TAUROOT/$TAUARCH
SICORTEX=no
PREFIX=no
DEFAULT_MAKEFILE=
DEFAULT_BINDING=

TauOptions=""
TauOptionsExclude=""

listmatching="false"
makefile="false"
getbinding="false"
ProfileSpecified="false"
TraceSpecified="false"
DisableSpecified="false"
SerialSpecified="false"

if [ $# = 0 ] ; then
    echo "TAUROOT=$TAUROOT"
    echo "TAUARCH=$TAUARCH"
    echo "BASEDIR=$BASEDIR"
    echo "SICORTEX=$SICORTEX"
    echo "PREFIX=$PREFIX"
    echo "DEFAULT_MAKEFILE=$DEFAULT_MAKEFILE"
    echo "DEFAULT_BINDING=\"$DEFAULT_BINDING\""
    exit 0
fi

for i in $* ; do
    if [ "$i" = "profile" ] ; then
        ProfileSpecified="true"
    elif [ "$i" = "trace" ] ; then
        TraceSpecified="true"
    elif [ "$i" = "vampirtrace" ] ; then
        TraceSpecified="true"
        TauOptions="$TauOptions $i"
    elif [ "$i" = "epilog" ] ; then
        TraceSpecified="true"
        TauOptions="$TauOptions $i"
    elif [ "$i" = "disable" ] ; then
        DisableSpecified="true"
    elif [ "$i" = "--list-matching" ] ; then
        listmatching="true"
    elif [ "$i" = "--makefile" ] ; then
        makefile="true"
    elif [ "$i" = "--binding" ] ; then
        getbinding="true"
    elif [ "$i" = "serial" ] ; then
        SerialSpecified="true"
    else
        TauOptions="$TauOptions $i"
    fi
done



if [ "$ProfileSpecified" = "false" -a "$TraceSpecified" = "false" ] ; then
    ProfileSpecified="true"
fi
if [ "$SerialSpecified" = "true" ] ; then
    TauOptionsExclude="mpi"
fi
if [ "$ProfileSpecified" = "true" -a "$TraceSpecified" = "false" ] ; then
    TauOptionsExclude="$TauOptionsExclude trace"
elif [ "$ProfileSpecified" = "true" -a "$TraceSpecified" = "true" ] ; then
    TauOptions="$TauOptions profile trace"
elif [ "$ProfileSpecified" = "false" -a "$TraceSpecified" = "true" ] ; then
    TauOptionsExclude="$TauOptionsExclude profile"
    TauOptions="$TauOptions trace"
fi
if [ "$DisableSpecified" = "false" ] ; then
    TauOptionsExclude="$TauOptionsExclude disable"
else
    TauOptions=""
fi

if [ $makefile = true ] ; then
    if [ "$SICORTEX" = "yes" ] ; then
	bindingsdir=$PREFIX/lib64
	bindings=`ls $PREFIX/share/TAU/64/Makefile.tau*`
    else
	bindingsdir=$BASEDIR/lib
	bindings=`ls $bindingsdir/Makefile.tau*`
    fi
else
    if [ "$SICORTEX" = "yes" ] ; then
	bindingsdir=$PREFIX/lib64
	bindings=`ls $PREFIX/lib64 | grep TAU-shared`
    else
	bindingsdir=$BASEDIR/lib
	bindings=`ls $BASEDIR/lib | grep shared`
    fi
fi

for opt in $TauOptions; do
    newbindings=""
    for b in $bindings ; do
        add=`echo $b | grep -i "\-$opt"`
        newbindings="$newbindings $add"
    done
    bindings=$newbindings
done

for opt in $TauOptionsExclude; do
    newbindings=""
    for b in $bindings ; do
        add=`echo $b | grep -v -i "\-$opt"`
        newbindings="$newbindings $add"
    done
    bindings=$newbindings
done

declare -i minLength
declare -i length
minLength=9999
theBinding=""
for b in $bindings ; do
    length=${#b}
    if [ "$length" -lt "$minLength" ] ; then
        theBinding=$b
        minLength=$length
    fi
done

if [ "x$theBinding" = "x" ] ; then
    echo "Error: No matching binding for '$TauOptions' in directory $bindingsdir" >&2
    exit 1
fi

if [ "$listmatching" = "true" ] ; then
    echo "$bindings"
else 
    echo "$theBinding"
fi