diff options
author | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-12-19 20:29:57 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-12-19 20:29:57 +0000 |
commit | 1fe1419ef3319f97e5b1d7d8a4b71bfb89118865 (patch) | |
tree | 7bfe480b9c9a5ae2da4c7859e1449480b33e5b6e /module | |
parent | a829366b720b0abbf6d442285408d2fb01ec2d4d (diff) |
*** empty log message ***
Diffstat (limited to 'module')
-rw-r--r-- | module/sysprof-module.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/module/sysprof-module.c b/module/sysprof-module.c index 3c11b01..0eb2310 100644 --- a/module/sysprof-module.c +++ b/module/sysprof-module.c @@ -20,9 +20,6 @@ */ #include <linux/config.h> -#if !CONFIG_PROFILING -# error Sysprof needs a kernel with profiling support compiled in. -#endif #ifdef CONFIG_SMP # define __SMP__ #endif @@ -41,8 +38,8 @@ #include "sysprof-module.h" #include <linux/version.h> -#if KERNEL_VERSION(2,6,11) > LINUX_VERSION_CODE -# error Sysprof needs a Linux 2.6.11 kernel or later +#if (KERNEL_VERSION(2,6,11) > LINUX_VERSION_CODE) || (!CONFIG_PROFILING) +# error Sysprof needs a Linux 2.6.11 kernel or later, with profiling support compiled in. #endif #include <linux/kallsyms.h> @@ -137,7 +134,6 @@ timer_notify (struct pt_regs *regs) if (!is_user) { trace->addresses[i++] = (void *)0x01; - /* FIXME: doesn't compile on x86-64 */ regs = (void *)current->thread.REG_STACK_PTR0 - sizeof (struct pt_regs); } |