]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/perf/pmu-events/jevents.c
perf jevents: Add support for Hisi hip08 L3C PMU aliasing
[linux.git] / tools / perf / pmu-events / jevents.c
index 58f77fd0f59fe82700491f1b22c803e57ca089cb..287a6f10ca487d7991ea3c807a8a2f27dc8bbadb 100644 (file)
@@ -236,6 +236,9 @@ static struct map {
        { "CPU-M-CF", "cpum_cf" },
        { "CPU-M-SF", "cpum_sf" },
        { "UPI LL", "uncore_upi" },
+       { "hisi_sccl,ddrc", "hisi_sccl,ddrc" },
+       { "hisi_sccl,hha", "hisi_sccl,hha" },
+       { "hisi_sccl,l3c", "hisi_sccl,l3c" },
        {}
 };
 
@@ -841,7 +844,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 +1099,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,