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

Add missing cpuinfo support for armv6l #290

Merged
merged 1 commit into from
May 11, 2020
Merged

Add missing cpuinfo support for armv6l #290

merged 1 commit into from
May 11, 2020

Conversation

tobiasgies
Copy link
Contributor

@tobiasgies tobiasgies commented May 8, 2020

Dear maintainer,

PR #257 added basic multiplatform support for cpuinfo.

Due to this change, this project does not compile on 32-bit ARM CPUs, e.g. the armv7l in a Raspberry Pi 3b. I think this PR should solve this problem.

PR #257 added basic multiplatform support for cpuinfo.

Due to this change, this library does not compile on 32-bit ARM CPUs, e.g. the armv7l in a Raspberry Pi 3b. I think this PR should solve this problem.

Signed-off-by: Tobias Gies <[email protected]>
@tobiasgies
Copy link
Contributor Author

tobiasgies commented May 8, 2020

Hi @discordianfish, @SuperQ – you approved #257 and the follow-up #288. Could you have a look at this one?

Copy link
Collaborator

@pgier pgier left a comment

Choose a reason for hiding this comment

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

LGTM

@pgier
Copy link
Collaborator

pgier commented May 10, 2020

I'm wondering if we should add a default cpuinfo flag which just returns an error about being an unsupported platform. That way at least the library would compile on the unknown platforms instead of failing to compile.

@tobiasgies
Copy link
Contributor Author

Good question. I actually prefer a failure to compile to finding out the library won't work at runtime, if I can. In this case, would love it if the error message could be somehow made clearer than just "cpuInfo? Never 'heard of it".

@discordianfish discordianfish merged commit d1b8c1e into prometheus:master May 11, 2020
@discordianfish
Copy link
Member

Yeah not sure what is better. Let's discuss that in an issue or future PR though, this LGTM

@tobiasgies tobiasgies deleted the patch-1 branch May 11, 2020 12:06
@bluecmd bluecmd mentioned this pull request May 12, 2020
remijouannet pushed a commit to remijouannet/procfs that referenced this pull request Oct 20, 2022
PR prometheus#257 added basic multiplatform support for cpuinfo.

Due to this change, this library does not compile on 32-bit ARM CPUs, e.g. the armv7l in a Raspberry Pi 3b. I think this PR should solve this problem.

Signed-off-by: Tobias Gies <[email protected]>
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