Remove START_OF_STACK check.

Mon Jan  9 09:58:25 2006  Soeren Sandmann  <sandmann@redhat.com>

	* module/sysprof-module.c (timer_notify): Remove START_OF_STACK
	check.
This commit is contained in:
Soeren Sandmann
2006-01-09 14:58:42 +00:00
committed by Søren Sandmann Pedersen
parent 5baa137e21
commit 6d76b0c486
2 changed files with 5 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 9 09:58:25 2006 Soeren Sandmann <sandmann@redhat.com>
* module/sysprof-module.c (timer_notify): Remove START_OF_STACK
check.
Mon Jan 9 00:59:21 2006 Soeren Sandmann <sandmann@redhat.com>
* process.c (read_maps): Use gulong for addresses. Bug reported by

View File

@ -103,11 +103,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
void *frame_pointer;
static int n_samples;
SysprofStackTrace *trace = head;
@ -144,7 +139,6 @@ timer_notify (struct pt_regs *regs)
while (((result = 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;