Home
last modified time | relevance | path

Searched refs:maxnode (Results 1 – 12 of 12) sorted by relevance

/external/strace/tests-m32/
Dget_mempolicy.c46 print_nodes(unsigned long maxnode) in print_nodes() argument
49 tail_alloc(sizeof(*nodemask) * NLONGS(maxnode)); in print_nodes()
51 if (syscall(__NR_get_mempolicy, 0, nodemask, maxnode, 0, 0)) { in print_nodes()
53 nodemask, maxnode, errno2name()); in print_nodes()
59 unsigned int nlongs = NLONGS(maxnode); in print_nodes()
71 printf("], %lu, NULL, 0) = 0\n", maxnode); in print_nodes()
84 unsigned long maxnode = (unsigned long) 0xcafef00dbadc0dedULL; in main() local
88 rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); in main()
90 mode, nodemask, maxnode, addr, in main()
107 maxnode = get_page_size() * 8; in main()
[all …]
Dset_mempolicy.c49 print_nodes(const unsigned long maxnode, unsigned int offset) in print_nodes() argument
51 unsigned int nlongs = NLONGS(maxnode); in print_nodes()
61 long rc = syscall(__NR_set_mempolicy, 0, nodemask, maxnode); in print_nodes()
86 if (maxnode) in print_nodes()
92 printf(", %lu) = %s\n", maxnode, errstr); in print_nodes()
98 unsigned long maxnode = get_page_size() * 8; in test_offset() local
100 print_nodes(maxnode, offset); in test_offset()
101 print_nodes(maxnode + 1, offset); in test_offset()
102 print_nodes(maxnode + 2, offset); in test_offset()
104 maxnode = sizeof(long) * 8; in test_offset()
[all …]
Dmbind.c44 const unsigned long maxnode = (unsigned long) 0xdeadbeeffffffff2ULL; in main() local
47 long rc = syscall(__NR_mbind, 0, len, mode, nodemask, maxnode, flags); in main()
49 len, "MPOL_INTERLEAVE", nodemask, maxnode, in main()
/external/strace/tests/
Dget_mempolicy.c46 print_nodes(unsigned long maxnode) in print_nodes() argument
49 tail_alloc(sizeof(*nodemask) * NLONGS(maxnode)); in print_nodes()
51 if (syscall(__NR_get_mempolicy, 0, nodemask, maxnode, 0, 0)) { in print_nodes()
53 nodemask, maxnode, errno2name()); in print_nodes()
59 unsigned int nlongs = NLONGS(maxnode); in print_nodes()
71 printf("], %lu, NULL, 0) = 0\n", maxnode); in print_nodes()
84 unsigned long maxnode = (unsigned long) 0xcafef00dbadc0dedULL; in main() local
88 rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); in main()
90 mode, nodemask, maxnode, addr, in main()
107 maxnode = get_page_size() * 8; in main()
[all …]
Dset_mempolicy.c49 print_nodes(const unsigned long maxnode, unsigned int offset) in print_nodes() argument
51 unsigned int nlongs = NLONGS(maxnode); in print_nodes()
61 long rc = syscall(__NR_set_mempolicy, 0, nodemask, maxnode); in print_nodes()
86 if (maxnode) in print_nodes()
92 printf(", %lu) = %s\n", maxnode, errstr); in print_nodes()
98 unsigned long maxnode = get_page_size() * 8; in test_offset() local
100 print_nodes(maxnode, offset); in test_offset()
101 print_nodes(maxnode + 1, offset); in test_offset()
102 print_nodes(maxnode + 2, offset); in test_offset()
104 maxnode = sizeof(long) * 8; in test_offset()
[all …]
Dmbind.c44 const unsigned long maxnode = (unsigned long) 0xdeadbeeffffffff2ULL; in main() local
47 long rc = syscall(__NR_mbind, 0, len, mode, nodemask, maxnode, flags); in main()
49 len, "MPOL_INTERLEAVE", nodemask, maxnode, in main()
/external/strace/tests-mx32/
Dget_mempolicy.c46 print_nodes(unsigned long maxnode) in print_nodes() argument
49 tail_alloc(sizeof(*nodemask) * NLONGS(maxnode)); in print_nodes()
51 if (syscall(__NR_get_mempolicy, 0, nodemask, maxnode, 0, 0)) { in print_nodes()
53 nodemask, maxnode, errno2name()); in print_nodes()
59 unsigned int nlongs = NLONGS(maxnode); in print_nodes()
71 printf("], %lu, NULL, 0) = 0\n", maxnode); in print_nodes()
84 unsigned long maxnode = (unsigned long) 0xcafef00dbadc0dedULL; in main() local
88 rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); in main()
90 mode, nodemask, maxnode, addr, in main()
107 maxnode = get_page_size() * 8; in main()
[all …]
Dset_mempolicy.c49 print_nodes(const unsigned long maxnode, unsigned int offset) in print_nodes() argument
51 unsigned int nlongs = NLONGS(maxnode); in print_nodes()
61 long rc = syscall(__NR_set_mempolicy, 0, nodemask, maxnode); in print_nodes()
86 if (maxnode) in print_nodes()
92 printf(", %lu) = %s\n", maxnode, errstr); in print_nodes()
98 unsigned long maxnode = get_page_size() * 8; in test_offset() local
100 print_nodes(maxnode, offset); in test_offset()
101 print_nodes(maxnode + 1, offset); in test_offset()
102 print_nodes(maxnode + 2, offset); in test_offset()
104 maxnode = sizeof(long) * 8; in test_offset()
[all …]
Dmbind.c44 const unsigned long maxnode = (unsigned long) 0xdeadbeeffffffff2ULL; in main() local
47 long rc = syscall(__NR_mbind, 0, len, mode, nodemask, maxnode, flags); in main()
49 len, "MPOL_INTERLEAVE", nodemask, maxnode, in main()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1495 #define __sanitizer_syscall_pre_set_mempolicy(mode, nmask, maxnode) \ argument
1497 (long)(maxnode))
1498 #define __sanitizer_syscall_post_set_mempolicy(res, mode, nmask, maxnode) \ argument
1500 (long)(nmask), (long)(maxnode))
1501 #define __sanitizer_syscall_pre_migrate_pages(pid, maxnode, from, to) \ argument
1502 __sanitizer_syscall_pre_impl_migrate_pages((long)(pid), (long)(maxnode), \
1504 #define __sanitizer_syscall_post_migrate_pages(res, pid, maxnode, from, to) \ argument
1506 res, (long)(pid), (long)(maxnode), (long)(from), (long)(to))
1517 #define __sanitizer_syscall_pre_mbind(start, len, mode, nmask, maxnode, flags) \ argument
1519 (long)(nmask), (long)(maxnode), \
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2385 PRE_SYSCALL(set_mempolicy)(long mode, void *nmask, long maxnode) {}
2387 POST_SYSCALL(set_mempolicy)(long res, long mode, void *nmask, long maxnode) {
2393 PRE_SYSCALL(migrate_pages)(long pid, long maxnode, const void *from,
2399 POST_SYSCALL(migrate_pages)(long res, long pid, long maxnode, const void *from,
2415 PRE_SYSCALL(mbind)(long start, long len, long mode, void *nmask, long maxnode,
2419 long maxnode, long flags) {
2425 PRE_SYSCALL(get_mempolicy)(void *policy, void *nmask, long maxnode, long addr,
2428 POST_SYSCALL(get_mempolicy)(long res, void *policy, void *nmask, long maxnode,
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibcpuset.c3090 unsigned long maxnode, void *addr, int flags) in get_mempolicy() argument
3092 return ltp_syscall(__NR_get_mempolicy, policy, nmask, maxnode, in get_mempolicy()
3096 static int set_mempolicy(int mode, unsigned long *nmask, unsigned long maxnode) in set_mempolicy() argument
3098 return ltp_syscall(__NR_set_mempolicy, mode, nmask, maxnode); in set_mempolicy()