Lines Matching refs:ppm
87 struct process_pid_map *ppm; member
248 struct process_pid_map *ppm; member
542 struct process_pid_map *ppm; in find_ppm() local
544 ppm = ppm_hash_table[hash_idx]; in find_ppm()
545 while (ppm) { in find_ppm()
546 if (ppm->pid == pid) in find_ppm()
547 return ppm; in find_ppm()
549 ppm = ppm->hash_next; in find_ppm()
558 struct process_pid_map *ppm; in add_ppm_hash() local
560 ppm = find_ppm(pid); in add_ppm_hash()
561 if (!ppm) { in add_ppm_hash()
562 ppm = malloc(sizeof(*ppm)); in add_ppm_hash()
563 memset(ppm, 0, sizeof(*ppm)); in add_ppm_hash()
564 ppm->pid = pid; in add_ppm_hash()
565 strcpy(ppm->comm, name); in add_ppm_hash()
566 ppm->hash_next = ppm_hash_table[hash_idx]; in add_ppm_hash()
567 ppm_hash_table[hash_idx] = ppm; in add_ppm_hash()
570 return ppm; in add_ppm_hash()
625 struct process_pid_map *ppm = find_ppm(pid); in find_process_name() local
627 if (ppm) in find_process_name()
628 return ppm->comm; in find_process_name()
645 struct process_pid_map *ppm = ppi->ppm; in ppi_hash() local
648 return ppi_hash_pid(ppm->pid); in ppi_hash()
650 return ppi_hash_name(ppm->comm); in ppi_hash()
675 struct process_pid_map *ppm = ppi->ppm; in find_ppi_by_name() local
677 if (!strcmp(ppm->comm, name)) in find_ppi_by_name()
693 struct process_pid_map *ppm = ppi->ppm; in find_ppi_by_pid() local
695 if (ppm->pid == pid) in find_ppi_by_pid()
717 if (ppi && ppi->ppm->pid != pid) in find_ppi()
965 iot->ppm = find_ppm(pid); in find_track()
966 if (!iot->ppm) in find_track()
967 iot->ppm = add_ppm_hash(pid, "unknown"); in find_track()
1053 struct per_process_info *ppi = find_ppi(iot->ppm->pid); in log_track_insert()
1090 struct per_process_info *ppi = find_ppi(iot->ppm->pid); in log_track_issue()
1125 struct per_process_info *ppi = find_ppi(iot->ppm->pid); in log_track_complete()
1149 ppi->ppm = find_ppm(pid); in find_process_io_stats()
1150 if (!ppi->ppm) in find_process_io_stats()
1151 ppi->ppm = add_ppm_hash(pid, "unknown"); in find_process_io_stats()
1707 res = strverscmp(ppi1->ppm->comm, ppi2->ppm->comm); in ppi_name_compare()
1709 res = ppi1->ppm->pid > ppi2->ppm->pid; in ppi_name_compare()
1751 struct process_pid_map *ppm = ppi->ppm; in show_process_stats() local
1755 sprintf(name, "%s (%u, ...)", ppm->comm, ppm->pid); in show_process_stats()
1757 sprintf(name, "%s (%u)", ppm->comm, ppm->pid); in show_process_stats()