forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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.
 */
void perf_evlist__init_trace_event_sample_raw(struct evlist *evlist)
{
   const char *arch_pf = perf_env__arch(evlist->env);
 
   if (arch_pf && !strcmp("s390", arch_pf))
       evlist->trace_event_sample_raw = perf_evlist__s390_sample_raw;
}