|
int | eprintf (int level, int var, const char *fmt,...) |
|
| __attribute__ ((weak)) |
|
static void | addfield (char *map, char **dst, const char *sep, const char *a, jsmntok_t *bt) |
|
static void | fixname (char *s) |
|
static void | fixdesc (char *s) |
|
static char * | fixregex (char *s) |
|
static void | cut_comma (char *map, jsmntok_t *newval) |
|
static int | match_field (char *map, jsmntok_t *field, int nz, char **event, jsmntok_t *val) |
|
static struct msrmap * | lookup_msr (char *map, jsmntok_t *val) |
|
static const char * | field_to_perf (struct map *table, char *map, jsmntok_t *val) |
|
static char * | get_topic (void) |
|
static int | add_topic (char *bname) |
|
static void | print_events_table_prefix (FILE *fp, const char *tblname) |
|
static int | print_events_table_entry (void *data, char *name, char *event, char *desc, char *long_desc, char *pmu, char *unit, char *perpkg, char *metric_expr, char *metric_name, char *metric_group) |
|
static | LIST_HEAD (arch_std_events) |
|
static void | free_arch_std_events (void) |
|
static int | save_arch_std_events (void *data, char *name, char *event, char *desc, char *long_desc, char *pmu, char *unit, char *perpkg, char *metric_expr, char *metric_name, char *metric_group) |
|
static void | print_events_table_suffix (FILE *outfp) |
|
static char * | real_event (const char *name, char *event) |
|
static int | try_fixup (const char *fn, char *arch_std, char **event, char **desc, char **name, char **long_desc, char **pmu, char **filter, char **perpkg, char **unit, char **metric_expr, char **metric_name, char **metric_group, unsigned long long eventcode) |
|
int | json_events (const char *fn, int(*func)(void *data, char *name, char *event, char *desc, char *long_desc, char *pmu, char *unit, char *perpkg, char *metric_expr, char *metric_name, char *metric_group), void *data) |
|
static char * | file_name_to_table_name (char *fname) |
|
static void | print_mapping_table_prefix (FILE *outfp) |
|
static void | print_mapping_table_suffix (FILE *outfp) |
|
static int | process_mapfile (FILE *outfp, char *fpath) |
|
static void | create_empty_mapping (const char *output_file) |
|
static int | get_maxfds (void) |
|
static int | is_leaf_dir (const char *fpath) |
|
static int | is_json_file (const char *name) |
|
static int | preprocess_arch_std_files (const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) |
|
static int | process_one_file (const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) |
|
int | main (int argc, char *argv[]) |
|