<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/modules/hwpmc, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>hwpmc: Initial support for AMD IBS</title>
<updated>2026-02-27T21:22:16+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>ali@mashtizadeh.com</email>
</author>
<published>2026-01-30T09:12:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e51ef8ae490fc9f73191f33e7ad388c2511c454a'/>
<id>e51ef8ae490fc9f73191f33e7ad388c2511c454a</id>
<content type='text'>
This patch adds support for AMD IBS.  It adds a new class of performance
counter that cotains two events: ibs-fetch and ibs-op events. Unlike
most existing sampled events, IBS events provide a number of values
containing extra information regarding the sample.  To support this we
use the existing callchain event, and introduce a new flag for multipart
payloads.  The first 8 bytes of the pc_sample contains a header that
defines up to four payloads.

Sponsored by: Netflix

Reviewed by: imp,mhorne
Pull Request: https://github.com/freebsd/freebsd-src/pull/2022
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds support for AMD IBS.  It adds a new class of performance
counter that cotains two events: ibs-fetch and ibs-op events. Unlike
most existing sampled events, IBS events provide a number of values
containing extra information regarding the sample.  To support this we
use the existing callchain event, and introduce a new flag for multipart
payloads.  The first 8 bytes of the pc_sample contains a header that
defines up to four payloads.

Sponsored by: Netflix

Reviewed by: imp,mhorne
Pull Request: https://github.com/freebsd/freebsd-src/pull/2022
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:54:58+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=031beb4e239bfce798af17f5fe8dba8bcaf13d99'/>
<id>031beb4e239bfce798af17f5fe8dba8bcaf13d99</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>sys/modules: fix bogus OPT_ACPI tests</title>
<updated>2023-03-01T18:32:08+00:00</updated>
<author>
<name>Nathaniel Wesley Filardo</name>
<email>nfilardo@microsoft.com</email>
</author>
<published>2023-03-01T18:32:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=57716e7361aea3fa578a0a8f2b5a65154d4819d4'/>
<id>57716e7361aea3fa578a0a8f2b5a65154d4819d4</id>
<content type='text'>
ACPI is not handled specially by sys/conf/kern.opts.mk (unlike a few
options), so we should fall back on the generic behavior of
sys/conf/config.mk, which pulls from all the generated opt*.h files,
including opt_acpi.h, which will cause DEV_ACPI to be included in
KERN_OPTS.  Then the generic machinery in sys/conf/kmod.mk will cause
SRCS.DEV_ACPI to be included in SRCS when appropriate.

Reviewed by:	jhb, imp
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D38737
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ACPI is not handled specially by sys/conf/kern.opts.mk (unlike a few
options), so we should fall back on the generic behavior of
sys/conf/config.mk, which pulls from all the generated opt*.h files,
including opt_acpi.h, which will cause DEV_ACPI to be included in
KERN_OPTS.  Then the generic machinery in sys/conf/kmod.mk will cause
SRCS.DEV_ACPI to be included in SRCS when appropriate.

Reviewed by:	jhb, imp
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D38737
</pre>
</div>
</content>
</entry>
<entry>
<title>hwpmc: Don't wrap entire files in #ifdef DEV_ACPI.</title>
<updated>2023-03-01T18:31:53+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-03-01T18:31:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d90188eff5c5e67d6d33926d6bb4c7b25e37cc4a'/>
<id>d90188eff5c5e67d6d33926d6bb4c7b25e37cc4a</id>
<content type='text'>
A subsequent commit will instead use existing infrastructure to
exclude the files from hwpmc.ko for non-ACPI builds.  Note that the
original commit left the files as optional in sys/conf/files.arm64.

This reverts commit 751d88119fdc1dff71d1390c7768942a9b857bc6.

Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D38736
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A subsequent commit will instead use existing infrastructure to
exclude the files from hwpmc.ko for non-ACPI builds.  Note that the
original commit left the files as optional in sys/conf/files.arm64.

This reverts commit 751d88119fdc1dff71d1390c7768942a9b857bc6.

Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D38736
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix loading the hwpmc module when ACPI is enabled</title>
<updated>2022-12-22T10:36:18+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2022-12-22T10:10:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=751d88119fdc1dff71d1390c7768942a9b857bc6'/>
<id>751d88119fdc1dff71d1390c7768942a9b857bc6</id>
<content type='text'>
In 0a9a4d2cd6092 a check for OPT_ACPI was added to the hwpmc Makefile
to fix loading the module in a kernel where ACPI has been disabled.
This broke loading the module when ACPI was enabled in the build as
OPT_ACPI isn't a Makefile macro so was always disabled.

Move this check to the C files where the DEV_ACPI macro does exist.

