svn commit: r334747 - head/sys/dev/hwpmc

Matt Macy mmacy at FreeBSD.org
Thu Jun 7 00:54:44 UTC 2018


Author: mmacy
Date: Thu Jun  7 00:54:43 2018
New Revision: 334747
URL: https://svnweb.freebsd.org/changeset/base/334747

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

Modified:
  head/sys/dev/hwpmc/hwpmc_mod.c

Modified: head/sys/dev/hwpmc/hwpmc_mod.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_mod.c	Thu Jun  7 00:54:11 2018	(r334746)
+++ head/sys/dev/hwpmc/hwpmc_mod.c	Thu Jun  7 00:54:43 2018	(r334747)
@@ -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_a
 			pmc = NULL;
 			break;
 		}
-		if (mode == PMC_MODE_SS)
-			pmc_process_allproc(pmc);
+
 
 		/*
 		 * Return the allocated index.


More information about the svn-src-head mailing list