[PATCH] update linux/arm/syscallent.h

Kedar Sovani kedars at marvell.com
Thu Dec 11 12:31:29 UTC 2008


strace builds on the ARM platform fail looking for fix-ups in the file
linux/arm/syscallent.h. This patch moves system calls around to match
the asm/unistd.h contents. 

Signed-off-by: Kedar Sovani <kedars at marvell.com>


diff -urp strace-4.5.18.orig/linux/arm/syscallent.h strace-4.5.18/linux/arm/syscallent.h
--- strace-4.5.18.orig/linux/arm/syscallent.h	2008-07-17 21:23:49.000000000 -0400
+++ strace-4.5.18/linux/arm/syscallent.h	2008-11-30 22:31:37.000000000 -0500
@@ -328,21 +328,21 @@
 	{ 5,	TN,	sys_getsockopt,		"getsockopt"	}, /* 295 */
 	{ 3,	TN,	sys_sendmsg,		"sendmsg"	}, /* 296 */
 	{ 3,	TN,	sys_recvmsg,		"recvmsg"	}, /* 297 */
-	{ 5,	0,	printargs,		"SYS_298"	}, /* 298 */
-	{ 5,	0,	printargs,		"SYS_299"	}, /* 299 */
-	{ 5,	0,	printargs,		"SYS_300"	}, /* 300 */
-	{ 5,	0,	printargs,		"SYS_301"	}, /* 301 */
-	{ 5,	0,	printargs,		"SYS_302"	}, /* 302 */
-	{ 5,	0,	printargs,		"SYS_303"	}, /* 303 */
-	{ 5,	0,	printargs,		"SYS_304"	}, /* 304 */
-	{ 5,	0,	printargs,		"SYS_305"	}, /* 305 */
-	{ 5,	0,	printargs,		"SYS_306"	}, /* 306 */
-	{ 5,	0,	printargs,		"SYS_307"	}, /* 307 */
-	{ 5,	0,	printargs,		"SYS_308"	}, /* 308 */
+	{ 4,	TI,	sys_semop,		"semop"		}, /* 298 */
+	{ 4,	TI,	sys_semget,		"semget"	}, /* 299 */
+	{ 4,	TI,	sys_semctl,		"semctl"	}, /* 300 */
+	{ 4,	TI,	sys_msgsnd,		"msgsnd"	}, /* 301 */
+	{ 4,	TI,	sys_msgrcv,		"msgrcv"	}, /* 302 */
+	{ 4,	TI,	sys_msgget,		"msgget"	}, /* 303 */
+	{ 4,	TI,	sys_msgctl,		"msgctl"	}, /* 304 */
+	{ 4,	TI,	sys_shmat,		"shmat"		}, /* 305 */
+	{ 4,	TI,	sys_shmdt,		"shmdt"		}, /* 306 */
+	{ 4,	TI,	sys_shmget,		"shmget"	}, /* 307 */
+	{ 4,	TI,	sys_shmctl,		"shmctl"	}, /* 308 */
 	{ 5,	0,	printargs,		"SYS_309"	}, /* 309 */
 	{ 5,	0,	printargs,		"SYS_310"	}, /* 310 */
 	{ 5,	0,	printargs,		"SYS_311"	}, /* 311 */
-	{ 5,	0,	printargs,		"SYS_312"	}, /* 312 */
+	{ 5,	TI,	sys_semtimedop,		"semtimedop"	}, /* 312 */
 	{ 5,	0,	printargs,		"SYS_313"	}, /* 313 */
 	{ 5,	0,	printargs,		"SYS_314"	}, /* 314 */
 	{ 5,	0,	printargs,		"SYS_315"	}, /* 315 */
@@ -430,10 +430,6 @@
 	{ 5,	0,	printargs,		"SYS_397"	}, /* 397 */
 	{ 5,	0,	printargs,		"SYS_398"	}, /* 398 */
 	{ 5,	0,	printargs,		"SYS_399"	}, /* 399 */
-
-#if SYS_socket_subcall != 400
- #error fix me
-#endif
 	{ 8,	0,	printargs,		"socket_subcall"}, /* 400 */
 	{ 3,	TN,	sys_socket,		"socket"	}, /* 401 */
 	{ 3,	TN,	sys_bind,		"bind"		}, /* 402 */
@@ -452,32 +448,27 @@
 	{ 5,	TN,	sys_getsockopt,		"getsockopt"	}, /* 415 */
 	{ 5,	TN,	sys_sendmsg,		"sendmsg"	}, /* 416 */
 	{ 5,	TN,	sys_recvmsg,		"recvmsg"	}, /* 417 */
-
-#if SYS_ipc_subcall != 418
- #error fix me
-#endif
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 418 */
-	{ 4,	TI,	sys_semop,		"semop"		}, /* 419 */
-	{ 4,	TI,	sys_semget,		"semget"	}, /* 420 */
-	{ 4,	TI,	sys_semctl,		"semctl"	}, /* 421 */
-	{ 5,	TI,	sys_semtimedop,		"semtimedop"	}, /* 422 */
+	{ 5,	0,	printargs,		"SYS_419"	}, /* 419 */
+	{ 5,	0,	printargs,		"SYS_420"	}, /* 420 */
+	{ 5,	0,	printargs,		"SYS_421"	}, /* 421 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 423 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 424 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 425 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 426 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 427 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 428 */
-	{ 4,	TI,	sys_msgsnd,		"msgsnd"	}, /* 429 */
-	{ 4,	TI,	sys_msgrcv,		"msgrcv"	}, /* 430 */
-	{ 4,	TI,	sys_msgget,		"msgget"	}, /* 431 */
-	{ 4,	TI,	sys_msgctl,		"msgctl"	}, /* 432 */
+	{ 5,	0,	printargs,		"SYS_429"	}, /* 429 */
+	{ 5,	0,	printargs,		"SYS_430"	}, /* 430 */
+	{ 5,	0,	printargs,		"SYS_431"	}, /* 431 */
+	{ 5,	0,	printargs,		"SYS_432"	}, /* 432 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 433 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 434 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 435 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 436 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 437 */
 	{ 4,	0,	printargs,		"ipc_subcall"	}, /* 438 */
-	{ 4,	TI,	sys_shmat,		"shmat"		}, /* 439 */
-	{ 4,	TI,	sys_shmdt,		"shmdt"		}, /* 440 */
-	{ 4,	TI,	sys_shmget,		"shmget"	}, /* 441 */
-	{ 4,	TI,	sys_shmctl,		"shmctl"	}, /* 442 */
+	{ 5,	0,	printargs,		"SYS_305"	}, /* 439 */
+	{ 5,	0,	printargs,		"SYS_306"	}, /* 440 */
+	{ 5,	0,	printargs,		"SYS_307"	}, /* 441 */
+	{ 5,	0,	printargs,		"SYS_308"	}, /* 442 */
 




More information about the Strace-devel mailing list