Date: Thu, 7 Jun 2018 00:54:43 +0000 (UTC) From: Matt Macy <mmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334747 - head/sys/dev/hwpmc Message-ID: <201806070054.w570shiE059175@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806070054.w570shiE059175>