summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@redhat.com>2006-01-09 14:57:42 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2006-01-09 14:57:42 +0000
commit0e5d438801883c1ba49180e03e15ed80e319ce30 (patch)
treeb661ed935c79e76ad8d5f76f44d527a052376330
parentf17407b872185d8f9175358e053eb19895b251b8 (diff)
Remove START_OF_STACK check.
Mon Jan 9 09:56:46 2006 Soeren Sandmann <sandmann@redhat.com> * module/sysprof-module.c (timer_notify): Remove START_OF_STACK check.
-rw-r--r--ChangeLog5
-rw-r--r--module/sysprof-module.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 20943ad..b86b341 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 9 09:56:46 2006 Soeren Sandmann <sandmann@redhat.com>
+
+ * module/sysprof-module.c (timer_notify): Remove START_OF_STACK
+ check.
+
Mon Jan 9 00:53:35 2006 Soeren Sandmann <sandmann@redhat.com>
* process.c (read_maps): Use gulong for addresses. Bug reported by
diff --git a/module/sysprof-module.c b/module/sysprof-module.c
index 8a5cb58..cca6397 100644
--- a/module/sysprof-module.c
+++ b/module/sysprof-module.c
@@ -112,11 +112,6 @@ read_frame (void *frame_pointer, StackFrame *frame)
static int
timer_notify (struct pt_regs *regs)
{
-#ifdef CONFIG_HIGHMEM
-# define START_OF_STACK 0xFF000000
-#else
-# define START_OF_STACK 0xBFFFFFFF
-#endif
static int n_samples;
SysprofStackTrace *trace = head;
int i;
@@ -161,7 +156,6 @@ timer_notify (struct pt_regs *regs)
while (read_frame (frame_pointer, &frame) == 0 &&
i < SYSPROF_MAX_ADDRESSES &&
- ((unsigned long)frame_pointer) < START_OF_STACK &&
(unsigned long)frame_pointer >= regs->REG_STACK_PTR)
{
trace->addresses[i++] = (void *)frame.return_address;