Skip to content

scx_forge_agent: Generalize tracing events and switch to perf#3671

Merged
arighi merged 1 commit into
mainfrom
scx-forge-agent-trace-events
Jun 26, 2026
Merged

scx_forge_agent: Generalize tracing events and switch to perf#3671
arighi merged 1 commit into
mainfrom
scx-forge-agent-trace-events

Conversation

@arighi

@arighi arighi commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

scx_forge_agent currently depends on trace-cmd for the optional tracing summary that is passed back to the planner. That limits the signal to tracepoints and keeps the summarizer tied to the default sched events.

Switch the recorder to perf so the configured [tracing].trace_events entries are passed to perf record -e. This lets runs include both tracepoints and PMU events such as cache-references or cache-misses. Use perf script with a narrow field set to build the compact model-facing summary.

Make the summary generic over the events that were actually observed instead of emitting sched-specific fields. The verdict now reports observed event counts, retained-window sample rates, and a compact CPU activity summary. For PMU events, document that the counts are perf sample records rather than raw hardware counter totals.

scx_forge_agent currently depends on trace-cmd for the optional tracing
summary that is passed back to the planner. That limits the signal to
tracepoints and keeps the summarizer tied to the default sched events.

Switch the recorder to perf so the configured [tracing].trace_events
entries are passed to perf record -e. This lets runs include both
tracepoints and PMU events such as cache-references or cache-misses. Use
perf script with a narrow field set to build the compact model-facing
summary.

Make the summary generic over the events that were actually observed
instead of emitting sched-specific fields. The verdict now reports
observed event counts, retained-window sample rates, and a compact CPU
activity summary. For PMU events, document that the counts are perf
sample records rather than raw hardware counter totals.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
@arighi arighi added this pull request to the merge queue Jun 26, 2026
Merged via the queue into main with commit e105950 Jun 26, 2026
39 of 42 checks passed
@arighi arighi deleted the scx-forge-agent-trace-events branch June 26, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants