From ffd580809472d8fb1c335e1a24f15623fb323a06 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sat, 14 Aug 2010 19:56:09 +0300 Subject: [PATCH] parser: Fix the order of argumets for list_add() 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 --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 386e50d..850b2a1 100644 --- 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) -- 2.45.0