26 #ifndef __LIBCPUID_UTIL_H__
27 #define __LIBCPUID_UTIL_H__
29 #define COUNT_OF(array) (sizeof(array) / sizeof(array[0]))
36 void match_features(
const struct feature_map_t* matchtable,
int count,
37 uint32_t reg,
struct cpu_id_t* data);
40 int family, model, stepping, ext_family, ext_model;
41 int ncores, l2cache, l3cache, brand_code, model_code;
45 void match_cpu_codename(
const struct match_entry_t* matchtable,
int count,
46 struct cpu_id_t* data,
int brand_code,
int model_code);
48 void warnf(
const char* format, ...)
50 __attribute__((format(printf, 1, 2)))
53 void debugf(
int verboselevel,
const char* format, ...)
55 __attribute__((format(printf, 2, 3)))
58 void generic_get_cpu_list(
const struct match_entry_t* matchtable,
int count,
71 int match_pattern(
const char* haystack,
const char* pattern);
77 struct cpu_id_t* get_cached_cpuid(
void);
84 extern libcpuid_warn_fn_t _warn_fun;
85 extern int _current_verboselevel;
cpu_error_t
Describes common library error codes.
Definition: libcpuid.h:405
a structure that holds a list of processor names
Definition: libcpuid.h:796
This contains the recognized CPU features/info.
Definition: libcpuid.h:139
Definition: libcpuid_util.h:39
Definition: libcpuid_util.h:31
cpu_feature_t
CPU feature identifiers.
Definition: libcpuid.h:279