mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-08 10:31:43 +01:00
Rename struct perf_evlist to struct evlist, so we don't have a name clash when we add struct perf_evlist in libperf. Committer notes: Added fixes to build on arm64, from Jiri and from me (tools/perf/util/cs-etm.c) Signed-off-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexey Budankov <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
19 lines
463 B
C
19 lines
463 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 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;
|
|
}
|