<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libpmc, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>libpmc: surface raw TSC in pmclog events</title>
<updated>2026-04-16T06:05:21+00:00</updated>
<author>
<name>Andre Silva</name>
<email>andasilv@amd.com</email>
</author>
<published>2026-03-31T20:28:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fbbf71f5813b041526c4d439d9961e8a8281d291'/>
<id>fbbf71f5813b041526c4d439d9961e8a8281d291</id>
<content type='text'>
The pmclog record header carries the raw TSC for each event. Export it
in struct pmclog_ev, fix JSON output to emit it unsigned, and preserve
the installed header ABI by overlaying pl_tsc with the legacy pl_ts
storage.

Update pmclog(3) to document the TSC semantics and the legacy alias.

Sponsored by: AMD
Signed-off-by: Andre Silva &lt;andasilv@amd.com&gt;
Reviewed by: imp, mhorne, Ali Mashtizadeh
Pull Request: https://github.com/freebsd/freebsd-src/pull/2085
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The pmclog record header carries the raw TSC for each event. Export it
in struct pmclog_ev, fix JSON output to emit it unsigned, and preserve
the installed header ABI by overlaying pl_tsc with the legacy pl_ts
storage.

Update pmclog(3) to document the TSC semantics and the legacy alias.

Sponsored by: AMD
Signed-off-by: Andre Silva &lt;andasilv@amd.com&gt;
Reviewed by: imp, mhorne, Ali Mashtizadeh
Pull Request: https://github.com/freebsd/freebsd-src/pull/2085
</pre>
</div>
</content>
</entry>
<entry>
<title>pmc: Fix copyright in previous commits</title>
<updated>2026-03-25T21:24:18+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-03-25T18:51:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=98bedca0a4effed7f170be52f7ef3e1ab8a79b11'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc/pmu-events: Add support for new json fields</title>
<updated>2026-03-24T10:34:12+00:00</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2026-03-21T14:37:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6ad94d549eb2286d791abd5634400d8ef36d8259'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>pmc: Import Intel Meteor Lake events</title>
<updated>2026-03-24T10:33:01+00:00</updated>
<author>
<name>Bojan Novković</name>
<email>bnovkov@FreeBSD.org</email>
</author>
<published>2026-03-02T21:45:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cb9e24221672a7f77c858518c292c1eac09b3740'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc: Add support for IBS qualifiers</title>
<updated>2026-03-23T20:21:28+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-03-18T04:27:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=df47355fae720fd8f63f36a50c8933f8342483d2'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc: Query hwpmc for caps</title>
<updated>2026-03-16T23:31:15+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-03-01T22:08:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=44a983d249d05d932b6cff333f130baf70febc22'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>jevents: include file path in whitelist error message</title>
<updated>2026-03-16T23:25:46+00:00</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2026-03-16T23:25:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f0e0c4c52971f58d41a89690d402520500d286bd'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A small enhancement.

Reviewed by:	Ali Mashtizadeh &lt;ali@mashtizadeh.com&gt;
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55830
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc: Explicitly whitelist json fields</title>
<updated>2026-03-10T22:20:17+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>ali@mashtizadeh.com</email>
</author>
<published>2026-02-28T20:45:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bfb2fd5f66183454cfe8771595df09c0f23c7efb'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc: Import AMD Zen 6 PMU events.</title>
<updated>2026-02-27T21:27:35+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-02-24T15:52:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=178d0b5b8da7480f455273aedf40dd8f1e785d3f'/>
<id>178d0b5b8da7480f455273aedf40dd8f1e785d3f</id>
<content type='text'>
Sponsored by: Netflix

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2049
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sponsored by: Netflix

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2049
</pre>
</div>
</content>
</entry>
<entry>
<title>libpmc: Update event definitions for AMD Zen</title>
<updated>2026-02-27T21:26:34+00:00</updated>
<author>
<name>Ali Mashtizadeh</name>
<email>mashti@uwaterloo.ca</email>
</author>
<published>2026-02-24T15:36:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3ce3e896acf6cd504514ee44fc3aedcdc48a199c'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
