]> git.baikalelectronics.ru Git - kernel.git/commitdiff
perf jevents: Remove the type/version variables
authorIan Rogers <irogers@google.com>
Fri, 12 Aug 2022 23:09:37 +0000 (16:09 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 13 Aug 2022 17:58:40 +0000 (14:58 -0300)
pmu_events_map has a type variable that is always initialized to "core"
and a version variable that is never read. Remove these from the API as
it is straightforward to add them back when necessary.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Will Deacon <will@kernel.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20220812230949.683239-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/pmu-events/empty-pmu-events.c
tools/perf/pmu-events/jevents.py
tools/perf/pmu-events/pmu-events.h
tools/perf/tests/expand-cgroup.c
tools/perf/tests/parse-metric.c

index d8cf9283e48644250eb20e6aa7b2e33e57770337..4182a986f505ab57094f5224ff604ad2fba1b85b 100644 (file)
@@ -112,15 +112,11 @@ const struct pmu_events_map pmu_events_map[] = {
        {
                .arch = "testarch",
                .cpuid = "testcpu",
-               .version = "v1",
-               .type = "core",
                .table = pme_test_soc_cpu,
        },
        {
                .arch = 0,
                .cpuid = 0,
-               .version = 0,
-               .type = 0,
                .table = 0,
        },
 };
index b49a0dd946b7fb01ec3190c9831fa0c65b03bfa6..8e8462cb359ba7c4db0eb049db5120b75269bae7 100755 (executable)
@@ -313,8 +313,6 @@ def print_mapping_table(archs: Sequence[str]) -> None:
       _args.output_file.write("""{
 \t.arch = "testarch",
 \t.cpuid = "testcpu",
-\t.version = "v1",
-\t.type = "core",
 \t.table = pme_test_soc_cpu,
 },
 """)
@@ -330,8 +328,6 @@ def print_mapping_table(archs: Sequence[str]) -> None:
             _args.output_file.write(f"""{{
 \t.arch = "{arch}",
 \t.cpuid = "{cpuid}",
-\t.version = "{row[1]}",
-\t.type = "{row[3]}",
 \t.table = {tblname}
 }},
 """)
@@ -340,8 +336,6 @@ def print_mapping_table(archs: Sequence[str]) -> None:
   _args.output_file.write("""{
 \t.arch = 0,
 \t.cpuid = 0,
-\t.version = 0,
-\t.type = 0,
 \t.table = 0,
 }
 };
index 7a360792635f8b6431b8f4e59ea402e2fcfaf49d..a491b117c8ac7b876a4071ddfa35684efdd673fd 100644 (file)
@@ -40,8 +40,6 @@ struct pmu_event {
 struct pmu_events_map {
        const char *arch;
        const char *cpuid;
-       const char *version;
-       const char *type;               /* core, uncore etc */
        const struct pmu_event *table;
 };
 
index dfefe5b60eb23b1467149c5d8ecedbc1ce0a69aa..dc4038f997d781cfee751c319f5a3b2a5cef94ee 100644 (file)
@@ -197,8 +197,6 @@ static int expand_metric_events(void)
        };
        const struct pmu_events_map ev_map = {
                .cpuid          = "test",
-               .version        = "1",
-               .type           = "core",
                .table          = pme_test,
        };
 
index 07b6f4ec024f0a0f423d8484b4b21d6e268ed354..1b811a26f4ee098d45df829f79879a6cffcc773d 100644 (file)
@@ -81,8 +81,6 @@ static struct pmu_event pme_test[] = {
 
 static const struct pmu_events_map map = {
        .cpuid          = "test",
-       .version        = "1",
-       .type           = "core",
        .table          = pme_test,
 };