]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
parser: Fix the order of argumets for list_add()
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 14 Aug 2010 16:56:09 +0000 (19:56 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 14 Aug 2010 16:56:09 +0000 (19:56 +0300)
The parameters were in wrong order, thus causing the new pageframe
referencing node to be lost for most of the processes. The results
were thus showing only references for only the first pid that was
found, ignoring everything else. This fix will thus improve the
results dramatically.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
parse.c

diff --git a/parse.c b/parse.c
index 386e50dab082c29b2163d2f41da2cae14f72ef7c..850b2a1a55938961f493e0969c69839d72c725e9 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -266,7 +266,7 @@ static int parse_pageframe(FILE *file, struct pageframe *pf_tree,
                        } else {
                                tmp = alloc_maplist();
                                tmp->map = map;
-                               list_add(&match->ml->list, &tmp->list);
+                               list_add(&tmp->list, &match->ml->list);
                        }
 
                        if (match->page_present)