<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libpmc, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-03-25T21:24:18Z</updated>
<entry>
<title>pmc: Fix copyright in previous commits</title>
<updated>2026-03-25T21:24:18Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-03-25T18:51:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98bedca0a4effed7f170be52f7ef3e1ab8a79b11'/>
<id>urn:sha1:98bedca0a4effed7f170be52f7ef3e1ab8a79b11</id>
<content type='text'>
Fix the copyright attribution to Netflix and the date and missing SPDX
line in pmc.ibs man page.

Sponsored by: Netflix

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2094
</content>
</entry>
<entry>
<title>libpmc/pmu-events: Add support for new json fields</title>
<updated>2026-03-24T10:34:12Z</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2026-03-21T14:37:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6ad94d549eb2286d791abd5634400d8ef36d8259'/>
<id>urn:sha1:6ad94d549eb2286d791abd5634400d8ef36d8259</id>
<content type='text'>
This change adds support for three new Intel fields to jevents.c:
 - MetricThreshold
 - MetricgroupNoGroup
 - DefaultMetricgroupName

Reviewed by:	ali_mashtizadeh.com, mhorne
Differential Revision:	https://reviews.freebsd.org/D56017
MFC after:	1 week
</content>
</entry>
<entry>
<title>pmc: Import Intel Meteor Lake events</title>
<updated>2026-03-24T10:33:01Z</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2026-03-02T21:45:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb9e24221672a7f77c858518c292c1eac09b3740'/>
<id>urn:sha1:cb9e24221672a7f77c858518c292c1eac09b3740</id>
<content type='text'>
Obtained from:	Intel perfmon (JSON event definitions)
Tested by:	bms, olivier
MFC after:	1 week
Reviewed by:	ali_mashtizadeh.com, mhorne
Differential Revision:	https://reviews.freebsd.org/D55641
</content>
</entry>
<entry>
<title>libpmc: Add support for IBS qualifiers</title>
<updated>2026-03-23T20:21:28Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-03-18T04:27:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=df47355fae720fd8f63f36a50c8933f8342483d2'/>
<id>urn:sha1:df47355fae720fd8f63f36a50c8933f8342483d2</id>
<content type='text'>
Add support to libpmc for parsing the IBS qualifiers and computing the
ctl register value as a function of the qualifiers and the sample rate.
This includes all of the flags available up to AMD Zen 5.  Along side
these user facing changes I included the documentation for AMD IBS.

Reviewed by:	mhorne
Sponsored by:	Netflix
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2081
</content>
</entry>
<entry>
<title>libpmc: Query hwpmc for caps</title>
<updated>2026-03-16T23:31:15Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-03-01T22:08:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=44a983d249d05d932b6cff333f130baf70febc22'/>
<id>urn:sha1:44a983d249d05d932b6cff333f130baf70febc22</id>
<content type='text'>
This change allows for fine-grained capabilities per counter index. This
is particularly useful for AMD where subclasses are not exposed to the
general PMC code, but other architectures also have asymmetric behaviors
when it comes to specific counter indices.

A new PMC_OP_GETCAPS op is added to the hwpmc(4) ioctl interface.

Reviewed by:	mhorne
Sponsored by:	Netflix
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2058
</content>
</entry>
<entry>
<title>jevents: include file path in whitelist error message</title>
<updated>2026-03-16T23:25:46Z</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2026-03-16T23:25:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f0e0c4c52971f58d41a89690d402520500d286bd'/>
<id>urn:sha1:f0e0c4c52971f58d41a89690d402520500d286bd</id>
<content type='text'>
A small enhancement.

Reviewed by:	Ali Mashtizadeh &lt;ali@mashtizadeh.com&gt;
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55830
</content>
</entry>
<entry>
<title>libpmc: Explicitly whitelist json fields</title>
<updated>2026-03-10T22:20:17Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>ali@mashtizadeh.com</email>
</author>
<published>2026-02-28T20:45:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bfb2fd5f66183454cfe8771595df09c0f23c7efb'/>
<id>urn:sha1:bfb2fd5f66183454cfe8771595df09c0f23c7efb</id>
<content type='text'>
Adds all missing Intel fields and turns jevents.c into an explicit white
list mechanism so that we no longer ignore important fields that often
invalidate the counter.  The json event parser must now parse every
field on each architecture that we support.  This has been tested by
running tinderbox and manually running jevent against our current json
repository.  As a bonus I fixed spelling errors in the AMD JSON
definitions.

Sponsored by: Netflix

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2055
</content>
</entry>
<entry>
<title>libpmc: Import AMD Zen 6 PMU events.</title>
<updated>2026-02-27T21:27:35Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-02-24T15:52:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=178d0b5b8da7480f455273aedf40dd8f1e785d3f'/>
<id>urn:sha1:178d0b5b8da7480f455273aedf40dd8f1e785d3f</id>
<content type='text'>
Sponsored by: Netflix

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2049
</content>
</entry>
<entry>
<title>libpmc: Update event definitions for AMD Zen</title>
<updated>2026-02-27T21:26:34Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-02-24T15:36:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3ce3e896acf6cd504514ee44fc3aedcdc48a199c'/>
<id>urn:sha1:3ce3e896acf6cd504514ee44fc3aedcdc48a199c</id>
<content type='text'>
The pmu event definitions for AMD Zen 5 was updated since it was
imported into the tree.  As a bonus I also updated the recommended json
counters for Zen 1-3 even though we do not use that file yet.

Sponsored by: Netflix

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2048
</content>
</entry>
<entry>
<title>hwpmc: Initial support for AMD IBS</title>
<updated>2026-02-27T21:22:16Z</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>ali@mashtizadeh.com</email>
</author>
<published>2026-01-30T09:12:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e51ef8ae490fc9f73191f33e7ad388c2511c454a'/>
<id>urn:sha1: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>
</entry>
</feed>
