Lines Matching refs:pid
45 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid);
46 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int …
72 int pid, tid; in main() local
78 pid = tid = 0; in main()
106 pid = atoi(argv[++i]); in main()
122 if (tid && !pid) { in main()
146 if (pid) { in main()
148 e = read_thread_stats(e, erase, pid, tid, 1); in main()
150 e = read_process_stats(e, erase, pid); in main()
158 if (pid) { in main()
160 printf("Latencies for thread %d in process %d:\n", tid, pid); in main()
162 printf("Latencies for process %d:\n", pid); in main()
202 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid) { in read_process_stats() argument
209 sprintf(dirname, "/proc/%d/task", pid); in read_process_stats()
212 fprintf(stderr, "Could not open task dir for process %d.\n", pid); in read_process_stats()
224 e = read_thread_stats(e, erase, pid, tid, 0); in read_process_stats()
232 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int … in read_thread_stats() argument
237 sprintf(filename, THREAD_STATS_FILE_FORMAT, pid, tid); in read_thread_stats()