]> git.itanic.dy.fi Git - scan-pagemap/commitdiff
parser: Fix scanning by mapping name
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 15 Aug 2010 19:36:18 +0000 (22:36 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 15 Aug 2010 19:36:18 +0000 (22:36 +0300)
If we scan by a mapping name, we must allow all processes to be
scanned.

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

diff --git a/parse.c b/parse.c
index d13d4c70e20973f28e79f5a703dfbbd824a18353..ad01072c91385ecf639a7e172cd2507c45b9fc22 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -182,6 +182,9 @@ static int should_scan_process(struct parse_opts *opts, struct process *process)
                        match = 1;
        }
 
+       if (opts->parse_mask & PARSE_MAP_NAME)
+               match = 1;
+
        if (opts->parse_mask & PARSE_NOADD_TREE)
                match = !match;