Hi,

I compared syscall numbers in testcases/kernel/include/*.in files of LTP
with those in arch/*/include/asm/unistd.h headers of 2.6.28 kernel.
A lot of numbers are missing in *.in files, so I wrote a patch.
Adding syscall numbers might increase FAIL results on non-i386 archs.
Succeeded to build on ia64 and x86_64 with this patch.

Signed-off-by: Seiichi Ikarashi <[email protected]>

Regards,

Index: ltp/testcases/kernel/include/i386.in
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/include/i386.in,v
retrieving revision 1.9
diff -u -r1.9 i386.in
--- ltp/testcases/kernel/include/i386.in	5 Feb 2009 10:54:19 -0000	1.9
+++ ltp/testcases/kernel/include/i386.in	6 Feb 2009 11:54:04 -0000
@@ -1,48 +1,47 @@
-__NR_timer_create 259
-__NR_timer_settime (__NR_timer_create + 1)
-__NR_timer_delete (__NR_timer_create + 4)
-__NR_clock_settime (__NR_timer_create + 5)
-__NR_clock_gettime (__NR_timer_create + 6)
-__NR_chown 182
-__NR_fchown 95
-__NR_fork 2
-__NR_getegid 50
-__NR_getgid 47
-__NR_lchown 16
-__NR_setfsgid 139
-__NR_setgid 46
-__NR_setgroups 81
-__NR_setregid 71
-__NR_setresgid 170
-__NR_setresuid 164
-__NR_setreuid 70
-__NR_setuid 23
-__NR_openat 295
-__NR_mkdirat (__NR_openat + 1)
-__NR_mknodat (__NR_openat + 2)
-__NR_fchownat (__NR_openat + 3)
-__NR_futimesat (__NR_openat + 4)
-__NR_newfstatat (__NR_openat + 5)
-__NR_fstatat64 (__NR_openat + 5)
-__NR_unlinkat (__NR_openat + 6)
-__NR_renameat (__NR_openat + 7)
-__NR_linkat (__NR_openat + 8)
-__NR_symlinkat (__NR_openat + 9)
-__NR_readlinkat (__NR_openat + 10)
-__NR_fchmodat  (__NR_openat + 11)
-__NR_faccessat (__NR_openat + 12)
-__NR_splice 313
-__NR_tee 315
-__NR_vmsplice 316
-__NR_utimensat 320
-__NR_timerfd_create 322
-__NR_eventfd 323
-__NR_fallocate 324
-__NR_timerfd_settime 325
-__NR_timerfd_gettime 326
-__NR_signalfd4 327
-__NR_eventfd2 328
-__NR_epoll_create1 329
-__NR_dup3 330
-__NR_pipe2 331
-__NR_inotify_init1 332
+__NR_fork		  2
+__NR_lchown		 16
+__NR_setuid		 23
+__NR_setgid		 46
+__NR_getgid		 47
+__NR_getegid		 50
+__NR_setreuid		 70
+__NR_setregid		 71
+__NR_setgroups		 81
+__NR_fchown		 95
+__NR_setfsgid		139
+__NR_setresuid		164
+__NR_setresgid		170
+__NR_chown		182
+__NR_timer_create	259
+__NR_timer_settime	(__NR_timer_create+1)
+__NR_timer_delete	(__NR_timer_create+4)
+__NR_clock_settime	(__NR_timer_create+5)
+__NR_clock_gettime	(__NR_timer_create+6)
+__NR_openat		295
+__NR_mkdirat		296
+__NR_mknodat		297
+__NR_fchownat		298
+__NR_futimesat		299
+__NR_fstatat64		300
+__NR_unlinkat		301
+__NR_renameat		302
+__NR_linkat		303
+__NR_symlinkat		304
+__NR_readlinkat		305
+__NR_fchmodat		306
+__NR_faccessat		307
+__NR_splice		313
+__NR_tee		315
+__NR_vmsplice		316
+__NR_utimensat		320
+__NR_timerfd_create	322
+__NR_eventfd		323
+__NR_fallocate		324
+__NR_timerfd_settime	325
+__NR_timerfd_gettime	326
+__NR_signalfd4		327
+__NR_eventfd2		328
+__NR_epoll_create1	329
+__NR_dup3		330
+__NR_pipe2		331
+__NR_inotify_init1	332
Index: ltp/testcases/kernel/include/ia64.in
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/include/ia64.in,v
retrieving revision 1.6
diff -u -r1.6 ia64.in
--- ltp/testcases/kernel/include/ia64.in	11 Aug 2008 09:56:25 -0000	1.6
+++ ltp/testcases/kernel/include/ia64.in	6 Feb 2009 11:54:04 -0000
@@ -1,23 +1,46 @@
-__NR_openat 1281
-__NR_mkdirat (__NR_openat + 1)
-__NR_mknodat (__NR_openat + 2)
-__NR_fchownat (__NR_openat + 3)
-__NR_futimesat (__NR_openat + 4)
-__NR_newfstatat (__NR_openat + 5)
-__NR_fstatat64 (__NR_openat + 5)
-__NR_unlinkat (__NR_openat + 6)
-__NR_renameat (__NR_openat + 7)
-__NR_linkat (__NR_openat + 8)
-__NR_symlinkat (__NR_openat + 9)
-__NR_readlinkat (__NR_openat + 10)
-__NR_fchmodat  (__NR_openat + 11)
-__NR_faccessat (__NR_openat + 12)
-__NR_splice 1297
-__NR_tee 1301
-__NR_vmsplice 1302
-__NR_fallocate 1303
-__NR_utimensat 1306
-__NR_eventfd 1309
-__NR_timerfd_create 1310
-__NR_timerfd_settime 1311
-__NR_timerfd_gettime 1312
+__NR_lchown			1124
+__NR_setuid			1045
+__NR_setgid			1061
+__NR_getgid			1062
+__NR_getegid			1063
+__NR_setreuid			1071
+__NR_setregid			1072
+__NR_setgroups			1078
+__NR_fchown			1100
+__NR_setfsgid			1143
+__NR_setresuid			1074
+__NR_setresgid			1076
+__NR_chown			1039
+__NR_timer_create		1248
+__NR_timer_settime		1249
+__NR_timer_delete		1252
+__NR_clock_settime		1253
+__NR_clock_gettime		1254
+__NR_openat			1281
+__NR_mkdirat			1282
+__NR_mknodat			1283
+__NR_fchownat			1284
+__NR_futimesat			1285
+__NR_newfstatat			1286
+__NR_unlinkat			1287
+__NR_renameat			1288
+__NR_linkat			1289
+__NR_symlinkat			1290
+__NR_readlinkat			1291
+__NR_fchmodat			1292
+__NR_faccessat			1293
+__NR_splice			1297
+__NR_tee			1301
+__NR_vmsplice			1302
+__NR_utimensat			1306
+__NR_timerfd_create		1310
+__NR_eventfd			1309
+__NR_fallocate			1303
+__NR_timerfd_settime		1311
+__NR_timerfd_gettime		1312
+__NR_signalfd4			1313
+__NR_eventfd2			1314
+__NR_epoll_create1		1315
+__NR_dup3			1316
+__NR_pipe2			1317
+__NR_inotify_init1		1318
Index: ltp/testcases/kernel/include/x86_64.in
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/include/x86_64.in,v
retrieving revision 1.9
diff -u -r1.9 x86_64.in
--- ltp/testcases/kernel/include/x86_64.in	5 Feb 2009 10:54:19 -0000	1.9
+++ ltp/testcases/kernel/include/x86_64.in	6 Feb 2009 11:54:04 -0000
@@ -1,35 +1,48 @@
-__NR_accept4 288
-__NR_timer_create 222
-__NR_timer_settime 223
-__NR_timer_delete 226
-__NR_clock_settime 227
-__NR_clock_gettime 228
-__NR_openat 257
-__NR_mkdirat (__NR_openat + 1)
-__NR_mknodat (__NR_openat + 2)
-__NR_fchownat (__NR_openat + 3)
-__NR_futimesat (__NR_openat + 4)
-__NR_newfstatat (__NR_openat + 5)
-__NR_fstatat64 (__NR_openat + 5)
-__NR_unlinkat (__NR_openat + 6)
-__NR_renameat (__NR_openat + 7)
-__NR_linkat (__NR_openat + 8)
-__NR_symlinkat (__NR_openat + 9)
-__NR_readlinkat (__NR_openat + 10)
-__NR_fchmodat  (__NR_openat + 11)
-__NR_faccessat (__NR_openat + 12)
-__NR_splice 275
-__NR_tee 276
-__NR_vmsplice 278
-__NR_utimensat 296
-__NR_timerfd_create 283
-__NR_eventfd 284
-__NR_fallocate 285
-__NR_timerfd_settime 286
-__NR_timerfd_gettime 287
-__NR_signalfd4 289
-__NR_eventfd2 290
-__NR_epoll_create1 291
-__NR_dup3 292
-__NR_pipe2 293
-__NR_inotify_init1 294
+__NR_fork				57
+__NR_lchown				94
+__NR_setuid				105
+__NR_setgid				106
+__NR_getgid				104
+__NR_getegid				108
+__NR_setreuid				113
+__NR_setregid				114
+__NR_setgroups				116
+__NR_fchown				93
+__NR_setfsgid				123
+__NR_setresuid				117
+__NR_setresgid				119
+__NR_chown				92
+__NR_timer_create			222
+__NR_timer_settime			223
+__NR_timer_delete			226
+__NR_clock_settime			227
+__NR_clock_gettime			228
+__NR_openat				257
+__NR_mkdirat				258
+__NR_mknodat				259
+__NR_fchownat				260
+__NR_futimesat				261
+__NR_newfstatat				262
+__NR_unlinkat				263
+__NR_renameat				264
+__NR_linkat				265
+__NR_symlinkat				266
+__NR_readlinkat				267
+__NR_fchmodat				268
+__NR_faccessat				269
+__NR_splice				275
+__NR_tee				276
+__NR_vmsplice				278
+__NR_utimensat				280
+__NR_timerfd_create			283
+__NR_eventfd				284
+__NR_fallocate				285
+__NR_timerfd_settime			286
+__NR_timerfd_gettime			287
+__NR_accept4				288
+__NR_signalfd4				289
+__NR_eventfd2				290
+__NR_epoll_create1			291
+__NR_dup3				292
+__NR_pipe2				293
+__NR_inotify_init1			294
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to