1 // SPDX-License-Identifier: GPL-2.0 2 #ifndef PERF_AFFINITY_H 3 #define PERF_AFFINITY_H 1 4 5 #include <stdbool.h> 6 7 struct perf_cpu_map; 8 struct affinity { 9 unsigned long *orig_cpus; 10 unsigned long *sched_cpus; 11 bool changed; 12 }; 13 14 void affinity__cleanup(struct affinity *a); 15 void affinity__set(struct affinity *a, int cpu); 16 int affinity__setup(struct affinity *a); 17 void cpu_map__set_affinity(const struct perf_cpu_map *cpumap); 18 19 #endif // PERF_AFFINITY_H 20