git: 846125d00353 - stable/15 - libpmc: Move libpmc and utils to a new pmc package
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Sep 2025 01:01:33 UTC
The branch stable/15 has been updated by ivy:
URL: https://cgit.FreeBSD.org/src/commit/?id=846125d003534717be3fb8e076493e487237b394
commit 846125d003534717be3fb8e076493e487237b394
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2025-09-23 21:30:49 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-09-25 01:00:40 +0000
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
(cherry picked from commit 67c3c3a274468d09925af3cf64da3f9cf878cc80)
---
UPDATING | 6 +++++-
lib/libpmc/Makefile | 4 ++--
release/packages/ucl/pmc-all.ucl | 12 ++++++++++++
usr.sbin/pmc/Makefile | 1 +
usr.sbin/pmcannotate/Makefile | 4 +---
usr.sbin/pmccontrol/Makefile | 4 +---
usr.sbin/pmcstat/Makefile | 4 +---
usr.sbin/pmcstudy/Makefile | 1 +
8 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/UPDATING b/UPDATING
index 52b7ebf4ad65..1b691f57d9a1 100644
--- a/UPDATING
+++ b/UPDATING
@@ -13,11 +13,15 @@ Items affecting the ports and packages system can be found in
and/or ports.
20250924:
+ 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:
The MANSPLITPKG knob has been turned off by default, so pkgbase builds
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index 8728b0c1c76d..590f719ebff4 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -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
diff --git a/release/packages/ucl/pmc-all.ucl b/release/packages/ucl/pmc-all.ucl
new file mode 100644
index 000000000000..5c8e44d264b2
--- /dev/null
+++ b/release/packages/ucl/pmc-all.ucl
@@ -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
diff --git a/usr.sbin/pmc/Makefile b/usr.sbin/pmc/Makefile
index 02292917ab57..d2f482b8fa5c 100644
--- a/usr.sbin/pmc/Makefile
+++ b/usr.sbin/pmc/Makefile
@@ -1,5 +1,6 @@
.include <src.opts.mk>
+PACKAGE= pmc
PROG_CXX= pmc
MAN=
CWARNFLAGS.gcc+= -Wno-redundant-decls
diff --git a/usr.sbin/pmcannotate/Makefile b/usr.sbin/pmcannotate/Makefile
index 8f408590a743..9c0eecbcafe3 100644
--- a/usr.sbin/pmcannotate/Makefile
+++ b/usr.sbin/pmcannotate/Makefile
@@ -1,6 +1,4 @@
-#
-#
-
+PACKAGE=pmc
PROG= pmcannotate
MAN= pmcannotate.8
diff --git a/usr.sbin/pmccontrol/Makefile b/usr.sbin/pmccontrol/Makefile
index de6224979a60..976ff05fb457 100644
--- a/usr.sbin/pmccontrol/Makefile
+++ b/usr.sbin/pmccontrol/Makefile
@@ -1,6 +1,4 @@
-#
-#
-
+PACKAGE= pmc
PROG_CXX= pmccontrol
MAN= pmccontrol.8
diff --git a/usr.sbin/pmcstat/Makefile b/usr.sbin/pmcstat/Makefile
index 7e0c671e38ac..d09b05a445ec 100644
--- a/usr.sbin/pmcstat/Makefile
+++ b/usr.sbin/pmcstat/Makefile
@@ -1,6 +1,4 @@
-#
-#
-
+PACKAGE= pmc
PROG_CXX= pmcstat
MAN= pmcstat.8
diff --git a/usr.sbin/pmcstudy/Makefile b/usr.sbin/pmcstudy/Makefile
index ca0efde8d61a..4e2355be3683 100644
--- a/usr.sbin/pmcstudy/Makefile
+++ b/usr.sbin/pmcstudy/Makefile
@@ -1,3 +1,4 @@
+PACKAGE=pmc
PROG= pmcstudy
MAN= pmcstudy.8
SRCS= pmcstudy.c eval_expr.c