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,