Diff

Differences From Artifact [b512e69854]:

To Artifact [a88b256cec]:


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	echo "error: Unable to determine kernel build directory.  Try specifying the KERNEL_DIR environment variable" >&2

	exit 1
fi

if [ -z "${SYSTEM_MAP_FILE}" ]; then
	for trySystemMapFile in /proc/kallsyms "${kernelDir}/System.map" "/boot/System.map"; do
		if grep ' sys_call_table' "${trySystemMapFile}" >/dev/null 2>/dev/null; then
			systemMapFile="${trySystemMapFile}"

			break
		fi
	done
else
	systemMapFile="${SYSTEM_MAP_FILE}"







|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	echo "error: Unable to determine kernel build directory.  Try specifying the KERNEL_DIR environment variable" >&2

	exit 1
fi

if [ -z "${SYSTEM_MAP_FILE}" ]; then
	for trySystemMapFile in /proc/kallsyms "${kernelDir}/System.map" "/boot/System.map"; do
		if egrep ' sys_call_table($| )' "${trySystemMapFile}" >/dev/null 2>/dev/null; then
			systemMapFile="${trySystemMapFile}"

			break
		fi
	done
else
	systemMapFile="${SYSTEM_MAP_FILE}"