aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-06-07 00:54:43 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-06-07 00:54:43 +0000
commit41abd7afa34cfe8c8935c74ece2f9b757abf7daf (patch)
treea768fcba0eaf6f696288aaa091bf14631c8a8b95 /sys/dev
parent155046394a997e1341d5346364902fd84cb00a46 (diff)
downloadsrc-41abd7afa34cfe8c8935c74ece2f9b757abf7daf.tar.gz
src-41abd7afa34cfe8c8935c74ece2f9b757abf7daf.zip
hwpmc: don't log pid->name more than once
Notes
Notes: svn path=/head/; revision=334747
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hwpmc/hwpmc_mod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
index cb09592a61d1..0a8b347447fe 100644
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -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.