Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better i915-perf / tracepoint tracking #65

Merged
merged 2 commits into from
Jul 7, 2021

Conversation

djdeath
Copy link
Collaborator

@djdeath djdeath commented Jul 6, 2021

Some recent (probably a couple of years :() changes in i915 have made the tracking of GPU generated data to tracepoint a bit different.

Here are a couple of commits to resolve that issue without breaking the correlation on older kernels.

Right now we rely on the hw_id value from the data generated by the
GPU to match the i915_request_add tracepoint hw_id.

But starting with Gfx12 products, i915 started to delay hw_id picking
until the i915_request_in tracepoint.

This adds a 2 hops search to build the connection from i915-perf to
i915_request_in to finally i915_request_add to find out the process
that submitted the workload.

Also don't look too far back (1 second right now).
Make it easier to see where is the process that scheduled this work.
@mikesart mikesart merged commit 364e06e into mikesart:master Jul 7, 2021
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.

3 participants