From: Timo Kokkonen Date: Sun, 15 Aug 2010 19:36:18 +0000 (+0300) Subject: parser: Fix scanning by mapping name X-Git-Url: http://git.itanic.dy.fi/?p=scan-pagemap;a=commitdiff_plain;h=5c06f97b8a1dfa306e42a7354cce9adcc568f06d parser: Fix scanning by mapping name If we scan by a mapping name, we must allow all processes to be scanned. Signed-off-by: Timo Kokkonen --- diff --git a/parse.c b/parse.c index d13d4c7..ad01072 100644 --- 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;