Merge tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / util / sample-raw.c
blobe84bbe0e441a06380f621ac004c8b92dba6961da
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <string.h>
4 #include "evlist.h"
5 #include "env.h"
6 #include "sample-raw.h"
8 /*
9 * Check platform the perf data file was created on and perform platform
10 * specific interpretation.
12 void perf_evlist__init_trace_event_sample_raw(struct evlist *evlist)
14 const char *arch_pf = perf_env__arch(evlist->env);
16 if (arch_pf && !strcmp("s390", arch_pf))
17 evlist->trace_event_sample_raw = perf_evlist__s390_sample_raw;