Re: Arm System Calls Numactl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think i mave have found it for the arm side after a little research.
 
information is found in the file "arch/arm/include/asm/unistd.h<kernel source>" or "/usr/include/asm/unistd.h"
 
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 <asm/unistd.h> and #include <unistd.h> anyway.
 
#elif defined(__ARM_EABI__)
#define __NR_SYSCALL_BASE       0x900000
#define __NR_sched_setaffinity          (__NR_SYSCALL_BASE+241)
#define __NR_sched_getaffinity          (__NR_SYSCALL_BASE+242)
#define __NR_mbind                      (__NR_SYSCALL_BASE+319)
#define __NR_get_mempolicy              (__NR_SYSCALL_BASE+320)
#define __NR_set_mempolicy              (__NR_SYSCALL_BASE+321)
#define __NR_move_pages                 (__NR_SYSCALL_BASE+344) 
 
-------- Original Message --------
Subject: Arm System Calls Numactl
From: <webwillow@xxxxxxxxxxxxxxxx>
Date: Sat, October 22, 2011 6:31 pm
To: "linuxarmcross" <cross-distro@xxxxxxxxxxxxxxxx>, "fedoraarm"
<arm@xxxxxxxxxxxxxxxxxxxxxxx>, "Gordan Bobic" <gordan@xxxxxxxxxx>,
nhorman@xxxxxxxxxx
Cc: arjanv@xxxxxxxxxx, jkeating@xxxxxxxxxx

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.
 
in systemcalls.c on numactl, it sets various settings for system calls based on arch.
 
Can anyone point me in the in a direction for finding the following settings for ARM
 
<I Do believe that i found some ifo where the offset begins at 0×00900000>
 
#elif defined(__i386__)
#define __NR_mbind 274
#define __NR_get_mempolicy 275
#define __NR_set_mempolicy 276
#define __NR_migrate_pages 294
#define __NR_move_pages 317
#elif defined(__powerpc__)
#define __NR_mbind 259
#define __NR_get_mempolicy 260
#define __NR_set_mempolicy 261
#define __NR_migrate_pages 258
/* FIXME: powerpc is missing move pages!!!
#define __NR_move_pages xxx
*/
#elif defined(__mips__)
#if _MIPS_SIM == _ABIO32
/*
 * Linux o32 style syscalls are in the range from 4000 to 4999.
 */
#define __NR_Linux 4000
#define __NR_mbind (__NR_Linux + 268)
#define __NR_get_mempolicy (__NR_Linux + 269)
#define __NR_set_mempolicy (__NR_Linux + 270)
#define __NR_migrate_pages (__NR_Linux + 287)
#endif
_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux