From: John L. <mov...@us...> - 2001-11-06 18:02:58
|
Update of /cvsroot/oprofile/oprofile In directory usw-pr-cvs1:/tmp/cvs-serv32542 Modified Files: ChangeLog configure.in Log Message: test for and use hard_get_current(). Untested beyond a compile... remind me to test before releasing 0.0.7 ;) Index: ChangeLog =================================================================== RCS file: /cvsroot/oprofile/oprofile/ChangeLog,v retrieving revision 1.210 retrieving revision 1.211 diff -u -d -r1.210 -r1.211 --- ChangeLog 2001/11/06 02:05:49 1.210 +++ ChangeLog 2001/11/06 18:02:56 1.211 @@ -1,5 +1,11 @@ 2001-11-06 John Levon <mo...@co...> + * configure.in: + * module/oprofile.h: + * module/oprofile.c: support for hard_get_current() + +2001-11-06 John Levon <mo...@co...> + * module/oprofile.h: * module/oprofile.c: make allow_unload exist for UP too (default to 1) Index: configure.in =================================================================== RCS file: /cvsroot/oprofile/oprofile/configure.in,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- configure.in 2001/10/30 17:32:13 1.49 +++ configure.in 2001/11/06 18:02:56 1.50 @@ -110,6 +110,15 @@ AC_MSG_RESULT("no") fi +AC_MSG_CHECKING(for hard_get_current()) +HARD_GET_CURRENT=`gcc -I$KINC -E $KINC/asm/current.h | grep hard_get_current` +if test -z "$HARD_GET_CURRENT"; then + AC_MSG_RESULT(no) +else + AC_MSG_RESULT(yes) + BKCFLAGS="$BKCFLAGS -DHARD_CURRENT" +fi + AC_MSG_CHECKING(for x86 architecture) AX_COMPILE_OPTION(CONFIG_X86,x86=1,x86=0) AX_MSG_RESULT_YN($x86) |