Reviewed by:	gnn
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D37773
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In 0a9a4d2cd6092 a check for OPT_ACPI was added to the hwpmc Makefile
to fix loading the module in a kernel where ACPI has been disabled.
This broke loading the module when ACPI was enabled in the build as
OPT_ACPI isn't a Makefile macro so was always disabled.

Move this check to the C files where the DEV_ACPI macro does exist.

Reviewed by:	gnn
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D37773
</pre>
</div>
</content>
</entry>
<entry>
<title>arm64: Fix hwpmc module for OPT_ACPI isn't selected</title>
<updated>2022-08-31T07:25:39+00:00</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2022-08-29T09:50:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0a9a4d2cd60920d9f8c2dffb06b6b4186a5a2715'/>
<id>0a9a4d2cd60920d9f8c2dffb06b6b4186a5a2715</id>
<content type='text'>
Fixes: 59191f3573f6 ("Add support of ARM CMN-600 controller ...")
Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: 59191f3573f6 ("Add support of ARM CMN-600 controller ...")
Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support of ARM CMN-600 controller, PMU access functions only. Add support of PMU counters of ARM CMN-600 controller.</title>
<updated>2022-06-26T19:03:04+00:00</updated>
<author>
<name>Aleksandr Rybalko</name>
<email>ray@freebsd.org</email>
</author>
<published>2022-02-16T00:36:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=59191f3573f6cb2ea055ac319cbcb68823ca8e17'/>
<id>59191f3573f6cb2ea055ac319cbcb68823ca8e17</id>
<content type='text'>
Add support of ARM CMN-600 controller, PMU access functions only.
Add support of PMU counters of ARM CMN-600 controller.

Reviewed by: mhorne
Sponsored By: ARM
Differential Revision: https://reviews.freebsd.org/D32321
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support of ARM CMN-600 controller, PMU access functions only.
Add support of PMU counters of ARM CMN-600 controller.

Reviewed by: mhorne
Sponsored By: ARM
Differential Revision: https://reviews.freebsd.org/D32321
</pre>
</div>
</content>
</entry>
<entry>
<title>The Arm CoreLink DMC-620 Dynamic Memory Controller PMU driver</title>
<updated>2022-06-26T18:57:56+00:00</updated>
<author>
<name>Aleksandr Rybalko</name>
<email>ray@freebsd.org</email>
</author>
<published>2022-02-16T00:29:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1459a22787ea16e3798694067c8dcb20325dca4b'/>
<id>1459a22787ea16e3798694067c8dcb20325dca4b</id>
<content type='text'>
Add the Arm CoreLink DMC-620 Dynamic Memory Controller PMU driver
Add DMC-620 support to hwpmc(4)

Reviewed by: mhorne
Sponsored By: Ampere Computing
Differential Revision: https://reviews.freebsd.org/D32670
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the Arm CoreLink DMC-620 Dynamic Memory Controller PMU driver
Add DMC-620 support to hwpmc(4)

Reviewed by: mhorne
Sponsored By: Ampere Computing
Differential Revision: https://reviews.freebsd.org/D32670
</pre>
</div>
</content>
</entry>
<entry>
<title>[PowerPC] hwpmc: add support for POWER8/9 PMCs</title>
<updated>2020-11-05T16:36:39+00:00</updated>
<author>
<name>Leandro Lupori</name>
<email>luporl@FreeBSD.org</email>
</author>
<published>2020-11-05T16:36:39+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=68dd71825601b91365ff0c01e5ea064fe25b51a7'/>
<id>68dd71825601b91365ff0c01e5ea064fe25b51a7</id>
<content type='text'>
This change adds support for POWER8 and POWER9 PMCs (bare metal and
pseries).
All PowerISA 2.07B non-random events are supported.

Implementation was based on that of PPC970.

Reviewed by:	jhibbits
Sponsored by:	Eldorado Research Institute (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D26110
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds support for POWER8 and POWER9 PMCs (bare metal and
pseries).
All PowerISA 2.07B non-random events are supported.

Implementation was based on that of PPC970.

Reviewed by:	jhibbits
Sponsored by:	Eldorado Research Institute (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D26110
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove sparc64 kernel support</title>
<updated>2020-02-03T17:35:11+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2020-02-03T17:35:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=58aa35d42975c298ca0adba705c042596303c9f5'/>
<id>58aa35d42975c298ca0adba705c042596303c9f5</id>
<content type='text'>
Remove all sparc64 specific files
Remove all sparc64 ifdefs
Removee indireeect sparc64 ifdefs
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove all sparc64 specific files
Remove all sparc64 ifdefs
Removee indireeect sparc64 ifdefs
</pre>
</div>
</content>
</entry>
</feed>
