> I share Brian's view on the possibility of implementing something > similar to Linux's /proc/cpuinfo. During my development days on Linux, > I grew quite fond of the /proc/cpuinfo interface, and found it > extremely extensible to include additional information as they become > available on new CPUs. > > Another idea I would like to toss around here is the possibility of > libcpuinfo. Currently the only way to get cpuid information in user > applications is via /dev/cpu/self/cpuid. The interface, while > versatle, is not particularly easy to use ("man cpuid" for usage > details). It would be nice to provide interfaces to user applications > to get various fields from cpuid_info. Something like > > cpuid_get(VENDOR_STR, &vendor_str); > cpuid_get(L2_CACHE_SIZE, &l2_cache_size); > > etc. > > Sherry
Would something like $ cat /system/cpufs/cpus/0/vendor_string $ cat /system/cpufs/cpus/0/l2_cache_size be sufficient? If the information is available through the CPUfs interface it is easy to build wrapper library in any language for accessing it programmatically. - akolb _______________________________________________ observability-discuss mailing list [EMAIL PROTECTED] _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org