On Wednesday 07 September 2011 10:32:27 Dave Martin wrote:
Note that the hwcaps info in /proc/cpuinfo is generated from the same hwcaps word exposed via auxv so, for now, the information is identical.
I would normally rate parsing /proc/cpuinfo as being a bad idea, but /proc/cpuinfo is probably the only source of the part ID information, for now. This is a bit unfortunate, especially since the format of /proc/cpuinfo could change at some point in the future, but in practice it seems to have been pretty stable with respect to this particular piece of information.
We do try to keep any ABI stable, including /proc/cpuinfo. I would generally consider it a bug when it breaks.
Arnd