summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@src.gnome.org>2007-11-19 17:56:02 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2007-11-19 17:56:02 +0000
commitd3b5cc446fb9c0209635eb3aec4106426d5dd788 (patch)
tree1d34eb582675a61133f632556399fa69dfd781bc /module
parent8d73f2d3916a74c6a10db7e63baff412f25594ac (diff)
Update TODO
svn path=/trunk/; revision=394
Diffstat (limited to 'module')
-rw-r--r--module/sysprof-module.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/module/sysprof-module.c b/module/sysprof-module.c
index ce17590..d5dfe9e 100644
--- a/module/sysprof-module.c
+++ b/module/sysprof-module.c
@@ -187,7 +187,9 @@ heuristic_trace (struct pt_regs *regs,
#endif
unsigned long i;
int j;
+#if 0
int n_bytes = minimum (eos - esp, (SYSPROF_MAX_ADDRESSES - 1) * sizeof (void *));
+#endif
j = 1;
for (i = esp; i < eos && j < SYSPROF_MAX_ADDRESSES; i += sizeof (void *)) {
@@ -198,10 +200,10 @@ heuristic_trace (struct pt_regs *regs,
break;
vma = find_vma (current->mm, x);
- if (vma && vma->vm_flags & VM_EXEC && vma->vm_start <= x && x <= vma->vm_end) {
- trace->addresses[j++] = x;
- }
-
+
+ if (vma && vma->vm_flags & VM_EXEC)
+ if (vma->vm_start <= x && x <= vma->vm_end)
+ trace->addresses[j++] = x;
}
#if 0
@@ -284,6 +286,8 @@ timer_notify (struct pt_regs *regs)
heuristic_trace (regs, trace);
#elif CONFIG_X86
framepointer_trace (regs, trace);
+#else
+#error Sysprof only supports the i386 and x86-64 architectures
#endif
}