Lines Matching +full:rw +full:- +full:p
111 printf(" -a RW sorted by pid & file types\n"); in show_usage()
112 printf(" -f RW sorted by file types\n"); in show_usage()
113 printf(" -p RW sorted by pid\n"); in show_usage()
114 printf(" -m major number\n"); in show_usage()
115 printf(" -n minor number\n"); in show_usage()
121 const char *option_string = "fm:n:p"; in parse_options()
135 case 'p': in parse_options()
156 if (entry->pid == pid) in get_pid_entry()
170 pent->pid = atoh(ptr); in handle_tp_pid()
173 strcpy(pent->name, ptr); in handle_tp_pid()
180 int pid, type, rw, len; in handle_tp_ios() local
181 struct pid_ent *p; in handle_tp_ios() local
191 rw = atoh(ptr); in handle_tp_ios()
201 /* update per-pid stat */ in handle_tp_ios()
202 p = get_pid_entry(pid); in handle_tp_ios()
203 p->io[type][rw & 0x1] += len; in handle_tp_ios()
204 p->total_io[rw & 0x1] += len; in handle_tp_ios()
207 total_io[type][rw & 0x1] += len; in handle_tp_ios()
258 entry->pid, entry->name, in __print_pid()
259 entry->total_io[READ], in __print_pid()
260 entry->total_io[WRITE]); in __print_pid()
263 entry->io[i][READ], in __print_pid()
264 entry->io[i][WRITE]); in __print_pid()