Page MenuHomeFreeBSD

D58468.diff
No OneTemporary

D58468.diff

diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c
--- a/sys/dev/hwpmc/hwpmc_amd.c
+++ b/sys/dev/hwpmc/hwpmc_amd.c
@@ -403,9 +403,6 @@
if (pd->pd_class != a->pm_class)
return (EINVAL);
- if ((a->pm_flags & PMC_F_EV_PMU) == 0)
- return (EINVAL);
-
caps = pm->pm_caps;
PMCDBG2(MDP, ALL, 1,"amd-allocate ri=%d caps=0x%x", ri, caps);
@@ -418,7 +415,8 @@
((pd->pd_caps & PMC_CAP_PRECISE) == 0))
return (EINVAL);
- if (strlen(pmc_cpuid) != 0) {
+ /* PMC_F_EV_PMU: config comes from pmu-events tables. */
+ if ((a->pm_flags & PMC_F_EV_PMU) != 0) {
config = a->pm_md.pm_amd.pm_amd_config;
if ((config & ~amd_config_mask(amd_pmcdesc[ri].pm_subclass,
caps)) != 0)

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 1, 7:10 AM (3 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35712204
Default Alt Text
D58468.diff (709 B)

Event Timeline