Commit 5abd3988 authored by John Garry's avatar John Garry Committed by Arnaldo Carvalho de Melo
Browse files

perf jevents: Print SoC name per system event table



Print the SoC name per system event table, which will allow the test SoC be
identified by the pmu-events test.

Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linuxarm@huawei.com
Link: https //lore.kernel.org/r/1627566986-30605-11-git-send-email-john.garry@huawei.com
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e199f47f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -836,7 +836,8 @@ static int process_system_event_tables(FILE *outfp)
	print_system_event_mapping_table_prefix(outfp);

	list_for_each_entry(sys_event_table, &sys_event_tables, list) {
		fprintf(outfp, "\n\t{\n\t\t.table = %s,\n\t},",
		fprintf(outfp, "\n\t{\n\t\t.table = %s,\n\t\t.name = \"%s\",\n\t},",
			sys_event_table->soc_id,
			sys_event_table->soc_id);
	}

+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ struct pmu_events_map {
};

struct pmu_sys_events {
	const char *name;
	struct pmu_event *table;
};