Summary: | [i386] [patch] expose more i386 specific CPU information | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Ben Thomas <bthomas> | ||||||||
Component: | i386 | Assignee: | freebsd-i386 (Nobody) <i386> | ||||||||
Status: | Closed Overcome By Events | ||||||||||
Severity: | Affects Only Me | CC: | gonzo | ||||||||
Priority: | Normal | ||||||||||
Version: | 5.4-RELEASE | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
Ben Thomas
2005-09-02 19:00:37 UTC
Ben Thomas wrote:
> - add sysctls to expose a number of i386 information:
> hw.cpu_type
> hw.cpu_feature
> hw.cpu_efeature
> hw.cpu_high
> hw.cpu_id
> hw.cpu_procinfo
> hw.cpu_brand
>
> [...]
It might be better to use
hw.cpu.type
hw.cpu.feature
hw.cpu.efeature
[...]
instead. This allows you to see all CPU information by calling 'sysctl
hw.cpu'. A lot of oids in the format parent.foo_bar has been converted
to parent.foo.bar in past.
Regards Björn
I completely agree. It was a quick hack that we use locally and could easily be improved. I considered changing this before I submitted the pr, but since it's taken me over a year to get around to submitting it at all, I decided to submit the current code that I use and not the better version. Thanks, -b Björn König wrote: > Ben Thomas wrote: > >> - add sysctls to expose a number of i386 information: >> hw.cpu_type >> hw.cpu_feature >> hw.cpu_efeature >> hw.cpu_high >> hw.cpu_id >> hw.cpu_procinfo >> hw.cpu_brand >> >> [...] > > > It might be better to use > > hw.cpu.type > hw.cpu.feature > hw.cpu.efeature > [...] > > instead. This allows you to see all CPU information by calling 'sysctl > hw.cpu'. A lot of oids in the format parent.foo_bar has been converted > to parent.foo.bar in past. > > Regards Björn > -- ------------------------------------------------------------------------ Ben Thomas Virtual Iron Software bthomas@virtualiron.com 43 Nagog Park 978-849-1214 Acton, MA 01720 State Changed From-To: open->feedback Hello, Is this still applicable? Responsible Changed From-To: freebsd-i386->jhb Hi John, another one I would like to ask you to have a look at. For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped I believe cpucontrol(8) can provide access to some of the information mentioned in this PR. Closing as OBE. Feel free to reopen if there is interest in adding suggested functionality. |