Skip to content

Fix GPU collector#220

Merged
umanwizard merged 1 commit intobtv/mergesfrom
gpu-fix
Mar 4, 2026
Merged

Fix GPU collector#220
umanwizard merged 1 commit intobtv/mergesfrom
gpu-fix

Conversation

@gnurizen
Copy link
Collaborator

@gnurizen gnurizen commented Mar 4, 2026

No description provided.

Comment on lines -794 to -795
// this is used by userland to stash the kernel name pointer
data[1] = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we need this? Somewhere in user-space there is a call to SetVariable that relies on space being there for this, isn't there?

Copy link
Collaborator

Choose a reason for hiding this comment

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

NVM, apparently that has gone away at some point.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All that's needed is the correlation id, the kernel name is stored in libpf.Frame.FunctionName in gpu.prepTrace which comes from the kernel timing info and not the original trace.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't see any calls to SetVariable anywhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah it doesn't exist upstream, I think we can remove it

@umanwizard umanwizard merged commit afd53db into btv/merges Mar 4, 2026
40 of 51 checks passed
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