summaryrefslogtreecommitdiffstats
path: root/kmtrace/ktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kmtrace/ktrace.c')
-rw-r--r--kmtrace/ktrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmtrace/ktrace.c b/kmtrace/ktrace.c
index 21fca376..cf3c55c0 100644
--- a/kmtrace/ktrace.c
+++ b/kmtrace/ktrace.c
@@ -495,14 +495,14 @@ addAllocationToTree(void)
int i, j;
void *bt[TR_BT_SIZE + 1];
CallerNode* cn = CallTree;
- CallerNode** parent = &CallTree;
+ CallerNode** tqparent = &CallTree;
bt_size = backtrace(bt, TR_BT_SIZE);
for (i = bt_size - 1; i >= 4; i--)
{
if (cn == NULL)
{
- *parent = cn = (CallerNode*) malloc(sizeof(CallerNode));
+ *tqparent = cn = (CallerNode*) malloc(sizeof(CallerNode));
cn->funcAdr = bt[i];
cn->mallocs = 0;
cn->noCallees = 0;
@@ -517,7 +517,7 @@ addAllocationToTree(void)
for (j = 0; j < cn->noCallees; j++)
if (bt[i - 1] == cn->callees[j]->funcAdr)
{
- parent = &cn->callees[j];
+ tqparent = &cn->callees[j];
cn = cn->callees[j];
knownCallee = 1;
break;
@@ -541,7 +541,7 @@ addAllocationToTree(void)
(newSize - cn->maxCallees) * sizeof(CallerNode*));
cn->maxCallees = newSize;
}
- parent = &cn->callees[cn->noCallees++];
+ tqparent = &cn->callees[cn->noCallees++];
cn = 0;
}
}