Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a authored by Linus Torvalds on 02 June 2019, 20:55:33 UTC
Linux 5.2-rc3
Tip revision: f2c7c76
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 perf_evlist__init_trace_event_sample_raw(struct perf_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;
}
back to top