xref: /kernel/linux/linux-6.6/tools/perf/util/affinity.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/perf/util/
162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#ifndef PERF_AFFINITY_H
362306a36Sopenharmony_ci#define PERF_AFFINITY_H 1
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <stdbool.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_cistruct affinity {
862306a36Sopenharmony_ci	unsigned long *orig_cpus;
962306a36Sopenharmony_ci	unsigned long *sched_cpus;
1062306a36Sopenharmony_ci	bool changed;
1162306a36Sopenharmony_ci};
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_civoid affinity__cleanup(struct affinity *a);
1462306a36Sopenharmony_civoid affinity__set(struct affinity *a, int cpu);
1562306a36Sopenharmony_ciint affinity__setup(struct affinity *a);
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#endif // PERF_AFFINITY_H
18

Indexes created Thu Nov 07 10:32:03 CST 2024