Lines Matching refs:name
57 char *name;
358 if (je->name)
359 fprintf(outfp, "\t.name = \"%s\",\n", je->name);
391 char *name;
421 op(name); \
469 fprintf(outfp, "\t.name = 0,\n");
479 const char *name;
494 static char *real_event(const char *name, char *event)
498 if (!name)
501 for (i = 0; fixed[i].name; i++)
502 if (!strcasecmp(name, fixed[i].name))
514 if (!strcmp(arch_std, es->name)) {
566 "Expected field name");
585 addfield(map, &je.name, "", "", val);
668 if (je.name)
669 fixname(je.name);
680 je.event = real_event(je.name, event);
685 free(je.name);
720 * Derive rest of table name from basename of the JSON file,
739 pr_err("%s: Invalid character '%c' in file name %s\n",
849 * table name. For us to do that, we need to somehow tweak
852 * of knowing these are "core" events unless file name has
946 static int is_json_file(const char *name)
950 if (strlen(name) < 5)
953 suffix = name + strlen(name) - 5;
983 * For level 2 directory, bname will include parent name,
1013 * Drop file name suffix. Replace hyphens with underscores.
1014 * Fail if file name contains any alphanum characters besides
1019 pr_info("%s: Error determining table name for %s\n", prog,
1029 * Save the mapfile name for now. We will process mapfile
1045 * If the file name does not have a .json extension,
1068 * i.e. if JSON file name cannot be mapped to C-style table name,