Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 62fb9874f5da54fdb243003b386128037319b219 authored by Linus Torvalds on 27 June 2021, 22:21:11 UTC
Linux 5.13
Tip revision: 62fb987
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