sample-raw.c 463 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <string.h>
  3. #include "evlist.h"
  4. #include "env.h"
  5. #include "sample-raw.h"
  6. /*
  7. * Check platform the perf data file was created on and perform platform
  8. * specific interpretation.
  9. */
  10. void perf_evlist__init_trace_event_sample_raw(struct evlist *evlist)
  11. {
  12. const char *arch_pf = perf_env__arch(evlist->env);
  13. if (arch_pf && !strcmp("s390", arch_pf))
  14. evlist->trace_event_sample_raw = perf_evlist__s390_sample_raw;
  15. }