linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] [RFC] m68k: Wire up direct socket calls
@ 2015-09-06 10:06 Geert Uytterhoeven
  2015-09-06 10:06 ` [PATCH 2/2] m68k: Wire up userfaultfd Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2015-09-06 10:06 UTC (permalink / raw)
  To: Greg Ungerer, Andreas Schwab; +Cc: linux-m68k, linux-kernel, Geert Uytterhoeven

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/include/asm/unistd.h      |  2 +-
 arch/m68k/include/uapi/asm/unistd.h | 15 +++++++++++++++
 arch/m68k/kernel/syscalltable.S     | 16 +++++++++++++++-
 3 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h
index 244e0dbe45dbeda3..47d6b7153960274e 100644
--- a/arch/m68k/include/asm/unistd.h
+++ b/arch/m68k/include/asm/unistd.h
@@ -4,7 +4,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls		356
+#define NR_syscalls		371
 
 #define __ARCH_WANT_OLD_READDIR
 #define __ARCH_WANT_OLD_STAT
diff --git a/arch/m68k/include/uapi/asm/unistd.h b/arch/m68k/include/uapi/asm/unistd.h
index 61fb6cb9d2ae3c66..bf168d5ec3d96d32 100644
--- a/arch/m68k/include/uapi/asm/unistd.h
+++ b/arch/m68k/include/uapi/asm/unistd.h
@@ -361,5 +361,20 @@
 #define __NR_memfd_create	353
 #define __NR_bpf		354
 #define __NR_execveat		355
+#define __NR_socket		356
+#define __NR_socketpair		357
+#define __NR_bind		358
+#define __NR_connect		359
+#define __NR_listen		360
+#define __NR_accept4		361
+#define __NR_getsockopt		362
+#define __NR_setsockopt		363
+#define __NR_getsockname	364
+#define __NR_getpeername	365
+#define __NR_sendto		366
+#define __NR_sendmsg		367
+#define __NR_recvfrom		368
+#define __NR_recvmsg		369
+#define __NR_shutdown		370
 
 #endif /* _UAPI_ASM_M68K_UNISTD_H_ */
diff --git a/arch/m68k/kernel/syscalltable.S b/arch/m68k/kernel/syscalltable.S
index a0ec4303f2c8e57a..2cec7cdc8e440f08 100644
--- a/arch/m68k/kernel/syscalltable.S
+++ b/arch/m68k/kernel/syscalltable.S
@@ -376,4 +376,18 @@ ENTRY(sys_call_table)
 	.long sys_memfd_create
 	.long sys_bpf
 	.long sys_execveat		/* 355 */
-
+	.long sys_socket
+	.long sys_socketpair
+	.long sys_bind
+	.long sys_connect
+	.long sys_listen		/* 360 */
+	.long sys_accept4
+	.long sys_getsockopt
+	.long sys_setsockopt
+	.long sys_getsockname
+	.long sys_getpeername		/* 365 */
+	.long sys_sendto
+	.long sys_sendmsg
+	.long sys_recvfrom
+	.long sys_recvmsg
+	.long sys_shutdown		/* 370 */
-- 
1.9.1


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

* [PATCH 2/2] m68k: Wire up userfaultfd
  2015-09-06 10:06 [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Geert Uytterhoeven
@ 2015-09-06 10:06 ` Geert Uytterhoeven
  2015-09-07  3:24 ` [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Greg Ungerer
  2015-09-11  9:59 ` Geert Uytterhoeven
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2015-09-06 10:06 UTC (permalink / raw)
  To: Greg Ungerer, Andreas Schwab; +Cc: linux-m68k, linux-kernel, Geert Uytterhoeven

$ ./userfaultfd 10 99
nr_pages: 2560, nr_pages_per_cpu: 2560
bounces: 98, mode: racing, userfaults: 1121
bounces: 97, mode: rnd, userfaults: 977
bounces: 96, mode:, userfaults: 1119
bounces: 95, mode: rnd racing ver poll, userfaults: 1040
bounces: 94, mode: racing ver poll, userfaults: 1022
bounces: 93, mode: rnd ver poll, userfaults: 946
bounces: 92, mode: ver poll, userfaults: 1115
bounces: 91, mode: rnd racing poll, userfaults: 977
bounces: 90, mode: racing poll, userfaults: 899
bounces: 89, mode: rnd poll, userfaults: 881
bounces: 88, mode: poll, userfaults: 1069
bounces: 87, mode: rnd racing ver, userfaults: 1114
bounces: 86, mode: racing ver, userfaults: 1109
bounces: 85, mode: rnd ver, userfaults: 1165
bounces: 84, mode: ver, userfaults: 1107
bounces: 83, mode: rnd racing, userfaults: 1134
bounces: 82, mode: racing, userfaults: 1105
bounces: 81, mode: rnd, userfaults: 1323
bounces: 80, mode:, userfaults: 1103
bounces: 79, mode: rnd racing ver poll, userfaults: 909
bounces: 78, mode: racing ver poll, userfaults: 1095
bounces: 77, mode: rnd ver poll, userfaults: 951
bounces: 76, mode: ver poll, userfaults: 1099
bounces: 75, mode: rnd racing poll, userfaults: 1035
bounces: 74, mode: racing poll, userfaults: 1097
bounces: 73, mode: rnd poll, userfaults: 1159
bounces: 72, mode: poll, userfaults: 1042
bounces: 71, mode: rnd racing ver, userfaults: 848
bounces: 70, mode: racing ver, userfaults: 1093
bounces: 69, mode: rnd ver, userfaults: 892
bounces: 68, mode: ver, userfaults: 1091
bounces: 67, mode: rnd racing, userfaults: 1219
bounces: 66, mode: racing, userfaults: 1089
bounces: 65, mode: rnd, userfaults: 988
bounces: 64, mode:, userfaults: 1087
bounces: 63, mode: rnd racing ver poll, userfaults: 882
bounces: 62, mode: racing ver poll, userfaults: 984
bounces: 61, mode: rnd ver poll, userfaults: 701
bounces: 60, mode: ver poll, userfaults: 1071
bounces: 59, mode: rnd racing poll, userfaults: 1137
bounces: 58, mode: racing poll, userfaults: 1032
bounces: 57, mode: rnd poll, userfaults: 911
bounces: 56, mode: poll, userfaults: 1079
bounces: 55, mode: rnd racing ver, userfaults: 1106
bounces: 54, mode: racing ver, userfaults: 1077
bounces: 53, mode: rnd ver, userfaults: 886
bounces: 52, mode: ver, userfaults: 1075
bounces: 51, mode: rnd racing, userfaults: 1101
bounces: 50, mode: racing, userfaults: 1073
bounces: 49, mode: rnd, userfaults: 1070
bounces: 48, mode:, userfaults: 1071
bounces: 47, mode: rnd racing ver poll, userfaults: 1077
bounces: 46, mode: racing ver poll, userfaults: 910
bounces: 45, mode: rnd ver poll, userfaults: 1063
bounces: 44, mode: ver poll, userfaults: 1028
bounces: 43, mode: rnd racing poll, userfaults: 1043
bounces: 42, mode: racing poll, userfaults: 1065
bounces: 41, mode: rnd poll, userfaults: 912
bounces: 40, mode: poll, userfaults: 1063
bounces: 39, mode: rnd racing ver, userfaults: 880
bounces: 38, mode: racing ver, userfaults: 1061
bounces: 37, mode: rnd ver, userfaults: 1144
bounces: 36, mode: ver, userfaults: 1059
bounces: 35, mode: rnd racing, userfaults: 967
bounces: 34, mode: racing, userfaults: 1057
bounces: 33, mode: rnd, userfaults: 1076
bounces: 32, mode:, userfaults: 1055
bounces: 31, mode: rnd racing ver poll, userfaults: 997
bounces: 30, mode: racing ver poll, userfaults: 1053
bounces: 29, mode: rnd ver poll, userfaults: 968
bounces: 28, mode: ver poll, userfaults: 978
bounces: 27, mode: rnd racing poll, userfaults: 1008
bounces: 26, mode: racing poll, userfaults: 1049
bounces: 25, mode: rnd poll, userfaults: 900
bounces: 24, mode: poll, userfaults: 1047
bounces: 23, mode: rnd racing ver, userfaults: 988
bounces: 22, mode: racing ver, userfaults: 1045
bounces: 21, mode: rnd ver, userfaults: 1027
bounces: 20, mode: ver, userfaults: 1043
bounces: 19, mode: rnd racing, userfaults: 1017
bounces: 18, mode: racing, userfaults: 1041
bounces: 17, mode: rnd, userfaults: 979
bounces: 16, mode:, userfaults: 1039
bounces: 15, mode: rnd racing ver poll, userfaults: 1134
bounces: 14, mode: racing ver poll, userfaults: 1037
bounces: 13, mode: rnd ver poll, userfaults: 1046
bounces: 12, mode: ver poll, userfaults: 1035
bounces: 11, mode: rnd racing poll, userfaults: 1060
bounces: 10, mode: racing poll, userfaults: 1033
bounces: 9, mode: rnd poll, userfaults: 1003
bounces: 8, mode: poll, userfaults: 929
bounces: 7, mode: rnd racing ver, userfaults: 964
bounces: 6, mode: racing ver, userfaults: 1029
bounces: 5, mode: rnd ver, userfaults: 1053
bounces: 4, mode: ver, userfaults: 1027
bounces: 3, mode: rnd racing, userfaults: 863
bounces: 2, mode: racing, userfaults: 1025
bounces: 1, mode: rnd, userfaults: 1043
bounces: 0, mode:, userfaults: 950

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/include/asm/unistd.h      | 2 +-
 arch/m68k/include/uapi/asm/unistd.h | 1 +
 arch/m68k/kernel/syscalltable.S     | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h
index 47d6b7153960274e..76e54a9bee26eaaf 100644
--- a/arch/m68k/include/asm/unistd.h
+++ b/arch/m68k/include/asm/unistd.h
@@ -4,7 +4,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls		371
+#define NR_syscalls		372
 
 #define __ARCH_WANT_OLD_READDIR
 #define __ARCH_WANT_OLD_STAT
diff --git a/arch/m68k/include/uapi/asm/unistd.h b/arch/m68k/include/uapi/asm/unistd.h
index bf168d5ec3d96d32..6fd10e8f5b8c195a 100644
--- a/arch/m68k/include/uapi/asm/unistd.h
+++ b/arch/m68k/include/uapi/asm/unistd.h
@@ -376,5 +376,6 @@
 #define __NR_recvfrom		368
 #define __NR_recvmsg		369
 #define __NR_shutdown		370
+#define __NR_userfaultfd	371
 
 #endif /* _UAPI_ASM_M68K_UNISTD_H_ */
diff --git a/arch/m68k/kernel/syscalltable.S b/arch/m68k/kernel/syscalltable.S
index 2cec7cdc8e440f08..429b334421eb050c 100644
--- a/arch/m68k/kernel/syscalltable.S
+++ b/arch/m68k/kernel/syscalltable.S
@@ -391,3 +391,4 @@ ENTRY(sys_call_table)
 	.long sys_recvfrom
 	.long sys_recvmsg
 	.long sys_shutdown		/* 370 */
+	.long sys_userfaultfd
-- 
1.9.1


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

* Re: [PATCH 1/2] [RFC] m68k: Wire up direct socket calls
  2015-09-06 10:06 [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Geert Uytterhoeven
  2015-09-06 10:06 ` [PATCH 2/2] m68k: Wire up userfaultfd Geert Uytterhoeven
@ 2015-09-07  3:24 ` Greg Ungerer
  2015-09-11  9:59 ` Geert Uytterhoeven
  2 siblings, 0 replies; 4+ messages in thread
From: Greg Ungerer @ 2015-09-07  3:24 UTC (permalink / raw)
  To: Geert Uytterhoeven, Andreas Schwab; +Cc: linux-m68k, linux-kernel

Hi Geert,

On 06/09/15 20:06, Geert Uytterhoeven wrote:
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Both of these syscall patches look good to me:

Acked-by: Greg Ungerer <gerg@uclinux.org>

Regards
Greg


> ---
>  arch/m68k/include/asm/unistd.h      |  2 +-
>  arch/m68k/include/uapi/asm/unistd.h | 15 +++++++++++++++
>  arch/m68k/kernel/syscalltable.S     | 16 +++++++++++++++-
>  3 files changed, 31 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h
> index 244e0dbe45dbeda3..47d6b7153960274e 100644
> --- a/arch/m68k/include/asm/unistd.h
> +++ b/arch/m68k/include/asm/unistd.h
> @@ -4,7 +4,7 @@
>  #include <uapi/asm/unistd.h>
>  
>  
> -#define NR_syscalls		356
> +#define NR_syscalls		371
>  
>  #define __ARCH_WANT_OLD_READDIR
>  #define __ARCH_WANT_OLD_STAT
> diff --git a/arch/m68k/include/uapi/asm/unistd.h b/arch/m68k/include/uapi/asm/unistd.h
> index 61fb6cb9d2ae3c66..bf168d5ec3d96d32 100644
> --- a/arch/m68k/include/uapi/asm/unistd.h
> +++ b/arch/m68k/include/uapi/asm/unistd.h
> @@ -361,5 +361,20 @@
>  #define __NR_memfd_create	353
>  #define __NR_bpf		354
>  #define __NR_execveat		355
> +#define __NR_socket		356
> +#define __NR_socketpair		357
> +#define __NR_bind		358
> +#define __NR_connect		359
> +#define __NR_listen		360
> +#define __NR_accept4		361
> +#define __NR_getsockopt		362
> +#define __NR_setsockopt		363
> +#define __NR_getsockname	364
> +#define __NR_getpeername	365
> +#define __NR_sendto		366
> +#define __NR_sendmsg		367
> +#define __NR_recvfrom		368
> +#define __NR_recvmsg		369
> +#define __NR_shutdown		370
>  
>  #endif /* _UAPI_ASM_M68K_UNISTD_H_ */
> diff --git a/arch/m68k/kernel/syscalltable.S b/arch/m68k/kernel/syscalltable.S
> index a0ec4303f2c8e57a..2cec7cdc8e440f08 100644
> --- a/arch/m68k/kernel/syscalltable.S
> +++ b/arch/m68k/kernel/syscalltable.S
> @@ -376,4 +376,18 @@ ENTRY(sys_call_table)
>  	.long sys_memfd_create
>  	.long sys_bpf
>  	.long sys_execveat		/* 355 */
> -
> +	.long sys_socket
> +	.long sys_socketpair
> +	.long sys_bind
> +	.long sys_connect
> +	.long sys_listen		/* 360 */
> +	.long sys_accept4
> +	.long sys_getsockopt
> +	.long sys_setsockopt
> +	.long sys_getsockname
> +	.long sys_getpeername		/* 365 */
> +	.long sys_sendto
> +	.long sys_sendmsg
> +	.long sys_recvfrom
> +	.long sys_recvmsg
> +	.long sys_shutdown		/* 370 */
> 


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

* Re: [PATCH 1/2] [RFC] m68k: Wire up direct socket calls
  2015-09-06 10:06 [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Geert Uytterhoeven
  2015-09-06 10:06 ` [PATCH 2/2] m68k: Wire up userfaultfd Geert Uytterhoeven
  2015-09-07  3:24 ` [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Greg Ungerer
@ 2015-09-11  9:59 ` Geert Uytterhoeven
  2 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2015-09-11  9:59 UTC (permalink / raw)
  To: Greg Ungerer, Andreas Schwab
  Cc: linux-m68k, linux-kernel@vger.kernel.org, Geert Uytterhoeven

On Sun, Sep 6, 2015 at 12:06 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> diff --git a/arch/m68k/include/uapi/asm/unistd.h b/arch/m68k/include/uapi/asm/unistd.h
> index 61fb6cb9d2ae3c66..bf168d5ec3d96d32 100644
> --- a/arch/m68k/include/uapi/asm/unistd.h
> +++ b/arch/m68k/include/uapi/asm/unistd.h
> @@ -361,5 +361,20 @@
>  #define __NR_memfd_create      353
>  #define __NR_bpf               354
>  #define __NR_execveat          355
> +#define __NR_socket            356
> +#define __NR_socketpair                357
> +#define __NR_bind              358
> +#define __NR_connect           359
> +#define __NR_listen            360
> +#define __NR_accept4           361
> +#define __NR_getsockopt                362
> +#define __NR_setsockopt                363
> +#define __NR_getsockname       364
> +#define __NR_getpeername       365
> +#define __NR_sendto            366
> +#define __NR_sendmsg           367
> +#define __NR_recvfrom          368
> +#define __NR_recvmsg           369
> +#define __NR_shutdown          370

Doh, I missed sendmmsg() and recvmmsg(). Will send an update series after
I have added a patch with the direct IPC calls.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2015-09-11  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-06 10:06 [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Geert Uytterhoeven
2015-09-06 10:06 ` [PATCH 2/2] m68k: Wire up userfaultfd Geert Uytterhoeven
2015-09-07  3:24 ` [PATCH 1/2] [RFC] m68k: Wire up direct socket calls Greg Ungerer
2015-09-11  9:59 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).