Page MenuHomeFreeBSD

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

Authored by raghavendra.kt_amd.com on Thu, Jun 18, 7:06 AM.
Tags
None
Referenced Files
F160376277: D57636.diff
Tue, Jun 23, 9:21 PM
Unknown Object (File)
Sun, Jun 21, 8:47 PM
Unknown Object (File)
Sun, Jun 21, 12:59 PM
Unknown Object (File)
Sat, Jun 20, 10:48 PM
Unknown Object (File)
Sat, Jun 20, 8:14 PM
Unknown Object (File)
Fri, Jun 19, 2:57 AM
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 73964
Build 70847: arc lint + arc unit