Page MenuHomeFreeBSD

pmcstat(8): add -b batch-grouping flag
Needs ReviewPublic

Authored by raghavendra.kt_amd.com on Thu, Jun 18, 7:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 21, 9:01 PM
Unknown Object (File)
Sun, Jun 21, 7:57 PM
Unknown Object (File)
Sat, Jun 20, 10:44 PM
Unknown Object (File)
Sat, Jun 20, 9:29 PM
Unknown Object (File)
Fri, Jun 19, 2:58 AM
Subscribers

Details

Summary

Add the -b / --batch-grouping flag and the {a,b,c} brace syntax to
pmcstat(8). For brace expressions in -p / -P / -s / -S the tool now:

  1. creates a kernel group via pmc_group_create();
  2. for each event token allocates a deferred pmcid with pmc_allocate_group() and registers it via pmc_group_add(), marking the first one as the leader;
  3. commits the group with pmc_group_commit() before any pmc_attach.

A brace containing a single event falls back to the legacy
pmc_allocate path so that "{a}" stays equivalent to "a".

The man page documents the syntax, the multiplex semantics enabled by
PMC_F_GROUP_MUX, and the all-or-none commit guarantee.

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 73965
Build 70848: arc lint + arc unit