From 04b1b297affb56682e1c2413a997abfde9833f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Thu, 29 Apr 2004 18:36:23 +0000 Subject: [PATCH] disable stack traces for page faults --- sysprof-module.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sysprof-module.c b/sysprof-module.c index 75e36eb2..dd322253 100644 --- a/sysprof-module.c +++ b/sysprof-module.c @@ -157,11 +157,16 @@ hijacked_nopage (struct vm_area_struct * area, if (current && current->pid != 0 && disk) { +#if 0 generate_stack_trace (current, head); +#endif -/* head->pid = current->pid; */ -/* head->addresses[0] = (void *)address; */ -/* head->truncated = 0; */ + memset (head, 0, sizeof (SysprofStackTrace)); + + head->pid = current->pid; + head->addresses[0] = (void *)address; + head->truncated = 0; + head->n_addresses = 1; if (area->vm_file) {