Home
last modified time | relevance | path

Searched refs:orig_cpus (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/tools/perf/util/ !
Daffinity.c28 a->orig_cpus = bitmap_zalloc(cpu_set_size * 8); in affinity__setup()
29 if (!a->orig_cpus) in affinity__setup()
31 sched_getaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in affinity__setup()
34 zfree(&a->orig_cpus); in affinity__setup()
76 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in __affinity__cleanup()
78 zfree(&a->orig_cpus); in __affinity__cleanup()
Daffinity.h8 unsigned long *orig_cpus; member
/linux-6.1.9/tools/tracing/rtla/src/ !
Dosnoise.c29 if (context->orig_cpus) in osnoise_get_cpus()
30 return context->orig_cpus; in osnoise_get_cpus()
32 context->orig_cpus = tracefs_instance_file_read(NULL, "osnoise/cpus", NULL); in osnoise_get_cpus()
38 return context->orig_cpus; in osnoise_get_cpus()
50 char *orig_cpus = osnoise_get_cpus(context); in osnoise_set_cpus() local
54 if (!orig_cpus) in osnoise_set_cpus()
63 debug_msg("setting cpus to %s from %s", cpus, context->orig_cpus); in osnoise_set_cpus()
86 if (!context->orig_cpus) in osnoise_restore_cpus()
93 if (!strcmp(context->orig_cpus, context->curr_cpus)) in osnoise_restore_cpus()
96 debug_msg("restoring cpus to %s", context->orig_cpus); in osnoise_restore_cpus()
[all …]
Dosnoise.h12 char *orig_cpus; member