#include <assert.h>#include <stdarg.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "cpu_features_macros.h"Data Structures | |
| struct | BumpAllocator |
| struct | Node |
Macros | |
| #define | ALIGN 8 |
| #define | DEFINE_ADD_FLAGS(HasFeature, FeatureName, FeatureType, LastEnum) |
Typedefs | |
| typedef struct Node | Node |
Enumerations | |
| enum | NodeType { NT_INVALID, NT_INT, NT_MAP, NT_MAP_ENTRY, NT_ARRAY, NT_ARRAY_ELEMENT, NT_STRING } |
Functions | |
| static void | internal_error () |
| static void | assertAligned () |
| static void | BA_Align () |
| static void * | BA_Bump (size_t size) |
| static Node * | BA_CreateNode (NodeType type) |
| static Node * | CreateInt (int value) |
| static Node * | CreateConstantString (const char *value) |
| static Node * | CreateMap () |
| static Node * | CreateArray () |
| static Node * | CreatePrintfString (const char *format,...) |
| static Node * | CreateString (const char *value) |
| static void | AddMapEntry (Node *map, const char *key, Node *value) |
| static void | AddArrayElement (Node *array, Node *value) |
| static int | cmp (const void *p1, const void *p2) |
| static void | printJsonString (const char *str) |
| static void | printJson (const Node *current) |
| static void | printTextField (const Node *current) |
| static void | printTextRoot (const Node *current) |
| static void | showUsage (const char *name) |
| static Node * | GetCacheTypeString (CacheType cache_type) |
| static void | AddCacheInfo (Node *root, const CacheInfo *cache_info) |
| static Node * | CreateTree () |
| int | main (int argc, char **argv) |
Variables | |
| char | gGlobalBuffer [64 *1024] |
| BumpAllocator | gBumpAllocator |
| #define ALIGN 8 |
| #define DEFINE_ADD_FLAGS | ( | HasFeature, | |
| FeatureName, | |||
| FeatureType, | |||
| LastEnum | |||
| ) |
| enum NodeType |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
|
static |
|
static |
| BumpAllocator gBumpAllocator |
| char gGlobalBuffer[64 *1024] |