mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Arnaldo Carvalho de Melo](/assets/img/avatar_default.png)
perf_evlist__ is for 'struct perf_evlist' methods, in tools/lib/perf/, go on completing this split. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
18 lines
453 B
C
18 lines
453 B
C
/* 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 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 = evlist__s390_sample_raw;
|
|
}
|