From: John L. <mov...@us...> - 2005-05-04 02:47:13
|
Update of /cvsroot/oprofile/oprofile/daemon/liblegacy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6993/daemon/liblegacy Modified Files: opd_kernel.c Log Message: fix for the 2.4 --no-vmlinux workaround Index: opd_kernel.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/daemon/liblegacy/opd_kernel.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -p -d -r1.8 -r1.9 --- opd_kernel.c 14 Apr 2005 02:14:17 -0000 1.8 +++ opd_kernel.c 4 May 2005 02:47:03 -0000 1.9 @@ -391,10 +391,10 @@ void opd_handle_kernel_sample(unsigned l } -#define KERNEL_OFFSET 0xC0000000 - int opd_eip_is_kernel(unsigned long eip) { +#ifdef __i386 +#define KERNEL_OFFSET 0xC0000000 /* * kernel_start == 0 when using --no-vmlinux. * This is wrong, wrong, wrong, wrong, but we don't have much @@ -402,6 +402,7 @@ int opd_eip_is_kernel(unsigned long eip) */ if (!kernel_start) return eip >= KERNEL_OFFSET; +#endif return eip >= kernel_start; } |