libpmc: Move libpmc and utils to a new pmc package

Due to the size of libpmc.so.5, this reduces the size of the -utilities
package by 10%.

MFC after:	1 day
Reviewed by:	manu, adrian, emaste
Differential Revision:	https://reviews.freebsd.org/D52662
This commit is contained in:
Lexi Winter 2025-09-23 22:30:49 +01:00
parent ef4b08a7ed
commit 67c3c3a274
8 changed files with 24 additions and 12 deletions

View file

@ -28,11 +28,15 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW:
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
20250923:
Several changes which affect pkgbase users (only):
powerd has been moved to a new FreeBSD-powerd package. If you have
FreeBSD-set-minimal installed, the new package will be installed
automatically, otherwise you may want to install it by hand.
This only affects pkgbase users.
libpmc and related utilities (/usr/sbin/pmc*) have moved to the new
FreeBSD-pmc package. If you use these, you may want to install the
package.
20250918:
mandoc (including /usr/bin/man) has been moved to a new package,

View file

@ -1,5 +1,5 @@
LIB_CXX= pmc
PACKAGE=pmc
LIB_CXX=pmc
SRCS= libpmc.c pmclog.c libpmc_pmu_util.c libpmc_json.cc
INCS= pmc.h pmclog.h pmcformat.h

View file

@ -0,0 +1,12 @@
comment = "Support for hardware performance counters"
desc = <<EOD
The Performance Counters Library (libpmc, -lpmc) provides a programming
interface that allows applications to use hardware performance counters
to gather performance data about specific processes or for the system as
a whole. The library is implemented using the lower-level facilities
offered by the hwpmc(4) driver.
The utilities pmc(8), pmcannotate(8), pmccontrol(8) and pmcstat(8) provide
command-line access to the facilities provided by libpmc.
EOD

View file

@ -1,5 +1,6 @@
.include <src.opts.mk>
PACKAGE= pmc
PROG_CXX= pmc
MAN=
CWARNFLAGS.gcc+= -Wno-redundant-decls

View file

@ -1,6 +1,4 @@
#
#
PACKAGE=pmc
PROG= pmcannotate
MAN= pmcannotate.8

View file

@ -1,6 +1,4 @@
#
#
PACKAGE= pmc
PROG_CXX= pmccontrol
MAN= pmccontrol.8

View file

@ -1,6 +1,4 @@
#
#
PACKAGE= pmc
PROG_CXX= pmcstat
MAN= pmcstat.8

View file

@ -1,3 +1,4 @@
PACKAGE=pmc
PROG= pmcstudy
MAN= pmcstudy.8
SRCS= pmcstudy.c eval_expr.c