Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0 authored by Linus Torvalds on 14 March 2021, 21:41:02 UTC
Linux 5.12-rc3
Tip revision: 1e28eed
sample-raw.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;
}
back to top