Date: Thu, 30 Oct 2025 20:53:40 GMT From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 443258a77ae2 - releng/15.0 - pmcstat: Remove no-op -k option Message-ID: <202510302053.59UKreIB049880@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch releng/15.0 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=443258a77ae2580c68bc310f5ab722b498206fed commit 443258a77ae2580c68bc310f5ab722b498206fed Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2025-10-28 13:12:05 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-10-30 20:53:20 +0000 pmcstat: Remove no-op -k option Commit 53d0b9e438bc ("pmc: Provide full path to modules from kernel linker") made pmcstat's -k option have no effect, but the option was retained for backwards compatibility (while emitting a warning that -k is not in FreeBSD 15). Approved by: re (cperciva) Reviewed by: jrtc27 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D53397 (cherry picked from commit c6b156e360fc5b18ee20bae0fc0c4188c3aadea6) (cherry picked from commit 958659dc9410f332ce0a028d2d5fdc82da8a03dd) --- usr.sbin/pmcstat/pmcstat.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/usr.sbin/pmcstat/pmcstat.c b/usr.sbin/pmcstat/pmcstat.c index 98e14dfb9113..a1f563e5acbc 100644 --- a/usr.sbin/pmcstat/pmcstat.c +++ b/usr.sbin/pmcstat/pmcstat.c @@ -519,7 +519,7 @@ main(int argc, char **argv) CPU_COPY(&rootmask, &cpumask); while ((option = getopt(argc, argv, - "ACD:EF:G:ILM:NO:P:R:S:TUWZa:c:def:gi:k:l:m:n:o:p:qr:s:t:u:vw:z:")) != -1) + "ACD:EF:G:ILM:NO:P:R:S:TUWZa:c:def:gi:l:m:n:o:p:qr:s:t:u:vw:z:")) != -1) switch (option) { case 'A': args.pa_flags |= FLAG_SKIP_TOP_FN_RES; @@ -607,11 +607,6 @@ main(int argc, char **argv) args.pa_flags |= FLAG_SHOW_OFFSET; break; - case 'k': /* pathname to the kernel */ - warnx("WARNING: -k is obsolete, has no effect " - "and will be removed in FreeBSD 15."); - break; - case 'L': do_listcounters = 1; break;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510302053.59UKreIB049880>
