opnsense-src/lib/libpmc
Ali Mashtizadeh f0b8806a73 libpmc: Fix the L3 counters for AMD Zen 1-4
On AMD processors libpmc was using the topic field (based on filename) to
determine the counter's subclass.  Unfortunately, the JSON definitions for
AMD Zen 1-4 have the L3 counters in files shared with other counters.

This change has libpmc to use the pmu field (which is derived from the Unit
field in JSON) to determine the correct counter subclass.

Reviewed by:	mhorne
MFC after:	2 weeks
Sponsored by:	Netflix
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1984

(cherry picked from commit c215eef345501ce7dda374909b3195d9d69a4e9f)
2026-04-16 12:10:59 -03:00
..
pmu-events pmc: Import Intel Granite Rapids events 2026-02-06 16:19:02 +01:00
libpmc.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
libpmc_json.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libpmc_pmu_util.c libpmc: Fix the L3 counters for AMD Zen 1-4 2026-04-16 12:10:59 -03:00
libpmcinternal.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile libpmc: Move libpmc and utils to a new pmc package 2025-09-25 02:00:40 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
pmc.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.amd.3 manuals: Fix dates 2024-10-28 12:26:03 -03:00
pmc.atom.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.atomsilvermont.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.cmn-600.3 man: Misc syntax fixes 2024-11-14 16:59:22 -04:00
pmc.core.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.core2.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.corei7.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.corei7uc.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.dmc-620.3 man: Misc syntax fixes 2024-11-14 16:59:22 -04:00
pmc.h lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pmc.haswell.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.haswelluc.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.haswellxeon.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.iaf.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.ivybridge.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.ivybridgexeon.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.sandybridge.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.sandybridgeuc.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.sandybridgexeon.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.soft.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.tsc.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.ucf.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.westmere.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc.westmereuc.3 pmc.amd(3): rename from pmc.k8(3) 2023-10-18 15:05:45 -03:00
pmc_allocate.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_attach.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_capabilities.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_configure_logfile.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_disable.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_event_names_of_class.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_get_driver_stats.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_get_msr.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_init.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_name_of_capability.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_read.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_set.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmc_start.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmcformat.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
pmclog.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
pmclog.c lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pmclog.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00