xref: /linux/tools/perf/util/sample-raw.c (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #include <string.h>
4 #include "evlist.h"
5 #include "env.h"
6 #include "sample-raw.h"
7 
8 /*
9  * Check platform the perf data file was created on and perform platform
10  * specific interpretation.
11  */
12 void evlist__init_trace_event_sample_raw(struct evlist *evlist)
13 {
14 	const char *arch_pf = perf_env__arch(evlist->env);
15 
16 	if (arch_pf && !strcmp("s390", arch_pf))
17 		evlist->trace_event_sample_raw = evlist__s390_sample_raw;
18 }
19