All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: use SYSCALL_DEFINEx for sys_recv
@ 2014-04-15 13:50 Jan Glauber
  2014-04-15 17:43 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Glauber @ 2014-04-15 13:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: davem, Jan Glauber

Make sys_recv a first class citizen by using the SYSCALL_DEFINEx
macro. Besides being cleaner this will also generate meta data
for the system call so tracing tools like ftrace or LTTng can
resolve this system call.

Signed-off-by: Jan Glauber <jan.glauber@gmail.com>
---
 net/socket.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/socket.c b/net/socket.c
index a19ae19..d258945 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1879,8 +1879,8 @@ out:
  *	Receive a datagram from a socket.
  */
 
-asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size,
-			 unsigned int flags)
+SYSCALL_DEFINE4(recv, int, fd, void __user *, ubuf, size_t, size,
+		unsigned int, flags)
 {
 	return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL);
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: use SYSCALL_DEFINEx for sys_recv
  2014-04-15 13:50 [PATCH] net: use SYSCALL_DEFINEx for sys_recv Jan Glauber
@ 2014-04-15 17:43 ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-04-15 17:43 UTC (permalink / raw)
  To: jan.glauber; +Cc: linux-kernel


Networking patches should be sent to netdev@vger.kernel.org so that they
are properly queued up in patchwork.

Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] net: use SYSCALL_DEFINEx for sys_recv
  2014-04-16  7:32 Jan Glauber
@ 2014-04-16 19:15 ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-04-16 19:15 UTC (permalink / raw)
  To: jan.glauber; +Cc: netdev

From: Jan Glauber <jan.glauber@gmail.com>
Date: Wed, 16 Apr 2014 09:32:48 +0200

> Make sys_recv a first class citizen by using the SYSCALL_DEFINEx
> macro. Besides being cleaner this will also generate meta data
> for the system call so tracing tools like ftrace or LTTng can
> resolve this system call.
> 
> Signed-off-by: Jan Glauber <jan.glauber@gmail.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] net: use SYSCALL_DEFINEx for sys_recv
@ 2014-04-16  7:32 Jan Glauber
  2014-04-16 19:15 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Glauber @ 2014-04-16  7:32 UTC (permalink / raw)
  To: netdev; +Cc: Jan Glauber

Make sys_recv a first class citizen by using the SYSCALL_DEFINEx
macro. Besides being cleaner this will also generate meta data
for the system call so tracing tools like ftrace or LTTng can
resolve this system call.

Signed-off-by: Jan Glauber <jan.glauber@gmail.com>
---
 net/socket.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/socket.c b/net/socket.c
index a19ae19..d258945 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1879,8 +1879,8 @@ out:
  *	Receive a datagram from a socket.
  */
 
-asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size,
-			 unsigned int flags)
+SYSCALL_DEFINE4(recv, int, fd, void __user *, ubuf, size_t, size,
+		unsigned int, flags)
 {
 	return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL);
 }
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-16 19:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 13:50 [PATCH] net: use SYSCALL_DEFINEx for sys_recv Jan Glauber
2014-04-15 17:43 ` David Miller
2014-04-16  7:32 Jan Glauber
2014-04-16 19:15 ` David Miller

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.