Skip to content

Conversation

@kugan-nv
Copy link
Contributor

@kugan-nv kugan-nv commented Jan 1, 2026

This patch avoids reading PERF samples that is not relavent. We only need AUXTRACE events for SPE data. This filtering is similar to what is already done in other places.

This patch avoids reading PERF samples that is not relavent.
We only need AUXTRACE events for SPE data. This filtering is similar to what is
already done in other places.
Copy link
Collaborator

@dhoekwater dhoekwater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, but LGTM.

// Read the perf data file
quipper::PerfReader reader;
// Skip SAMPLE events to avoid unsupported PERF_SAMPLE_REGS_USER
// We only need AUXTRACE events for SPE data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SAMPLE events aren't needed for single-process SPE profiles, but we do use them to attribute SPE samples to the right PID when collecting system-wide profiles (see https://github.com/google/autofdo/blob/master/spe_tid_pid_provider.h).

It looks like the SimpleSpeDataSampleReader only operates on single-process SPE profiles, so you still don't need SAMPLE events, but it might be worth calling out that you'd need these events if you want to add support for system-wide SPE profiles.

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