This file is indexed.

/usr/bin/turbostat is in linux-tools-common 3.2.0-67.101.

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
#!/bin/bash
full_version=`uname -r`

# First check for a fully qualified version.
this="/usr/lib/linux-tools/$full_version/`basename $0`"
if [ -f "$this" ]; then
	exec "$this" "$@"
fi

# FALLBACK for older kernel layouts
# Removing flavour from version i.e. generic or server.
flavour_abi=${full_version#*-}
flavour=${flavour_abi#*-}
version=${full_version%-$flavour}
this="$0_$version"
if [ -f "$this" ]; then
	exec "$this" "$@"
fi

# If we have the appropriate package installed but no
# tool then the tool does not exist.
if [ -d "/usr/lib/linux-tools/$full_version" ]; then
	echo "`basename $0` not available for kernel $version" >&2
	exit 2
fi

# Give them a hint as to what to install.
echo "`basename $0` not found for kernel $version" >&2
if dpkg --compare-versions "$full_version" lt "3.11.0"; then
	flavour=''
else
	flavour="-$flavour"
fi
echo "You may need to install linux-tools-$version$flavour for this kernel." >&2
echo "You may also wish to install linux-tools$flavour or" >&2
echo "linux-image$flavour-lts-<series> to keep up to date." >&2
exit 2