This file is indexed.

/usr/bin/starpu_codelet_profile is in starpu-tools 1.1.0+dfsg-2.

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
#!/bin/bash

# StarPU --- Runtime system for heterogeneous multicore architectures.
# 
# Copyright (C) 2008, 2009, 2010, 2013  Université de Bordeaux 1
# Copyright (C) 2010, 2013  Centre National de la Recherche Scientifique
# 
# StarPU is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at
# your option) any later version.
# 
# StarPU is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# 
# See the GNU Lesser General Public License in COPYING.LGPL for more details.

PROGNAME=$0

usage()
{
	echo "Offline tool to draw codelet profile over a traced execution"
	echo ""
	echo "Usage: $PROGNAME distrib.data codelet_name"
	echo ""
	echo "Options:"
	echo "	-h, --help          display this help and exit"
	echo "	-v, --version       output version information and exit"
	echo ""
	echo "Report bugs to <starpu-devel@lists.gforge.inria.fr>"
	exit 1
}

if [ "$1" = "-v" ] || [ "$1" = "--version" ] ; then
    echo "$PROGNAME (StarPU) 1.1.0"
    exit 0
fi

if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$2" = "" ] ; then
    usage
fi

inputfile=$1
codelet_name=$2

archlist=`< $inputfile grep "^$codelet_name	" | cut -f 2 | sort | uniq | xargs` 

# extract subfiles from the history file
for arch in $archlist
do
		echo "Arch $arch"
		grep "^$codelet_name	$arch" $inputfile > $inputfile.$arch
done

# create the gnuplot file

gpfile=$inputfile.gp

echo "#!/usr/bin/gnuplot -persist" 		> $gpfile
echo "set term postscript eps enhanced color" 	>> $gpfile
echo "set logscale x"				>> $gpfile 
echo "set logscale y"				>> $gpfile 
echo "set output \"$inputfile.eps\""		>> $gpfile
echo "set key top left"				>> $gpfile
echo "set xlabel \"Total data size\""		>> $gpfile
echo "set ylabel \"Execution time (ms)\""	>> $gpfile

echo -n "plot	" 				>> $gpfile

first=1

for arch in $archlist
do
		if [ $first = 0 ] 
		then
			echo -n "  , " >> $gpfile
		else
			first=0
		fi

		echo -n " \"$inputfile.$arch\" using 3:5  title \"${codelet_name//_/\\\\_} arch $arch\"" >> $gpfile
done