#define PARSE_PID 0x1
#define PARSE_MAP_NAME 0x2
-#define PARSE_PROCESS_NAME 0x4
#define PARSE_DUMP 0x8
#define PARSE_NOADD_TREE 0x10
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) {
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,