mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
committed by
Søren Sandmann Pedersen
parent
5baa137e21
commit
6d76b0c486
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user