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