From: Jens Axboe <axboe@kernel.dk>
To: "Akers, Jason B" <jason.b.akers@intel.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: syscall problem on Android x86
Date: Fri, 26 Apr 2013 14:04:29 -0600 [thread overview]
Message-ID: <20130426200429.GE9563@kernel.dk> (raw)
In-Reply-To: <372C7AE269BA5E4D92B1082F530ED4B85069CFEB@ORSMSX110.amr.corp.intel.com>
On Fri, Apr 26 2013, Akers, Jason B wrote:
> Hi Jens,
>
> Sorry for the confusion. I'm building for x86 Android, not arm.
>
> The issue is that Android x86 does not define __NR_shmget. And the
> fact that it's hardcoded to 29 in arch-x86.h is causing problems. On
> x86 Android syscall 29 is actually the sys_pause() function.
> Therefore, fio compiles but it just pauses when shmget() is called.
Ah I see, so android x86 You could hack around it a little bit. In
arch-x86.h, something ala:
#ifndef __NR_shmget
#if defined(__ANDROID__)
#define __NR_shmget a
#define __NR_shmat b
#define __NR_shmctl c
#define __NR_shmdt d
#else
#define __NR_shmget 29
#define __NR_shmat 30
#define __NR_shmctl 31
#define __NR_shmdt 67
#endif
#endif
with a/b/c/d being the right values for the android abi.
--
Jens Axboe
next prev parent reply other threads:[~2013-04-26 20:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 17:43 syscall problem on Android x86 Akers, Jason B
2013-04-26 18:17 ` Jens Axboe
2013-04-26 19:46 ` Akers, Jason B
2013-04-26 20:04 ` Jens Axboe [this message]
2013-04-26 20:35 ` Akers, Jason B
2013-04-26 20:42 ` Jens Axboe
2013-04-27 1:59 ` Aaron Carroll
2013-04-27 2:27 ` Jens Axboe
2013-04-29 18:16 ` Akers, Jason B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130426200429.GE9563@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=jason.b.akers@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.