Skip to content

Add missing cpuinfo support for armv6l - #290

Merged
discordianfish merged 1 commit into
prometheus:masterfrom
tobiasgies:patch-1
May 11, 2020
Merged

discordianfish merged 1 commit into
prometheus:masterfrom
tobiasgies:patch-1

Conversation

@tobiasgies

@tobiasgies tobiasgies commented May 8, 2020 •

Copy link
Copy Markdown
Contributor

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

tobiasgies commented May 8, 2020 •

Copy link
Copy Markdown
Contributor Author

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

@pgier pgier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@pgier

pgier commented May 10, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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