libicuid  1.4.1
match.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Kurt Cancemi ([email protected])
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 typedef struct {
18  uint32_t family, model, stepping, ext_family, ext_model;
19  uint32_t cores, l2_cache, l3_cache, brand_code;
20  const char *uarch;
22 
23 int match_pattern(const char *haystack, const char *needle);
24 void match_cpu_uarch(cpuid_data_t *data, const match_uarch_t *matchtable,
25  const unsigned int array_size, const uint32_t brand_code);
uint32_t l3_cache
Definition: match.h:19
Definition: icuid.h:343
int match_pattern(const char *haystack, const char *needle)
Definition: match.c:50
Definition: match.h:17
const char * uarch
Definition: match.h:20
void match_cpu_uarch(cpuid_data_t *data, const match_uarch_t *matchtable, const unsigned int array_size, const uint32_t brand_code)
Definition: match.c:93
uint32_t stepping
Definition: match.h:18