Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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