opnsense-src/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.c libpmc: fall-back to kernel tables if pmu-events fails 2021-05-13 16:01:24 -03:00
libpmc_json.cc Fix warnings with lib/libpmc 2019-04-14 00:06:49 +00:00
libpmc_pmu_util.c libpmc/hwpmc: fix issues with arm64 pmu-events support 2021-07-21 20:18:00 -03:00
libpmcinternal.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
Makefile libpmc: limit pmu-events to 64-bit powerpc 2021-05-31 17:39:05 -03: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.3 PMC: remove now orphaned PMC for INTEL XScale processors. 2020-12-25 15:21:53 +01:00
pmc.atom.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.atomsilvermont.3 pmc.atomsilvermont(3): fix manlint warnings 2017-04-07 06:00:19 +00:00
pmc.core.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.core2.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
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 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.k8.3 mdoc: remove superfluous paragraph macros. 2014-06-23 18:40:21 +00:00
pmc.mips24k.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.octeon.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.p4.3 mdoc: remove superfluous paragraph macros. 2014-06-23 18:40:21 +00:00
pmc.p5.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.p6.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
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 mdoc: sort SEE ALSO. 2015-01-04 12:38:00 +00:00
pmc.tsc.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
pmc.ucf.3 mdoc: sort SEE ALSO. 2015-01-04 12:38:00 +00:00
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
pmc_allocate.3 pmc_allocate(3): document the count argument 2021-04-21 17:35:03 -03:00
pmc_attach.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_capabilities.3 mdoc: sort SEE ALSO. 2015-01-04 12:38:00 +00:00
pmc_configure_logfile.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_disable.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_event_names_of_class.3 Don't end up manpage titles with a full stop. 2017-05-24 21:02:53 +00:00
pmc_get_driver_stats.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_get_msr.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_init.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_name_of_capability.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_read.3 pmc_read(3): fix manlint error 2017-04-07 06:06:55 +00:00
pmc_set.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmc_start.3 Switch the license boilerplates to our standard one. 2012-02-17 11:09:51 +00:00
pmcformat.h pmc: convert native to jsonl and track TSC value of samples 2018-06-07 02:03:22 +00:00
pmclog.3 pmc(3)/hwpmc(4): update supported Intel processors to rely fully on the 2018-05-26 19:29:19 +00:00
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