mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
Updates
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:
committed by
Søren Sandmann Pedersen
parent
fb7e1ddc47
commit
18abd9e1e6
16
configure.ac
16
configure.ac
@ -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
|
||||
|
||||
Reference in New Issue
Block a user