<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>I think i mave have found it for the arm side after a little research.</div>
<div>&nbsp;</div>
<div>information is found in the file "arch/arm/include/asm/unistd.h&lt;kernel source&gt;" or "/usr/include/asm/unistd.h"</div>
<div>&nbsp;</div>
<div>from this i derived the possible following information to put in numactl for arm and wonder why they do this as the code already includes #include &lt;asm/unistd.h&gt; and #include &lt;unistd.h&gt; anyway.</div>
<div>&nbsp;</div>
<div>#elif defined(__ARM_EABI__)<BR>#define __NR_SYSCALL_BASE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x900000<BR>#define __NR_sched_setaffinity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (__NR_SYSCALL_BASE+241)<BR>#define __NR_sched_getaffinity&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (__NR_SYSCALL_BASE+242)<BR>#define __NR_mbind&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (__NR_SYSCALL_BASE+319)<BR>#define __NR_get_mempolicy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (__NR_SYSCALL_BASE+320)<BR>#define __NR_set_mempolicy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (__NR_SYSCALL_BASE+321)<BR>#define __NR_move_pages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (__NR_SYSCALL_BASE+344)&nbsp;</div>
<div>&nbsp;</div>
<BLOCKQUOTE style="BORDER-LEFT: blue 2px solid; PADDING-LEFT: 8px; FONT-FAMILY: verdana; COLOR: black; MARGIN-LEFT: 8px; FONT-SIZE: 10pt" id=replyBlockquote webmail="1">
<DIV id=wmQuoteWrapper>-------- Original Message --------<BR>Subject: Arm System Calls Numactl<BR>From: &lt;<a href="mailto:webwillow@thewebwillow.com">webwillow@thewebwillow.com</a>&gt;<BR>Date: Sat, October 22, 2011 6:31 pm<BR>To: "linuxarmcross" &lt;<a href="mailto:cross-distro@lists.linaro.org">cross-distro@lists.linaro.org</a>&gt;, "fedoraarm"<BR>&lt;<a href="mailto:arm@lists.fedoraproject.org">arm@lists.fedoraproject.org</a>&gt;, "Gordan Bobic" &lt;<a href="mailto:gordan@bobich.net">gordan@bobich.net</a>&gt;,<BR><a href="mailto:nhorman@redhat.com">nhorman@redhat.com</a><BR>Cc: <a href="mailto:arjanv@redhat.com">arjanv@redhat.com</a>, <a href="mailto:jkeating@redhat.com">jkeating@redhat.com</a><BR><BR><SPAN style="FONT-FAMILY: Verdana; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>While working with getting numactl to compile for arm, i hit a roadblock where someone might be able to direct me to the correct information.</DIV>
<DIV>&nbsp;</DIV>
<DIV>in systemcalls.c on numactl, it&nbsp;sets various settings for system calls based on arch.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can anyone point me in the in a direction for finding the following settings for&nbsp;ARM</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;I Do believe that i found some ifo where the offset begins at 0×00900000&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>#elif defined(__i386__)</DIV>
<DIV>#define __NR_mbind 274<BR>#define __NR_get_mempolicy 275<BR>#define __NR_set_mempolicy 276<BR>#define __NR_migrate_pages 294<BR>#define __NR_move_pages 317</DIV>
<DIV>#elif defined(__powerpc__)</DIV>
<DIV>#define __NR_mbind 259<BR>#define __NR_get_mempolicy 260<BR>#define __NR_set_mempolicy 261<BR>#define __NR_migrate_pages 258<BR>/* FIXME: powerpc is missing move pages!!!<BR>#define __NR_move_pages xxx<BR>*/</DIV>
<DIV>#elif defined(__mips__)</DIV>
<DIV>#if _MIPS_SIM == _ABIO32<BR>/*<BR>&nbsp;* Linux o32 style syscalls are in the range from 4000 to 4999.<BR>&nbsp;*/<BR>#define __NR_Linux 4000<BR>#define __NR_mbind (__NR_Linux + 268)<BR>#define __NR_get_mempolicy (__NR_Linux + 269)<BR>#define __NR_set_mempolicy (__NR_Linux + 270)<BR>#define __NR_migrate_pages (__NR_Linux + 287)<BR>#endif</DIV></SPAN></DIV></BLOCKQUOTE></span></body></html>