sysutils/turbostat: fix bus error on Intel(R) Core(TM) Ultra 7 155H
This patch makes turbostat working on Intel(R) Core(TM) Ultra 7 155H
Patch is straighforward to avoid "-1" as argument for cpuset
PR: 283007
Reviewed by: fuz
Sponsored by: Postgres Professional
sysutils/turbostat: unbreak runtime on FreeBSD >= 13.1
$ turbostat
turbostat version 17.06.23 - Len Brown <lenb@kernel.org>
Segmentation fault
* thread #1, name = 'turbostat', stop reason = signal SIGSEGV: invalid address
(fault address: 0x0)
frame #0: 0x0000000000216992 turbostat`topology_probe at turbostat.c:4685:7
4682 * Validate that all cpus in cpu_subset are also in
cpu_present_set
4683 */
4684 for (i = 0; i < CPU_SUBSET_MAXCPUS; ++i) {
-> 4685 if (CPU_ISSET_S(i, cpu_subset_size, cpu_subset))
4686 if (!CPU_ISSET_S(i, cpu_present_setsize,
cpu_present_set))
4687 err(1, "cpu%d not present", i);
4688 }
(Only the first 15 lines of the commit message are shown above )
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
sysutils/turbostat: Fix reading topology with multiple packages
Fixed a bug where core identifiers within a package would not
count from zero. This caused a out-of-bounds array access when
multiple packages were present.
Also gracefully handle the absence of the kern.intrs sysctl (added
in 12.0), and don't use reallocarray (added in 11.0).
PR: 230066
Reported by: kbowling
Submitted by: D Scott Phillips <d.scott.phillips@intel.com> (maintainer)