Home
last modified time | relevance | path

Searched refs:cpu_set_t (Results 1 - 25 of 80) sorted by relevance

1234

/third_party/musl/porting/liteos_a/user/include/
H A Dsched.h82 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
83 int __sched_cpucount(size_t, const cpu_set_t *);
85 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
86 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
96 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
97 const cpu_set_t *__src1, const cpu_set_t *__src2) \
119 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
124 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),se
[all...]
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dsched.h74 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
75 int __sched_cpucount(size_t, const cpu_set_t *);
77 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
78 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
88 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
89 const cpu_set_t *__src1, const cpu_set_t *__src2) \
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
116 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),se
[all...]
H A Dpthread.h223 struct cpu_set_t;
224 int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
225 int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dsched.h74 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
75 int __sched_cpucount(size_t, const cpu_set_t *);
77 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
78 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
88 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
89 const cpu_set_t *__src1, const cpu_set_t *__src2) \
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
116 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),se
[all...]
/third_party/musl/porting/uniproton/kernel/include/
H A Dsched.h74 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
75 int __sched_cpucount(size_t, const cpu_set_t *);
77 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
78 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
88 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
89 const cpu_set_t *__src1, const cpu_set_t *__src2) \
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
116 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),se
[all...]
H A Dpthread.h223 struct cpu_set_t;
224 int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
225 int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
/third_party/musl/porting/linux/user/include/
H A Dsched.h88 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
89 cpu_set_t* __sched_cpualloc(size_t __count);
90 int __sched_cpucount(size_t, const cpu_set_t *);
92 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
93 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
103 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
104 const cpu_set_t *__src1, const cpu_set_t *__src2) \
126 #define CPU_ALLOC(n) ((cpu_set_t *)callo
[all...]
/third_party/musl/include/
H A Dsched.h99 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
100 cpu_set_t* __sched_cpualloc(size_t __count);
101 int __sched_cpucount(size_t, const cpu_set_t *);
103 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
104 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
114 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
115 const cpu_set_t *__src1, const cpu_set_t *__src2) \
137 #define CPU_ALLOC(n) ((cpu_set_t *)callo
[all...]
/third_party/musl/porting/liteos_a/kernel/include/
H A Dsched.h76 int __sched_cpucount(size_t, const cpu_set_t *);
78 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
79 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
89 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
90 const cpu_set_t *__src1, const cpu_set_t *__src2) \
112 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
115 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),set)
116 #define CPU_CLR(i, set) CPU_CLR_S(i,sizeof(cpu_set_t),set)
117 #define CPU_ISSET(i, set) CPU_ISSET_S(i,sizeof(cpu_set_t),se
[all...]
H A Dpthread.h266 struct cpu_set_t;
267 int pthread_attr_setaffinity_np(pthread_attr_t *, size_t, const cpu_set_t *);
268 int pthread_attr_getaffinity_np(const pthread_attr_t *, size_t, cpu_set_t *);
269 int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t *);
270 int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t *);
/third_party/musl/porting/liteos_m/user/include/
H A Dsched.h86 typedef struct cpu_set_t { unsigned long __bits[128/sizeof(long)]; } cpu_set_t; typedef
87 int __sched_cpucount(size_t, const cpu_set_t *);
89 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
90 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
100 static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
101 const cpu_set_t *__src1, const cpu_set_t *__src2) \
123 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
128 #define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),se
[all...]
/third_party/musl/src/sched/
H A Daffinity.c7 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set) in sched_setaffinity()
10 if (size != sizeof(cpu_set_t)) { in sched_setaffinity()
20 int pthread_setaffinity_np(pthread_t td, size_t size, const cpu_set_t *set) in pthread_setaffinity_np()
23 if (size != sizeof(cpu_set_t)) { in pthread_setaffinity_np()
33 static int do_getaffinity(pid_t tid, size_t size, cpu_set_t *set, int flag) in do_getaffinity()
36 if (size != sizeof(cpu_set_t)) { in do_getaffinity()
47 static int do_getaffinity(pid_t tid, size_t size, cpu_set_t *set) in do_getaffinity()
56 int sched_getaffinity(pid_t tid, size_t size, cpu_set_t *set) in sched_getaffinity()
65 int pthread_getaffinity_np(pthread_t td, size_t size, cpu_set_t *set) in pthread_getaffinity_np()
H A Dsched_cpualloc.c20 cpu_set_t* __sched_cpualloc(size_t count) in __sched_cpualloc()
23 // N * sizeof(unsigned long), which is incompatible with cpu_set_t. This is in __sched_cpualloc()
25 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); // NOLINT in __sched_cpualloc()
/third_party/musl/porting/liteos_a/user/src/sched/
H A Daffinity.c7 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set) in sched_setaffinity()
9 if (size != sizeof(cpu_set_t)) { in sched_setaffinity()
16 int pthread_setaffinity_np(pthread_t td, size_t size, const cpu_set_t *set) in pthread_setaffinity_np()
18 if (size != sizeof(cpu_set_t)) { in pthread_setaffinity_np()
24 static int do_getaffinity(pid_t tid, size_t size, cpu_set_t *set, int flag) in do_getaffinity()
27 if (size != sizeof(cpu_set_t)) { in do_getaffinity()
38 int sched_getaffinity(pid_t tid, size_t size, cpu_set_t *set) in sched_getaffinity()
43 int pthread_getaffinity_np(pthread_t td, size_t size, cpu_set_t *set) in pthread_getaffinity_np()
/third_party/musl/libc-test/src/functional/
H A Dsched_cpualloc.c9 cpu_set_t *p = __sched_cpualloc(0); in main()
10 cpu_set_t *q = __sched_cpualloc(0); in main()
11 cpu_set_t *r = __sched_cpualloc(0); in main()
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A D_pthreadtypes.h55 typedef struct cpu_set_t { unsigned long __bits[CPU_SETSIZE/(8 * sizeof(unsigned long int))]; } cpu_set_t; typedef
68 cpu_set_t cpuset;
/third_party/musl/libc-test/src/functionalext/supplement/sched/
H A Dsched_setaffinity.c31 cpu_set_t *set = CPU_ALLOC(max); in sched_setaffinity_0100()
57 cpu_set_t mask; in sched_setaffinity_0200()
58 cpu_set_t get; in sched_setaffinity_0200()
H A D__sched_cpucount.c32 cpu_set_t *cpusetp; in __sched_cpucount_0100()
58 cpu_set_t *cpusetp; in __sched_cpucount_0200()
84 cpu_set_t *cpusetp; in __sched_cpucount_0300()
H A Dsched_getaffinity.c28 cpu_set_t mask; in sched_getaffinity_0100()
29 cpu_set_t get; in sched_getaffinity_0100()
/third_party/musl/porting/linux/user/src/sched/
H A Dsched_cpualloc.c5 cpu_set_t* __sched_cpualloc(size_t count) in __sched_cpualloc()
8 // N * sizeof(unsigned long), which is incompatible with cpu_set_t. This is in __sched_cpualloc()
10 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); // NOLINT in __sched_cpualloc()
/third_party/musl/porting/liteos_a_newlib/kernel/include/
H A Dsched.h43 int sched_getaffinity(pid_t, size_t, cpu_set_t *);
44 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
/third_party/ltp/include/lapi/
H A Dcpuset.h8 * dynamically sized cpu sets, but provide only static cpu_set_t type
24 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \
36 #define CPU_ALLOC_SIZE(size) sizeof(cpu_set_t)
/third_party/ltp/testcases/open_posix_testsuite/include/
H A Daffinity.h33 cpu_set_t mask; in set_affinity()
38 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
/third_party/skia/third_party/externals/oboe/samples/shared/
H A DDefaultAudioStreamCallback.h113 cpu_set_t cpu_set; in setThreadAffinity()
130 int result = sched_setaffinity(current_thread_id, sizeof(cpu_set_t), &cpu_set); in setThreadAffinity()
/third_party/ltp/testcases/realtime/stress/pi-tests/
H A Dtestpi-3.c103 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()

Completed in 8 milliseconds

1234