diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2022-05-31 04:02:06 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2022-05-31 04:04:43 +0000 |
| commit | 037dd0a9677144a870a381a1bbccbe61e34628dd (patch) | |
| tree | 00de679b55d1ddd39cd2c8124e5be5a3118066c8 /lib | |
| parent | f083739350fbb541b37783a23e8d7fd2aba03e07 (diff) | |
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libpmc/libpmc_pmu_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpmc/libpmc_pmu_util.c b/lib/libpmc/libpmc_pmu_util.c index 765196ecc8ac..a7c090ceb4d3 100644 --- a/lib/libpmc/libpmc_pmu_util.c +++ b/lib/libpmc/libpmc_pmu_util.c @@ -510,7 +510,7 @@ pmc_pmu_amd_pmcallocate(const char *event_name, struct pmc_op_pmcallocate *pm, if (ped->ped_edge) amd->pm_amd_config |= AMD_PMC_EDGE; if (ped->ped_inv) - amd->pm_amd_config |= AMD_PMC_EDGE; + amd->pm_amd_config |= AMD_PMC_INVERT; if (pm->pm_caps & PMC_CAP_INTERRUPT) amd->pm_amd_config |= AMD_PMC_INT; } @@ -553,7 +553,7 @@ pmc_pmu_intel_pmcallocate(const char *event_name, struct pmc_op_pmcallocate *pm, if (ped->ped_any) iap->pm_iap_config |= IAP_ANY; if (ped->ped_inv) - iap->pm_iap_config |= IAP_EDGE; + iap->pm_iap_config |= IAP_INV; if (pm->pm_caps & PMC_CAP_INTERRUPT) iap->pm_iap_config |= IAP_INT; return (0); |
