Page MenuHomeFreeBSD

libpmcstat: parse {a,b,c} brace-list event group syntax
Needs ReviewPublic

Authored by afscoelho_gmail.com on Jun 18 2026, 7:06 AM.
Tags
None
Referenced Files
F176317672: D57636.diff
Sat, Oct 17, 9:14 PM
F176263700: D57636.id188463.diff
Sat, Oct 17, 11:57 AM
Unknown Object (File)
Wed, Oct 14, 9:47 AM
Unknown Object (File)
Wed, Oct 14, 5:58 AM
Unknown Object (File)
Sat, Oct 10, 8:50 AM
Unknown Object (File)
Sat, Oct 10, 8:49 AM
Unknown Object (File)
Sat, Oct 10, 7:51 AM
Unknown Object (File)
Thu, Oct 8, 1:43 PM
Subscribers
None

Details

Summary

Parse the brace-list event syntax "{a,b,c[,...]}" used by pmcstat -b.
The parser splits on commas at the top level of the brace and leaves
every other delimiter (including event qualifier ":" and pmu-event
sub-options) untouched.

For each comma-separated token a pmcstat_ev is built via the new
helper pmcstat_add_one_event(); the leader is marked with
ev_is_leader=1 and all events in the brace share an ev_groupid.
Single events outside any brace fall through unchanged.

Sponsored by: AMD
Signed-off-by: Raghavendra K T <raghavendra.kt@amd.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78173
Build 75056: arc lint + arc unit

Event Timeline

afscoelho_gmail.com updated this revision to Diff 185750.

Update to the rebuilt PerfMonV2 grouping and multiplexing stack.

Rebase on main (D60141 and D60185 are committed). No change.