[PATCH] Update PowerPC system calls

Anton Blanchard anton at samba.org
Thu Mar 25 00:44:56 UTC 2010


- Use sys_semop to format semop syscall.

- timerfd should be timerfd_create

- Rename sys_kexec_load to kexec_load to match x86

- Add migrate_pages, utimensat, sync_file_range, timerfd_settime,
  timerfd_gettime, signalfd4, eventfd2, epoll_create1, dup3, pipe2,
  inotify_init1, perf_event_open, preadv, pwritev and rt_tgsigqueueinfo.

Signed-off-by: Anton Blanchard <anton at samba.org>
---

diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h
index 12e9ba1..d10a8de 100644
--- a/linux/powerpc/syscallent.h
+++ b/linux/powerpc/syscallent.h
@@ -287,7 +287,7 @@
 	{ 1,	0,	printargs,		"rtas"			}, /* 255 */
 	{ 5,	0,	printargs,		"debug_setcontext"	}, /* 256 */
 	{ 5,	0,	printargs,		"vserver"		}, /* 257 */
-	{ 5,	0,	printargs,		"SYS_258"		}, /* 258 */
+	{ 5,	0,	printargs,		"migrate_pages"		}, /* 258 */
 	{ 6,	0,	sys_mbind,		"mbind"			}, /* 259 */
 	{ 5,	0,	sys_get_mempolicy,	"get_mempolicy"		}, /* 260 */
 	{ 3,	0,	sys_set_mempolicy,	"set_mempolicy"		}, /* 261 */
@@ -297,7 +297,7 @@
 	{ 5,	0,	sys_mq_timedreceive,	"mq_timedreceive"	}, /* 265 */
 	{ 2,	0,	sys_mq_notify,		"mq_notify"		}, /* 266 */
 	{ 3,	0,	sys_mq_getsetattr,	"mq_getsetattr"		}, /* 267 */
-	{ 5,	0,	printargs,		"sys_kexec_load"	}, /* 268 */
+	{ 5,	0,	printargs,		"kexec_load"		}, /* 268 */
 	{ 5,	0,	printargs,		"add_key"		}, /* 269 */
 	{ 4,	0,	printargs,		"request_key"		}, /* 270 */
 	{ 5,	0,	printargs,		"keyctl"		}, /* 271 */
@@ -333,25 +333,25 @@
 	{ 6,	0,	sys_move_pages,		"move_pages"		}, /* 301 */
 	{ 3,	0,	sys_getcpu,		"getcpu"		}, /* 302 */
 	{ 5,	TD,	sys_epoll_pwait,	"epoll_pwait"		}, /* 303 */
-	{ 5,	0,	printargs,		"SYS_304"		}, /* 304 */
+	{ 4,	TD|TF,	sys_utimensat,		"utimensat"		}, /* 304 */
 	{ 3,	TD|TS,	sys_signalfd,		"signalfd"		}, /* 305 */
-	{ 4,	TD,	sys_timerfd,		"timerfd"		}, /* 306 */
+	{ 4,	TD,	sys_timerfd_create,	"timerfd_create"	}, /* 306 */
 	{ 1,	TD,	sys_eventfd,		"eventfd"		}, /* 307 */
-	{ 5,	0,	printargs,		"SYS_308"		}, /* 308 */
+	{ 4,	0,	printargs,		"sync_file_range"	}, /* 308 */
 	{ 6,	TF,	sys_fallocate,		"fallocate"		}, /* 309 */
 	{ 3,    0,      sys_subpage_prot,       "subpage_prot"          }, /* 310 */
-	{ 5,	0,	printargs,		"SYS_311"		}, /* 311 */
-	{ 5,	0,	printargs,		"SYS_312"		}, /* 312 */
-	{ 5,	0,	printargs,		"SYS_313"		}, /* 313 */
-	{ 5,	0,	printargs,		"SYS_314"		}, /* 314 */
-	{ 5,	0,	printargs,		"SYS_315"		}, /* 315 */
-	{ 5,	0,	printargs,		"SYS_316"		}, /* 316 */
-	{ 5,	0,	printargs,		"SYS_317"		}, /* 317 */
-	{ 5,	0,	printargs,		"SYS_318"		}, /* 318 */
-	{ 5,	0,	printargs,		"SYS_319"		}, /* 319 */
-	{ 5,	0,	printargs,		"SYS_320"		}, /* 320 */
-	{ 5,	0,	printargs,		"SYS_321"		}, /* 321 */
-	{ 5,	0,	printargs,		"SYS_322"		}, /* 322 */
+	{ 4,	TD,	sys_timerfd_settime,	"timerfd_settime"	}, /* 311 */
+	{ 2,	TD,	sys_timerfd_gettime,	"timerfd_gettime"	}, /* 312 */
+	{ 4,	TD|TS,	sys_signalfd4,		"signalfd4"		}, /* 313 */
+	{ 2,	TD,	sys_eventfd2,		"eventfd2"		}, /* 314 */
+	{ 1,	0,	sys_epoll_create1,	"epoll_create1"		}, /* 315 */
+	{ 3,	TD,	sys_dup3,		"dup3"			}, /* 316 */
+	{ 2,	TD,	sys_pipe2,		"pipe2"			}, /* 317 */
+	{ 1,	TD,	sys_inotify_init1,	"inotify_init1"		}, /* 318 */
+	{ 5,	0,	printargs,		"perf_event_open"	}, /* 319 */
+	{ 5,	TD,	printargs,		"preadv"		}, /* 320 */
+	{ 5,	TD,	printargs,		"pwritev"		}, /* 321 */
+	{ 5,	0,	printargs,		"rt_tgsigqueueinfo"	}, /* 322 */
 	{ 5,	0,	printargs,		"SYS_323"		}, /* 323 */
 	{ 5,	0,	printargs,		"SYS_324"		}, /* 324 */
 	{ 5,	0,	printargs,		"SYS_325"		}, /* 325 */
@@ -457,7 +457,7 @@
  #error fix me
 #endif
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 419 */
-	{ 4,	TI,	printargs,		"semop"		}, /* 420 */
+	{ 4,	TI,	sys_semop,		"semop"		}, /* 420 */
 	{ 4,	TI,	sys_semget,		"semget"	}, /* 421 */
 	{ 4,	TI,	sys_semctl,		"semctl"	}, /* 422 */
 	{ 5,	TI,	sys_semtimedop,		"semtimedop"	}, /* 423 */




More information about the Strace-devel mailing list