1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 #include <string.h> 3 #include <string.h> 4 #include <linux/string.h> << 5 #include "evlist.h" 4 #include "evlist.h" 6 #include "env.h" 5 #include "env.h" 7 #include "header.h" << 8 #include "sample-raw.h" 6 #include "sample-raw.h" 9 7 10 /* 8 /* 11 * Check platform the perf data file was creat 9 * Check platform the perf data file was created on and perform platform 12 * specific interpretation. 10 * specific interpretation. 13 */ 11 */ 14 void evlist__init_trace_event_sample_raw(struc !! 12 void perf_evlist__init_trace_event_sample_raw(struct evlist *evlist) 15 { 13 { 16 const char *arch_pf = perf_env__arch(e 14 const char *arch_pf = perf_env__arch(evlist->env); 17 const char *cpuid = perf_env__cpuid(ev << 18 15 19 if (arch_pf && !strcmp("s390", arch_pf 16 if (arch_pf && !strcmp("s390", arch_pf)) 20 evlist->trace_event_sample_raw !! 17 evlist->trace_event_sample_raw = perf_evlist__s390_sample_raw; 21 else if (arch_pf && !strcmp("x86", arc << 22 cpuid && strstarts(cpuid, "Au << 23 evlist__has_amd_ibs(evlist)) << 24 evlist->trace_event_sample_raw << 25 } << 26 } 18 } 27 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.