-
Notifications
You must be signed in to change notification settings - Fork 321
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
No CPUInfo for all ARM #291
Comments
@bluecmd Makes sense, feel free to submit a PR to add all other ARM versions (assuming they have the same cpuinfo format) |
Well, I can make sure to test it for a v5 ARM - but it seems unlikely to me that the format would be a function of the version of the instruction set. If there are ARM CPUs that have a separate format, likely they need to be handled by some other means than filtering by ARM version. |
Yeah I think it's reasonable to enable this on all arm versions. If the format should be different, it will just return an error which isn't worse than have a compile error I guess. |
So, it seems like what you have currently in tree is something quite special, ARM-wise. Right now parseCPUInfoARM works for only a format that was used 8 years ago and has since v3.8-rc1 been replaced with a format that looks like this:
Problematic code is here: Lines 193 to 195 in 7a44272
This "new" format is quite close to the x86 format, FWIW. I can help fix this by looking at the kernel version and either error out, or parse the older format. And I will of course improve the tests. Thoughts? |
Uh.. hrm, that's unfortunate. @pgier thoughts? |
My apologizes, I got the commit wrong - it seems this was changed 8 years ago in this commit. So from v3.8-rc1 and later. I have updated my post above accordingly. |
It's close but not identical to x86 I assume? |
Right, looking at x86 you're extracting many x86 specific attributes that ARM does not have, and likewise ARM has some things that x86 does not have - like "CPU architecture". Do you wish to re-use this issue, or should we move to a new issue for upgrading the formatting for ARM? |
New issue would make sense I think |
Done, #294 |
Hi,
There has been changes in the CpuInfo part in the recent past, and e.g. #290 adds some support for some ARM CPUs. However, that's only for v6.
Could we maybe enable parseCPUInfoARM for all ARM versions?
The text was updated successfully, but these errors were encountered: