This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Call direct system calls for socket operations
- From: Andreas Schwab <schwab at suse dot de>
- To: Rajalakshmi Srinivasaraghavan <raji at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org, sjmunroe at us dot ibm dot com
- Date: Wed, 01 Jul 2015 09:02:00 +0200
- Subject: Re: [PATCH] powerpc: Call direct system calls for socket operations
- Authentication-results: sourceware.org; auth=none
- References: <1435724523-25285-1-git-send-email-raji at linux dot vnet dot ibm dot com>
Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> writes:
> Explicit system calls for the socket operations were added in Linux kernel
> in commit 86250b9d12ca for powerpc. This patch make use of those instead of
> calling socketcall to save number of cycles on networking syscalls.
>
> 2015-07-01 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
>
> * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/accept.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/bind.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/connect.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/getpeername.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/getsockname.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/getsockopt.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/listen.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/recv.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/recvfrom.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/recvmsg.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/send.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/sendmsg.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/sendto.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/setsockopt.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/shutdown.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.c: New file.
> * sysdeps/unix/sysv/linux/powerpc/powerpc64/socketpair.c: New file.
IMHO it would make sense to put these checks directly in
sysdeps/unix/sysv/linux/accept.c etc, since other architectures are
expected to follow.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."