39 "} file_by_model_and_stepping_t;\n\n" 40 "static const file_by_model_and_stepping_t fms_table [] =\n" 41 "{\n" " /* model, stepping, stepping valid, file */\n";
62 while (*cp && *cp !=
'\n')
67 fformat (stderr,
"mapfile broken or empty\n");
82 for (i = 0; i < 15; i++)
87 fformat (stderr,
"mapfile broken\n");
124 if (memcmp (cp,
"core", 4))
126 while (*cp && *cp !=
'\n')
134 while (*cp && *cp !=
'\n')
147 for (i = 0; i <
vec_len (stepping); i++)
150 format (mtm->
table,
" { 0x%s, 0x%c, %d, \"%v\" },\n",
151 model, stepping[i], has_stepping, filename);
177 fformat (stderr,
"usage: mapfile_tool in <ifile> out <ofile>\n");
184 fformat (stderr,
"input file not specified\n");
191 mtm->
ofp = fopen ((
char *) mtm->
ofile,
"w");
192 if (mtm->
ofp == NULL)
203 fformat (stderr,
"Failed to read mapfile from %s", mtm->
ifile);
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
void * clib_mem_init(void *heap, uword size)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
clib_error_t * unix_proc_file_contents(char *file, u8 **result)
#define clib_error_free(e)