hwpmc: don't log pid->name more than once
This commit is contained in:
parent
155046394a
commit
41abd7afa3
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user