]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - parse.c
Parser: Remove support for parsing processes by name
[scan-pagemap] / parse.c
diff --git a/parse.c b/parse.c
index 6434b72c9b498c116dc66df39c42e06deae4d0ad..b3c87e2087a9bff2dcce012a6197c222b3b87ca8 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -107,12 +107,6 @@ static int should_scan_process(struct parse_opts *opts, struct process *process)
        int match = 0;
        char *name;
 
-       if (is_parse_option(opts, PARSE_PROCESS_NAME)) {
-               name = get_name_by_pid(process->pid);
-               if (!strcmp(opts->name, name ? name : ""))
-                       match = 1;
-       }
-
        if (is_parse_option(opts, PARSE_PID)) {
                list_for_each_entry(pid, &opts->pidlist, list) {
                        if (pid->pid == process->pid) {
@@ -342,15 +336,6 @@ int scan_all_pids(struct pageframe *pf, struct process *process_list,
        int pid;
        int count = 0;
 
-       if (is_parse_option(opts, PARSE_PROCESS_NAME)) {
-               while ((pid = get_next_pid_by_name(&dir, opts->name))) {
-                       count += read_pageframe_with_threads(pid, pf,
-                                                       process_list,
-                                                       opts);
-               }
-               dir = NULL;
-       }
-
        if (is_parse_option(opts, PARSE_PID)) {
                list_for_each_entry(pidlist, &opts->pidlist, list) {
                        count += read_pageframe_with_threads(pidlist->pid, pf,