affinity.h 362 B

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