freebsd-skq/lib/libpmc
Ryan Moeller 24e337bec5 libpmc: Use known pmc_cpuid buffer size
Use the existing PMC_CPUID_LEN to size pmc_cpuid in the kernel and various
buffers for reading it in libpmc.  This avoids some extra syscalls and
malloc/frees.

While in here, use strlcpy to copy a user-provided cpuid string instead of
memcpy, to make sure we terminate the buffer.

Reviewed by:	mav
MFC after:	1 week
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D25679
2020-07-28 02:56:26 +00:00
..
pmu-events Update AMD Zen1 and add Zen2 events mapping. 2020-07-13 16:23:02 +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 Add support for BERI statcounters. 2019-09-18 16:13:50 +00:00
libpmcinternal.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
Makefile Avoid rebuilding libpmc in every incremental rebuild 2020-07-15 12:07:47 +00: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_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 Revert r336773: it removed too much. 2018-07-27 21:25:01 +00:00
pmc.atom.3
pmc.atomsilvermont.3
pmc.core2.3
pmc.core.3
pmc.corei7.3
pmc.corei7uc.3
pmc.h hwpmc: add summary command and further metadata extensions 2018-06-06 02:48:09 +00:00
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
pmc.sandybridgeuc.3
pmc.sandybridgexeon.3
pmc.soft.3
pmc.tsc.3
pmc.ucf.3
pmc.westmere.3
pmc.westmereuc.3
pmc.xscale.3 Revert r336773: it removed too much. 2018-07-27 21:25:01 +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