File Index
Files and directories
Sign in
FILE

affinity.h

File preview with syntax highlighting.

linux-6.19.14/tools/perf/util/affinity.h C
 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
~/ Read-only file preview.