perf jevents: Add support for Hisi hip08 DDRC PMU aliasing
[linux-2.6-microblaze.git] / tools / perf / pmu-events / jevents.c
index 68c92bb..d599774 100644 (file)
@@ -235,6 +235,8 @@ static struct map {
        { "iMPH-U", "uncore_arb" },
        { "CPU-M-CF", "cpum_cf" },
        { "CPU-M-SF", "cpum_sf" },
+       { "UPI LL", "uncore_upi" },
+       { "hisi_sccl,ddrc", "hisi_sccl,ddrc" },
        {}
 };
 
@@ -414,7 +416,6 @@ static int save_arch_std_events(void *data, char *name, char *event,
                                char *metric_name, char *metric_group)
 {
        struct event_struct *es;
-       struct stat *sb = data;
 
        es = malloc(sizeof(*es));
        if (!es)
@@ -841,7 +842,7 @@ static void create_empty_mapping(const char *output_file)
                _Exit(1);
        }
 
-       fprintf(outfp, "#include \"../../pmu-events/pmu-events.h\"\n");
+       fprintf(outfp, "#include \"pmu-events/pmu-events.h\"\n");
        print_mapping_table_prefix(outfp);
        print_mapping_table_suffix(outfp);
        fclose(outfp);
@@ -1096,7 +1097,7 @@ int main(int argc, char *argv[])
        }
 
        /* Include pmu-events.h first */
-       fprintf(eventsfp, "#include \"../../pmu-events/pmu-events.h\"\n");
+       fprintf(eventsfp, "#include \"pmu-events/pmu-events.h\"\n");
 
        /*
         * The mapfile allows multiple CPUids to point to the same JSON file,