Skip to content

lscpu: Decode ARM CPUs #564

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

Merged
merged 1 commit into from
Jan 22, 2018
Merged

lscpu: Decode ARM CPUs #564

merged 1 commit into from
Jan 22, 2018

Conversation

Image for: Conversation
Copy link
Contributor

Since the kernel developers have refused to make /proc/cpuinfo user
understandable, implement mapping in userspace. lscpu is available for
most users via util-linux, so store the information here.

Signed-off-by: Riku Voipio riku.voipio@iki.fi

else if (lookup(buf, "family", &desc->family)) ;
else if (lookup(buf, "cpu family", &desc->family)) ;
else if (lookup(buf, "model", &desc->model)) ;
else if (lookup(buf, "CPU part", &desc->model)) ; /* ARM and aarch6 */
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably also "aarch64" here, not "aarch6"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed - and added the missing Makemodule.am bit to hopefully fix make dist

Since the kernel developers have refused to make /proc/cpuinfo user
understandable, implement mapping in userspace. lscpu is available for
most users via util-linux, so store the information here.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
karelzak merged commit 744d62e into util-linux:master Jan 22, 2018
Copy link
Collaborator

I have moved all the new ARM stuff to lscpu-arm.c (rename from .h).

Thanks.

zeeke added a commit to zeeke/ghw that referenced this pull request Oct 24, 2024
In ARM  systems, `/proc/cpuinfo` file does not contain `vendor_id` fields. In `lscpu` tool,
the `CPU implementor` code and a lookup table is used to provide a human readable
vendor name [1].

Populate `cpu.Info.Processors[*].Vendor` field with "ARM" string when running in ARM systems.

[1] util-linux/util-linux#564

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants