Sat Jun 18 22:45:04 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Updates

	* configure.ac: Check for Linux 2.6.11

	* process.c (get_pidname): Present pid=-1 as [kernel].

	* module/sysprof-module.c: Use register_timer_hook() instead of
	a kernel timer. Set trace.pid to -1 if interrupt happens in
	kernel.
This commit is contained in:
Søren Sandmann
2005-06-19 02:46:19 +00:00
committed by Søren Sandmann Pedersen
parent fb7e1ddc47
commit 18abd9e1e6
7 changed files with 192 additions and 14 deletions

View File

@ -61,6 +61,7 @@ AC_CHECK_LIB(bfd, bfd_get_error, [DEP_LIBS="$DEP_LIBS -lbfd -liberty"],
AC_MSG_ERROR([libbfd is required to compile sysprof]),
-liberty)
# emit files
AC_SUBST(DEP_LIBS)
@ -69,4 +70,19 @@ AC_CONFIG_FILES([
Makefile
])
# Kernel version
KMAJOR=`uname -r | cut -d"." -f 1`
KMINOR=`uname -r | cut -d"." -f 2`
KMICRO=`uname -r | cut -d"." -f 3 | cut -d"-" -f 1`
if [[ $KMICRO -lt 11 ]] ; then
if [[ $KMICRO -gt 8 ]]; then
echo
echo Linux \>= 2.6.11 is required
echo
exit 1
fi
fi
AC_OUTPUT