Brooklyn/tools/perf/util/sample-raw.c

19 lines
463 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0 */
#include <string.h>
#include "evlist.h"
#include "env.h"
#include "sample-raw.h"
/*
* Check platform the perf data file was created on and perform platform
* specific interpretation.
*/
2021-09-23 21:59:15 +05:00
void perf_evlist__init_trace_event_sample_raw(struct evlist *evlist)
2021-05-27 00:09:36 +05:00
{
const char *arch_pf = perf_env__arch(evlist->env);
if (arch_pf && !strcmp("s390", arch_pf))
2021-09-23 21:59:15 +05:00
evlist->trace_event_sample_raw = perf_evlist__s390_sample_raw;
2021-05-27 00:09:36 +05:00
}