Home
last modified time | relevance | path

Searched refs:nodemask (Results 1 – 23 of 23) sorted by relevance

/external/ltp/testcases/kernel/lib/
Dnuma_helper.c49 static void get_nodemask_allnodes(nodemask_t * nodemask, unsigned long max_node) in get_nodemask_allnodes() argument
56 memset(nodemask, 0, nodemask_size); in get_nodemask_allnodes()
60 nodemask_set(nodemask, i); in get_nodemask_allnodes()
64 static int filter_nodemask_mem(nodemask_t * nodemask, unsigned long max_node) in filter_nodemask_mem() argument
68 memset(nodemask, 0, nodemask_size); in filter_nodemask_mem()
80 if (syscall(__NR_get_mempolicy, NULL, nodemask->n, in filter_nodemask_mem()
93 if (!nodemask_isset(nodemask, i)) in filter_nodemask_mem()
96 nodemask_clr(nodemask, i); in filter_nodemask_mem()
115 static void filter_nodemask_cpu(nodemask_t * nodemask, unsigned long max_node) in filter_nodemask_cpu() argument
124 if (!nodemask_isset(nodemask, i)) in filter_nodemask_cpu()
[all …]
/external/strace/tests/
Dget_mempolicy.c48 unsigned long *const nodemask = in print_nodes() local
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()
68 printf("%#0*lx", (int) sizeof(*nodemask) * 2 + 2, nodemask[i]); in print_nodes()
85 const unsigned long *nodemask = (void *) 0xfacedad3bebefed4ULL; in main() local
88 rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); in main()
90 mode, nodemask, maxnode, addr, in main()
113 maxnode = sizeof(*nodemask) * 8; in main()
Dset_mempolicy.c57 unsigned long *const nodemask = in print_nodes() local
59 memset(nodemask, 0, size); in print_nodes()
61 long rc = syscall(__NR_set_mempolicy, 0, nodemask, maxnode); in print_nodes()
78 nodemask[i]); in print_nodes()
80 printf("... /* %p */", nodemask + i); in print_nodes()
87 printf("%p", nodemask); in print_nodes()
130 const unsigned long *nodemask = (void *) 0xfacefeedfffffffeULL; in main() local
132 long rc = syscall(__NR_set_mempolicy, 1, nodemask, maxnode); in main()
134 nodemask, maxnode, sprintrc(rc)); in main()
Dmbind.c43 const unsigned long nodemask = (unsigned long) 0xfacefeedfffffff1ULL; 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-m32/
Dget_mempolicy.c48 unsigned long *const nodemask = in print_nodes() local
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()
68 printf("%#0*lx", (int) sizeof(*nodemask) * 2 + 2, nodemask[i]); in print_nodes()
85 const unsigned long *nodemask = (void *) 0xfacedad3bebefed4ULL; in main() local
88 rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); in main()
90 mode, nodemask, maxnode, addr, in main()
113 maxnode = sizeof(*nodemask) * 8; in main()
Dset_mempolicy.c57 unsigned long *const nodemask = in print_nodes() local
59 memset(nodemask, 0, size); in print_nodes()
61 long rc = syscall(__NR_set_mempolicy, 0, nodemask, maxnode); in print_nodes()
78 nodemask[i]); in print_nodes()
80 printf("... /* %p */", nodemask + i); in print_nodes()
87 printf("%p", nodemask); in print_nodes()
130 const unsigned long *nodemask = (void *) 0xfacefeedfffffffeULL; in main() local
132 long rc = syscall(__NR_set_mempolicy, 1, nodemask, maxnode); in main()
134 nodemask, maxnode, sprintrc(rc)); in main()
Dmbind.c43 const unsigned long nodemask = (unsigned long) 0xfacefeedfffffff1ULL; 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.c48 unsigned long *const nodemask = in print_nodes() local
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()
68 printf("%#0*lx", (int) sizeof(*nodemask) * 2 + 2, nodemask[i]); in print_nodes()
85 const unsigned long *nodemask = (void *) 0xfacedad3bebefed4ULL; in main() local
88 rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); in main()
90 mode, nodemask, maxnode, addr, in main()
113 maxnode = sizeof(*nodemask) * 8; in main()
Dset_mempolicy.c57 unsigned long *const nodemask = in print_nodes() local
59 memset(nodemask, 0, size); in print_nodes()
61 long rc = syscall(__NR_set_mempolicy, 0, nodemask, maxnode); in print_nodes()
78 nodemask[i]); in print_nodes()
80 printf("... /* %p */", nodemask + i); in print_nodes()
87 printf("%p", nodemask); in print_nodes()
130 const unsigned long *nodemask = (void *) 0xfacefeedfffffffeULL; in main() local
132 long rc = syscall(__NR_set_mempolicy, 1, nodemask, maxnode); in main()
134 nodemask, maxnode, sprintrc(rc)); in main()
Dmbind.c43 const unsigned long nodemask = (unsigned long) 0xfacefeedfffffff1ULL; 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/ltp/testcases/kernel/syscalls/mbind/
Dmbind01.c42 static struct bitmask *nodemask, *getnodemask, *empty_nodemask; variable
83 .exp_nodemask = &nodemask,
96 .exp_nodemask = &nodemask,
109 .exp_nodemask = &nodemask,
136 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp, in test_default()
137 nodemask->size, tc->flags)); in test_default()
170 nodemask = numa_allocate_nodemask(); in setup_node()
172 numa_bitmask_setbit(nodemask, test_node); in setup_node()
/external/ltp/testcases/kernel/syscalls/get_mempolicy/
Dget_mempolicy01.c225 struct bitmask *nodemask = numa_allocate_nodemask(); in do_test() local
234 numa_bitmask_setbit(nodemask, test_node); in do_test()
244 nodemask->maskp, nodemask->size)); in do_test()
262 nodemask->maskp, nodemask->size, 0)); in do_test()
288 numa_bitmask_clearall(nodemask); in do_test()
290 numa_bitmask_equal(nodemask, in do_test()
/external/iptables/extensions/
Dlibxt_cluster.t8 # outputs --cluster-local-nodemask instead of --cluster-local-node
10 …-local-node 2 --cluster-hash-seed 0xfeedcafe;-m cluster --cluster-local-nodemask 0x00000002 --clus…
Dlibxt_cluster.man13 [\fB!\fP] \fB\-\-cluster\-local\-nodemask\fP \fImask\fP
/external/ltp/testcases/kernel/hotplug/memory_hotplug/
Dcommands.c864 nodemask_t *nodemask = NULL; in mbind_seg() local
901 nodemask = get_nodemask(args); in mbind_seg()
902 if (nodemask == NULL) in mbind_seg()
908 if (!segment_mbind(segname, &range, policy, nodemask, flags)) in mbind_seg()
912 if (nodemask != NULL) in mbind_seg()
913 free(nodemask); in mbind_seg()
Dsegment.c814 nodemask_t * nodemask, int flags) in segment_mbind() argument
856 ret = mbind(segp->seg_start + offset, length, policy, nodemask->n, in segment_mbind()
/external/syzkaller/pkg/report/testdata/linux/report/
D997 [ 1722.511384] IP: node_state include/linux/nodemask.h:405 [inline]
D2188 …6] syz-executor3: vmalloc: allocation failure: 0 bytes, mode:0x14000c0(GFP_KERNEL), nodemask=(null)
D2317 …lloc: allocation failure: 17045651456 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
D2067 …lloc: allocation failure: 17178296320 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
D1983 …alloc: allocation failure: 8589934588 bytes, mode:0x14080c0(GFP_KERNEL|__GFP_ZERO), nodemask=(null)
/external/syzkaller/sys/linux/
Dsys.txt135 mbind(addr vma, len len[addr], mode flags[mbind_mode], nodemask ptr[in, int64], maxnode intptr, fla…
138 set_mempolicy(mode flags[mbind_mode], nodemask ptr[in, int64], maxnode intptr)
139 get_mempolicy(mode ptr[out, int32], nodemask ptr[out, int64], maxnode intptr, addr vma, flags flags…
/external/strace/
DChangeLog30287 numa: fix decoding of nodemask arrays.
30291 Print a delimiter before nodemask argument.