1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00
freebsd/lib/libpmc
Mitchell Horne 27ea55fc65 libpmc/hwpmc: fix issues with arm64 pmu-events support
Due to a mis-merge, the changes committed to libpmc never called
pmu_parse_event(), or set pm->pm_ev. However, this field shouldn't be
used to carry the actual pmc event code anyway, as it is expected to
contain the index into the pmu event array (otherwise, it breaks event
name lookup in pmclog_get_event()). Add a new MD field,
pm_md.pm_md_config, to pass the raw event code to arm64_allocate_pmc().

Additionally, the change made to pmc_md_op_pmcallocate was incorrect, as
this is a union, not a struct. Restore the proper padding size.

Reviewed by:	luporl, ray, andrew
Fixes:		28dd6730a5 ("libpmc: enable pmu_utils on arm64")
Fixes:		8cc3815f02 ("hwpmc_arm64: accept raw event codes...")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D31221
2021-07-21 20:18:00 -03:00
..
pmu-events libpmc: Import AMD Zen 3 PMU events 2021-06-30 18:21:23 -03:00
libpmc_json.cc
libpmc_pmu_util.c libpmc/hwpmc: fix issues with arm64 pmu-events support 2021-07-21 20:18:00 -03: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: limit pmu-events to 64-bit powerpc 2021-05-31 17:39:05 -03:00
Makefile.depend
Makefile.inc
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(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.corei7uc.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.h libpmc: eliminate pmc_pmu_stat_mode() 2021-05-31 17:39:05 -03:00
pmc.haswell.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.haswelluc.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.haswellxeon.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.iaf.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.ivybridge.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.ivybridgexeon.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.k7.3
pmc.k8.3
pmc.mips24k.3
pmc.octeon.3
pmc.p4.3
pmc.p5.3
pmc.p6.3
pmc.sandybridge.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.sandybridgeuc.3 Fix a few mandoc issues 2020-10-09 19:12:44 +00:00
pmc.sandybridgexeon.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.soft.3
pmc.tsc.3
pmc.ucf.3
pmc.westmere.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmc.westmereuc.3 pmc(3): mandoc clean ups 2021-07-12 06:28:03 +02:00
pmcformat.h
pmclog.3
pmclog.c
pmclog.h