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

Fix kernel module parsing when flags are present #30

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

Jackson-Greene
Copy link

Fixes issue mentioned at parca-dev/parca-agent#3018 and #29

If a line /proc/modules has flags they are now ignored instead of included as part of the address. This is done by splitting the line by 7 at most instead of 6 at most.

@CLAassistant
Copy link

CLAassistant commented Jan 13, 2025

CLA assistant check
All committers have signed the CLA.

@brancz
Copy link
Member

brancz commented Jan 13, 2025

Thank you! lgtm

@brancz brancz merged commit 8c64051 into parca-dev:main Jan 13, 2025
22 checks passed
@brancz
Copy link
Member

brancz commented Jan 13, 2025

Do you mind opening the same patch against upstream?

@Jackson-Greene
Copy link
Author

Do you mind opening the same patch against upstream?

I was about to but I just realised that it has been fixed and I just missed it. The commit it was fixed in was open-telemetry@fc0dcae but it is called "handle nvidia kernel modules" rather than the one before it called "Fix parsing Kernel Module lines where refcount is "-"". This isn't just for NVIDIA kernel modules but it's the same fix.

Sorry about that

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.

4 participants