/external/stressapptest/src/ |
D | sattypes.h | 98 typedef uint64 cpu_set_t; typedef 99 #define CPU_SETSIZE (sizeof(cpu_set_t) * 8) 106 static inline bool cpuset_isequal(const cpu_set_t *c1, const cpu_set_t *c2) { in cpuset_isequal() 113 static inline bool cpuset_issubset(const cpu_set_t *c1, const cpu_set_t *c2) { in cpuset_issubset() 120 static inline int cpuset_count(const cpu_set_t *cpuset) { in cpuset_count() 128 static inline void cpuset_set_ab(cpu_set_t *cpuset, int a, int b) { in cpuset_set_ab() 134 static inline string cpuset_format(const cpu_set_t *cpuset) { in cpuset_format()
|
D | worker.h | 272 void set_cpu_mask(cpu_set_t *mask) { in set_cpu_mask() 283 bool AvailableCpus(cpu_set_t *cpuset); 285 bool CurrentCpus(cpu_set_t *cpuset); 288 cpu_set_t current_cpus; in CurrentCpusFormat() 296 bool BindToCpus(const cpu_set_t *cpuset); 380 cpu_set_t cpu_mask_; // Cores this thread is allowed to run on.
|
/external/autotest/client/tests/monotonic_time/src/ |
D | cpuset.h | 13 int count_cpus(const cpu_set_t *cpus); 14 int parse_cpu_set(const char *s, cpu_set_t *cpus); 15 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus);
|
D | cpuset.c | 16 int count_cpus(const cpu_set_t *cpus) in count_cpus() 32 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() 110 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus) in show_cpu_set()
|
D | threads.c | 21 cpu_set_t cpus; 52 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg) in create_per_cpu_threads()
|
/external/ltp/testcases/kernel/syscalls/sched_getaffinity/ |
D | sched_getaffinity01.c | 94 cpu_set_t *mask; in do_test() 103 mask = malloc(sizeof(cpu_set_t)); in do_test() 111 len = sizeof(cpu_set_t); in do_test() 153 QUICK_TEST(sched_getaffinity(0, len, (cpu_set_t *) - 1)); in do_test()
|
/external/autotest/client/tests/netperf2/ |
D | fix_netperf_build.patch | 8 +#define NETPERF_CPU_SET(cpu, cpusetp) __CPU_SET_S(cpu, sizeof (cpu_set_t), cpusetp) 9 +#define NETPERF_CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 14 typedef cpu_set_t netperf_cpu_set_t;
|
/external/autotest/client/tests/tsc/src/ |
D | sched.h | 23 } cpu_set_t; typedef 29 cpu_set_t *__arr = (cpusetp); \ 30 for (__i = 0; __i < sizeof (cpu_set_t) / sizeof (__cpu_mask); ++__i) \
|
D | checktsc.c | 72 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() 179 cpu_set_t cpus; in set_cpu_affinity() 275 check_tsc(cpu_set_t *cpus) in check_tsc() 320 cpu_set_t cpus; in main()
|
/external/iperf3/src/ |
D | main.c | 78 cpu_set_t cpu_set; in main() 82 sched_getaffinity(0, sizeof(cpu_set_t), &cpu_set); in main() 91 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpu_set) != 0) in main()
|
/external/ltp/testcases/kernel/syscalls/sched_setaffinity/ |
D | sched_setaffinity01.c | 50 static cpu_set_t *mask, *emask; 51 static cpu_set_t *fmask = (void *)-1; 62 cpu_set_t **mask;
|
/external/ltp/testcases/kernel/sched/eas/ |
D | util.c | 24 cpu_set_t cpuset; in affine() 27 ERROR_CHECK(sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)); in affine() 159 int find_cpus_with_capacity(int get_bigs, cpu_set_t *cpuset) in find_cpus_with_capacity()
|
/external/ltp/include/lapi/ |
D | cpuset.h | 36 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \ 48 #define CPU_ALLOC_SIZE(size) sizeof(cpu_set_t)
|
/external/perfetto/tools/skippy/ |
D | skippy.cc | 32 cpu_set_t set{}; in SetAffinity() 35 sched_setaffinity(0 /* calling process */, sizeof(cpu_set_t), &set) == 0); in SetAffinity()
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | affinity.h | 34 cpu_set_t mask; in set_affinity() 39 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 32 cpu_set_t cpuset; in set_cpu() 137 cpu_set_t cpuset; in bench_thread() 152 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in bench_thread()
|
/external/linux-kselftest/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 27 cpu_set_t cpuset; in main() 53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/external/ltp/testcases/realtime/stress/pi-tests/ |
D | testpi-3.c | 103 cpu_set_t mask; in func_nonrt() 152 cpu_set_t mask; in func_rt() 208 cpu_set_t mask; in func_noise() 326 cpu_set_t mask; in main()
|
/external/libhevc/common/ |
D | ithread.c | 153 cpu_set_t cpuset; in ithread_set_affinity() 163 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()
|
/external/libmpeg2/common/ |
D | ithread.c | 160 cpu_set_t cpuset; in ithread_set_affinity() 170 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()
|
/external/libavc/common/ |
D | ithread.c | 178 cpu_set_t cpuset; in ithread_set_affinity() 188 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()
|
/external/ltp/testcases/kernel/device-drivers/cpufreq/ |
D | cpufreq_boost.c | 101 cpu_set_t set; in setup() 104 if (sched_setaffinity(0, sizeof(cpu_set_t), &set) < 0) in setup()
|
/external/ltp/testcases/kernel/syscalls/getcpu/ |
D | getcpu01.c | 34 static unsigned int max_cpuid(size_t size, cpu_set_t * set) in max_cpuid() 50 cpu_set_t *set; in set_cpu_affinity()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/ |
D | tm-trap.c | 254 cpu_set_t cpuset; in tm_trap_test() 284 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_trap_test()
|
/external/linux-kselftest/tools/testing/selftests/breakpoints/ |
D | step_after_suspend_test.c | 35 cpu_set_t set; in child() 176 cpu_set_t available_cpus; in main()
|