hwpmc: don't log pid->name more than once

This commit is contained in:
Matt Macy 2018-06-07 00:54:43 +00:00
parent 155046394a
commit 41abd7afa3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334747

View File

@ -1821,7 +1821,8 @@ pmc_log_kernel_mappings(struct pmc *pm)
if (po->po_flags & PMC_PO_INITIAL_MAPPINGS_DONE)
return;
if (PMC_TO_MODE(pm) == PMC_MODE_SS)
pmc_process_allproc(pm);
/*
* Log the current set of kernel modules.
*/
@ -4041,8 +4042,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args)
pmc = NULL;
break;
}
if (mode == PMC_MODE_SS)
pmc_process_allproc(pmc);
/*
* Return the allocated index.