Home
last modified time | relevance | path

Searched refs:cpuset_size (Results 1 – 6 of 6) sorted by relevance

/external/strace/tests/
Dsched_xetaffinity.c63 unsigned int cpuset_size = 1; in main() local
66 while (cpuset_size) { in main()
67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main()
73 pid, cpuset_size, errstr); in main()
74 cpuset_size <<= 1; in main()
76 assert(cpuset_size); in main()
78 pid, cpuset_size, errstr); in main()
80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main()
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
[all …]
/external/strace/tests-m32/
Dsched_xetaffinity.c63 unsigned int cpuset_size = 1; in main() local
66 while (cpuset_size) { in main()
67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main()
73 pid, cpuset_size, errstr); in main()
74 cpuset_size <<= 1; in main()
76 assert(cpuset_size); in main()
78 pid, cpuset_size, errstr); in main()
80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main()
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
[all …]
/external/strace/tests-mx32/
Dsched_xetaffinity.c63 unsigned int cpuset_size = 1; in main() local
66 while (cpuset_size) { in main()
67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main()
73 pid, cpuset_size, errstr); in main()
74 cpuset_size <<= 1; in main()
76 assert(cpuset_size); in main()
78 pid, cpuset_size, errstr); in main()
80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main()
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
[all …]
/external/strace/
Daffinity.c35 static unsigned int cpuset_size; in get_cpuset_size() local
37 if (!cpuset_size) { in get_cpuset_size()
50 cpuset_size = 128; in get_cpuset_size()
51 while (cpuset_size && in get_cpuset_size()
52 sched_getaffinity(0, cpuset_size, NULL) == -1 && in get_cpuset_size()
54 cpuset_size <<= 1; in get_cpuset_size()
56 if (!cpuset_size) in get_cpuset_size()
57 cpuset_size = 128; in get_cpuset_size()
60 return cpuset_size; in get_cpuset_size()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dcpuset.h174 int cpuset_size(void);
Dlibcpuset.c3674 int cpuset_size(void) in cpuset_size() function
3831 "cpuset_size", cpuset_size}, {
3854 return cpuset_size(); in cpuset_size_()