Preparing for the next release: call for testing
Dmitry V. Levin
ldv at altlinux.org
Tue Mar 3 23:44:19 UTC 2015
On Tue, Mar 03, 2015 at 07:23:28PM +0100, Gabriel Laskar wrote:
> There is still an issue with ioctl request names when using strace on
> Binder calls. Some binder calls have 2 possible sizes, depending of being
> with the 32-bit api or the 64-bit one.
>
> In <linux/android/binder.h>, there is a #ifdef BINDER_IPC_32BIT that
> control the size of pointer values in the structures.
>
> In 64bit mode, we have only :
>
> ioctl(-1, BC_REQUEST_DEATH_NOTIFICATION, 0);
> ioctl(-1, BC_CLEAR_DEATH_NOTIFICATION, 0);
>
> that respond :
>
> ioctl(-1, _IOC(_IOC_WRITE, 0x63, 0x0e, 0x10), 0) = -1 EBADF (Bad file descriptor)
> ioctl(-1, _IOC(_IOC_WRITE, 0x63, 0x0f, 0x10), 0) = -1 EBADF (Bad file descriptor)
>
> and when asking for 32bit binder (BINDER_IPC_32BIT), lots of ioctls are failing :
Unfortunately, <linux/android/binder.h> doesn't say which of binder ioctls
are BINDER_IPC_32BIT. How could one automatically distinguish them?
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20150304/fce4d3d0/attachment.bin>
More information about the Strace-devel
mailing list