linux-mips
[Top] [All Lists]

Re: explain to me how this works...

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: explain to me how this works...
From: Greg Lindahl <lindahl@keyresearch.com>
Date: Thu, 14 Nov 2002 13:12:32 -0800
Cc: linux-mips@linux-mips.org
In-reply-to: <20021114211251.C5610@linux-mips.org>; from ralf@linux-mips.org on Thu, Nov 14, 2002 at 09:12:51PM +0100
Mail-followup-to: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20021005095335.B4079@lucon.org> <20021113174200.A2874@wumpus.internal.keyresearch.com> <20021114193924.A5610@linux-mips.org> <20021114113045.D1494@wumpus.internal.keyresearch.com> <20021114120746.E28717@mvista.com> <20021114211251.C5610@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Thu, Nov 14, 2002 at 09:12:51PM +0100, Ralf Baechle wrote:

> Unlikely to help him.  The return value 4183 of socket that he's observing
> is the syscall number of socket(2).

Thank you, I should have noticed that one right off.

My sprinkle of printks already tells me that strace is a liar - no
surprise there.

strace says:

socket(PF_PACKET, SOCK_DGRAM, 0)        = 4183
socket(PF_PACKET, SOCK_DGRAM, 0)        = 4183
socket(PF_PACKET, SOCK_DGRAM, 0)        = -1 EAFNOSUPPORT (Address family not 
supported by protocol)

printk says:

sys_socket returning 0
sys32_socket returning 0
sys_socket returning -124
sys32_socket returning -124

Note strace sees 3 syscalls. I only printk at the return statement, 
and there are 2 of those. I'll add more printks...

-- greg

<Prev in Thread] Current Thread [Next in Thread>