|
@@ -798,16 +798,10 @@ static int process_one_file(const char *fpath, const struct stat *sb,
|
|
* after processing all JSON files (so we can write out the
|
|
* after processing all JSON files (so we can write out the
|
|
* mapping table after all PMU events tables).
|
|
* mapping table after all PMU events tables).
|
|
*
|
|
*
|
|
- * TODO: Allow for multiple mapfiles? Punt for now.
|
|
|
|
*/
|
|
*/
|
|
if (level == 1 && is_file) {
|
|
if (level == 1 && is_file) {
|
|
- if (!strncmp(bname, "mapfile.csv", 11)) {
|
|
|
|
- if (mapfile) {
|
|
|
|
- pr_info("%s: Many mapfiles? Using %s, ignoring %s\n",
|
|
|
|
- prog, mapfile, fpath);
|
|
|
|
- } else {
|
|
|
|
- mapfile = strdup(fpath);
|
|
|
|
- }
|
|
|
|
|
|
+ if (!strcmp(bname, "mapfile.csv")) {
|
|
|
|
+ mapfile = strdup(fpath);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|