freebsd-skq/lib/libpmc
Mitchell Horne dfdc57e8aa libpmc: fall-back to kernel tables if pmu-events fails
On x86, the pmu_events table is the source of truth for finding
supported events. However, events not found there may still be present
in the kernel's static event tables. For example, the pmc.soft(3) events
will never be available from pmu-events.

Update pmc_allocate() to search the legacy event tables if
pmc_pmu_pmcallocate() fails to return a result. This allows both event
sources to be consulted before giving up, thus restoring pmc.soft(3) and
pmc.tsc(3) on x86.

Reviewed by:	emaste
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30216
2021-05-13 16:01:24 -03:00
..
pmu-events Fix additional memory leak in process_mapfile 2020-09-17 18:24:51 +00:00
libpmc_json.cc Fix warnings with lib/libpmc 2019-04-14 00:06:49 +00:00
libpmc_pmu_util.c libpmc: Use known pmc_cpuid buffer size 2020-07-28 02:56:26 +00:00
libpmc.c libpmc: fall-back to kernel tables if pmu-events fails 2021-05-13 16:01:24 -03:00
libpmcinternal.h
Makefile libpmc: fix linking with C programs 2021-02-15 15:54:18 -07:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.inc Fix warnings with lib/libpmc 2019-04-14 00:06:49 +00:00
pmc_allocate.3 pmc_allocate(3): document the count argument 2021-04-21 17:35:03 -03:00
pmc_attach.3
pmc_capabilities.3
pmc_configure_logfile.3
pmc_disable.3
pmc_event_names_of_class.3
pmc_get_driver_stats.3
pmc_get_msr.3
pmc_init.3
pmc_name_of_capability.3
pmc_read.3
pmc_set.3
pmc_start.3
pmc.3 PMC: remove now orphaned PMC for INTEL XScale processors. 2020-12-25 15:21:53 +01:00
pmc.atom.3
pmc.atomsilvermont.3
pmc.core2.3
pmc.core.3
pmc.corei7.3
pmc.corei7uc.3
pmc.h
pmc.haswell.3
pmc.haswelluc.3
pmc.haswellxeon.3
pmc.iaf.3
pmc.ivybridge.3
pmc.ivybridgexeon.3
pmc.k7.3
pmc.k8.3
pmc.mips24k.3
pmc.octeon.3
pmc.p4.3
pmc.p5.3
pmc.p6.3
pmc.sandybridge.3 Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
pmc.sandybridgeuc.3 Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
pmc.sandybridgexeon.3
pmc.soft.3
pmc.tsc.3
pmc.ucf.3
pmc.westmere.3
pmc.westmereuc.3
pmcformat.h pmc: convert native to jsonl and track TSC value of samples 2018-06-07 02:03:22 +00:00
pmclog.3
pmclog.c pmc: convert native to jsonl and track TSC value of samples 2018-06-07 02:03:22 +00:00
pmclog.h pmc: convert native to jsonl and track TSC value of samples 2018-06-07 02:03:22 +00:00