opnsense-src/lib
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
..
atf Import atf 0.22 snapshot ca73d08c3fc1ecffc1f1c97458c31ab82c12bb01 2021-02-04 15:03:05 +00:00
clang libllvmminimal: Add missing Support/ABIBreak.cpp 2021-01-27 19:19:00 +00:00
csu
flua lib/flua/libjail: Allow empty params table 2021-03-02 18:32:22 -05:00
geom Minor grammar nit 2021-03-03 16:20:29 +00:00
googletest Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
kyua
lib9p lib9p: fix building on systems without capser 2021-01-04 20:48:48 +01:00
lib80211 lib80211: Start adding 11ac ETSI bits to regdomain.xml 2021-03-18 11:09:10 +00:00
libalias Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
libarchive Don't include libarchive fuzz tests by default 2021-01-25 15:09:26 +00:00
libauditd
libbe When be_activate() turns on a new boot environment, it always deactivates 2021-01-08 09:23:16 -08:00
libbearssl
libbegemot
libblacklist
libblocksruntime
libbluetooth
libbsdstat
libbsm
libbsnmp
libbz2
libc syslog.3 - Add detail about LOG_PID 2021-05-13 16:23:44 +02:00
libc++
libc++experimental
libc_nonshared
libcalendar
libcam libcam(3): make cam_getccb(3) zero the whole ccb, not just the header 2020-12-29 14:26:06 +00:00
libcapsicum
libcasper cap_sysctl.3: Fix bugs in the example 2021-04-28 10:38:52 -04:00
libclang_rt Allow using sanitizers for ssp tests with out-of-tree compiler 2021-03-12 17:15:33 +00:00
libcom_err
libcompat
libcompiler_rt Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
libcrypt
libcuse
libcxxrt
libdevctl
libdevdctl Fix race in case of device destruction. 2021-04-13 11:25:27 -04:00
libdevinfo
libdevstat
libdl libc: include rtld.h into static implementations of rtld interface 2021-04-09 23:46:24 +03:00
libdpv Bump shared library versions after ncurses bump in 13. 2021-02-01 17:11:49 -08:00
libdwarf
libedit sh(1): autocomplete commands 2021-03-29 11:14:27 +02:00
libefivar
libelf
libelftc
libevent1
libexecinfo
libexpat
libfetch libfetch: Retry with proxy auth when server returns 407 2021-04-01 18:02:57 -03:00
libfigpar
libgcc_eh
libgcc_s Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
libgeom Modernize geom_stats_snapshot_get 2021-03-04 07:45:48 -07:00
libgpio
libgssapi Remove __NO_TLS. 2021-02-23 20:08:10 +02:00
libiconv_modules
libifconfig libifconfig: Overhaul ifconfig_media_* interfaces 2021-03-05 04:15:55 -05:00
libipsec Fix some common typos in comments 2021-03-13 18:26:15 +01:00
libipt
libjail
libkiconv libkiconv: address memory leak in not-found cases 2021-04-22 19:32:34 -04:00
libkvm libkvm: Refine the previous commit (645eaa2cca) 2021-03-03 18:50:45 -05:00
libldns
liblua contrib/lua: update to 5.4.2 2021-01-13 23:56:18 -06:00
liblutok
liblzma Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libmagic Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libmd
libmemstat
libmilter
libmp
libmt Add the LTO-9 density code to libmt and the mt(1) man page. 2020-12-10 21:06:06 +00:00
libnetbsd
libnetgraph
libnetmap libnetmap: reset errno in nmreq_register_decode() 2021-04-02 14:31:57 +00:00
libngatm
libnv libpfct: Fix PIC flag 2021-04-17 22:10:13 +02:00
libomp
libopenbsd
libopencsd
libopie
libpam pam: add option to not prompt for password if it's set to empty 2021-04-03 13:05:50 +01:00
libpathconv
libpcap
libpe
libpfctl pf: Support killing 'matching' states 2021-05-07 22:13:31 +02:00
libpjdlog
libpmc libpmc: fall-back to kernel tables if pmu-events fails 2021-05-13 16:01:24 -03:00
libpmcstat
libproc Remove the MK_LIBCPLUSPLUS option 2021-02-01 09:32:07 +00:00
libprocstat Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
libradius
libregex libregex: re-enable make check 2021-01-08 13:58:35 -06:00
librpcsec_gss
librpcsvc
librss
librt pkgbase: Move librt to clibs 2021-05-13 17:41:24 +02:00
librtld_db
libsbuf
libsdp
libsecureboot
libsm
libsmb
libsmdb
libsmutil
libsqlite3
libssp
libssp_nonshared
libstats
libstdbuf
libstdthreads Update Makefile.depend files 2019-12-11 17:37:53 +00:00
libsysdecode libsysdecode: fix decoding of TCP_NOPUSH and TCP_MD5SIG 2021-02-09 23:42:27 +01:00
libtacplus
libtelnet
libthr rtld: make dlerror() thread-local 2021-04-10 17:33:34 +03:00
libthread_db
libucl
libufs Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
libugidfw
libulog
libunbound
libusb Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libusbhid
libutil setclassenvironment: trim leading spaces in variable names 2021-04-12 01:05:10 +03:00
libveriexec Do not claim libbearssl et al are INTERNALLIB 2020-04-01 05:45:12 +00:00
libvgl
libvmmapi libvmm: explicitly save and restore errno in vm_open() 2021-05-11 15:11:52 -08:00
libwrap
libxo pkgbase: Install libxo test files in the tests package 2021-01-04 16:20:26 +01:00
liby
libypclnt
libz Convert libs with pc files to use PCFILES 2021-03-16 07:13:07 +01:00
libzstd libprivatezstd: Restrict symbol visibility similar to upstream 2021-01-03 11:26:46 -08:00
msun msun fixes for SPE 2021-05-05 20:57:33 -05:00
ncurses expand @TPUT@ in ncurses manpages 2021-04-14 18:16:59 +03:00
ofed Fix ibnd_* manpages sources 2021-02-18 15:59:34 +01:00
tests
Makefile pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
Makefile.inc