xref: /kernel/linux/linux-5.10/tools/perf/util/sample-raw.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/perf/util/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci#include <string.h>
48c2ecf20Sopenharmony_ci#include "evlist.h"
58c2ecf20Sopenharmony_ci#include "env.h"
68c2ecf20Sopenharmony_ci#include "sample-raw.h"
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/*
98c2ecf20Sopenharmony_ci * Check platform the perf data file was created on and perform platform
108c2ecf20Sopenharmony_ci * specific interpretation.
118c2ecf20Sopenharmony_ci */
128c2ecf20Sopenharmony_civoid perf_evlist__init_trace_event_sample_raw(struct evlist *evlist)
138c2ecf20Sopenharmony_ci{
148c2ecf20Sopenharmony_ci	const char *arch_pf = perf_env__arch(evlist->env);
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci	if (arch_pf && !strcmp("s390", arch_pf))
178c2ecf20Sopenharmony_ci		evlist->trace_event_sample_raw = perf_evlist__s390_sample_raw;
188c2ecf20Sopenharmony_ci}
19

Indexes created Thu Nov 07 10:32:03 CST 2024