Home | History | Annotate | Download | only in ksmutils

Lines Matching defs:pid

43     pid_t pid;
61 static int getprocname(pid_t pid, char *buf, int len);
132 fprintf(stderr, "Error allocating pid memory\n");
138 fprintf(stderr, "Invalid PID\n");
206 pid_t pid;
211 pid = pm_process_pid(maps[0]->proc);
213 error = snprintf(filename, MAX_FILENAME, "/proc/%d/mem", pid);
297 cur_page->vaddr[cur_page->vaddr_len - 1].pid == pid &&
318 cur_page->vaddr[cur_page->vaddr_len].pid = pid;
379 kp->pages[i].vaddr[j].pid);
401 fprintf(stderr, "Usage: %s [-s | -v | -a | -h ] <pid>\n"
404 " -a Display all the KSM pages in the system. Ignore the pid argument.\n"
429 * Get the process name for a given PID. Inserts the process name into buffer
442 static int getprocname(pid_t pid, char *buf, int len) {
452 if (asprintf(&filename, "/proc/%d/cmdline", (int)pid) < 0) {