]> granicus.if.org Git - strace/commitdiff
fadvise64, fadvise64_64: fix handlers and number of syscall arguments
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 02:27:50 +0000 (02:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 09:43:51 +0000 (09:43 +0000)
The number of fadvise64 arguments depends on architecture and
personality.  For 64bit and ilp32 it equals to 4, for unaligned
32bit it equals to 5, and for aligned 32bit it equals to 6.

The number of fadvise64_64 arguments is 4 for 64bit and ilp32, for
unaligned 32bit and most of aligned 32bit it equals to 6, and for
mips o32 it equals to 7.

* linux/alpha/syscallent.h: Set fadvise64 handler.
* linux/s390/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Set fadvise64_64 handler, change the number
of syscall arguments to 6.
* linux/ia64/syscallent.h: Change the number of fadvise64 arguments
to 4.
* linux/mips/syscallent-n32.h: Likewise.
* linux/tile/syscallent1.h: Change the number of fadvise64 arguments
to 5.
* linux/mips/syscallent-o32.h: Change the number of fadvise64_64
arguments to 7.
* linux/s390x/syscallent.h: Change fadvise64_64 handler.  Set fadvise64
handler.  Change numbers of fadvise64 and fadvise64_64 arguments to 4.
* linux/sh64/syscallent.h: Change fadvise64_64 handler.
Change numbers of fadvise64 and fadvise64_64 arguments to 4.
* linux/sparc/syscallent.h: Set fadvise64 and fadvise64_64 handlers,
change numbers of their arguments to 5 and 6.
* linux/x86_64/syscallent.h: Change fadvise64 handler.

linux/alpha/syscallent.h
linux/hppa/syscallent.h
linux/ia64/syscallent.h
linux/mips/syscallent-n32.h
linux/mips/syscallent-o32.h
linux/s390/syscallent.h
linux/s390x/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/tile/syscallent1.h
linux/x86_64/syscallent.h

index 27c513d25bb1c2b58727901d1256b265b601c1b5..2b89492c0b5120872988139e6baaf589e031585e 100644 (file)
        { 5,    TM,     sys_remap_file_pages,   "remap_file_pages"      }, /* 410 */
        { 1,    0,      sys_set_tid_address,    "set_tid_address"       }, /* 411 */
        { 0,    0,      sys_restart_syscall,    "restart_syscall"       }, /* 412 */
-       { 4,    TD,     printargs,              "fadvise"               }, /* 413 */
+       { 4,    TD,     sys_fadvise64,          "fadvise"               }, /* 413 */
        { 3,    0,      sys_timer_create,       "timer_create"          }, /* 414 */
        { 4,    0,      sys_timer_settime,      "timer_settime"         }, /* 415 */
        { 2,    0,      sys_timer_gettime,      "timer_gettime"         }, /* 416 */
index 715bb5cf12e37d303d249ecb86c21362fc507bec..48e4d0477b867d0a32d6ddbafa3ae723e667bbc7 100644 (file)
        { 5,    0,      printargs,              "mq_notify"             }, /* 233 */
        { 5,    0,      printargs,              "mq_getsetattr"         }, /* 234 */
        { 4,    0,      printargs,              "waitid"                }, /* 235 */
-       { 5,    TD,     printargs,              "fadvise64_64"          }, /* 236 */
+       { 6,    TD,     sys_fadvise64_64,       "fadvise64_64"          }, /* 236 */
        { 5,    0,      sys_set_tid_address,    "set_tid_address"       }, /* 237 */
        { 5,    TF,     sys_setxattr,           "setxattr"              }, /* 238 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"             }, /* 239 */
index 60e75c49817d789a3ff41c1919d87690dd5d3523..43f132dc2cae2ee5e69f0914ada1af4694eeeb24 100644 (file)
        { 3,    0,      sys_sched_setaffinity,  "sched_setaffinity"},/* 1231 */
        { 3,    0,      sys_sched_getaffinity,  "sched_getaffinity"},/* 1232 */
        { 1,    0,      sys_set_tid_address,    "set_tid_address"}, /* 1233 */
-       { 5,    TD,     sys_fadvise64,          "fadvise64"     }, /* 1234 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64"     }, /* 1234 */
        { 3,    TS,     sys_tgkill,             "tgkill"        }, /* 1235 */
        { 1,    TP,     sys_exit,               "exit_group"    }, /* 1236 */
        { 3,    0,      sys_lookup_dcookie,     "lookup_dcookie"}, /* 1237 */
index 0d361a724c4ef1f091b9aecaebac3b2fed0e6029..b3d3a3356ebe91ea4d88938701735d8759a30da7 100644 (file)
        { 1,    0,      sys_set_tid_address,    "set_tid_address" }, /* 6213 */
        { 0,    0,      sys_restart_syscall,    "restart_syscall" }, /* 6214 */
        { 5,    TI,     sys_semtimedop,         "semtimedop"    }, /* 6215 */
-       { 5,    TD,     sys_fadvise64,          "fadvise64"     }, /* 6216 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64"     }, /* 6216 */
        { 3,    TF,     sys_statfs64,           "statfs64"      }, /* 6217 */
        { 3,    TD,     sys_fstatfs64,          "fstatfs64"     }, /* 6218 */
        { 4,    TD|TN,  sys_sendfile64,         "sendfile64"    }, /* 6219 */
index 88b490b3443e86588fec564f308d5f2823a52c91..975835390487ba8e1b32b6168c9e45593223a0a2 100644 (file)
        { 5,    TM,     sys_remap_file_pages,   "remap_file_pages"}, /* 4251 */
        { 1,    0,      sys_set_tid_address,    "set_tid_address"}, /* 4252 */
        { 0,    0,      sys_restart_syscall,    "restart_syscall"}, /* 4253 */
-       { 6,    TD,     sys_fadvise64_64,       "fadvise64_64"  }, /* 4254 */
+       { 7,    TD,     sys_fadvise64_64,       "fadvise64_64"  }, /* 4254 */
        { 3,    TF,     sys_statfs64,           "statfs64"      }, /* 4255 */
        { 2,    TD,     sys_fstatfs64,          "fstatfs64"     }, /* 4256 */
        { 3,    0,      sys_timer_create,       "timer_create"  }, /* 4257 */
index 264338009a20b6283482c59e878004ad85e2aab9..c68362ec153aaa0cf0ac06cb002dec932a24cb9e 100644 (file)
        { 4,    TD,     sys_epoll_ctl,          "epoll_ctl"     }, /* 250 */
        { 4,    TD,     sys_epoll_wait,         "epoll_wait"    }, /* 251 */
        { 1,    0,      sys_set_tid_address,    "set_tid_address"}, /* 252 */
-       { 5,    TD,     printargs,              "fadvise64"     }, /* 253 */
+       { 5,    TD,     sys_fadvise64,          "fadvise64"     }, /* 253 */
        { 3,    0,      sys_timer_create,       "timer_create"  }, /* 254 */
        { 4,    0,      sys_timer_settime,      "timer_settime" }, /* 255 */
        { 2,    0,      sys_timer_gettime,      "timer_gettime" }, /* 256 */
index ef902e6e57e59c9ef79a981a9f571a5a8f307ded..97658ae3e4ac112e850c46129c395a4aae0708a0 100644 (file)
        { 4,    TD,     sys_epoll_ctl,          "epoll_ctl"     }, /* 250 */
        { 4,    TD,     sys_epoll_wait,         "epoll_wait"    }, /* 251 */
        { 1,    0,      sys_set_tid_address,    "set_tid_address"}, /* 252 */
-       { 5,    TD,     printargs,              "fadvise64"     }, /* 253 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64"     }, /* 253 */
        { 3,    0,      sys_timer_create,       "timer_create"  }, /* 254 */
        { 4,    0,      sys_timer_settime,      "timer_settime" }, /* 255 */
        { 2,    0,      sys_timer_gettime,      "timer_gettime" }, /* 256 */
        { 2,    0,      sys_clock_getres,       "clock_getres"  }, /* 261 */
        { 4,    0,      sys_clock_nanosleep,    "clock_nanosleep"}, /* 262 */
        { 5,    0,      sys_vserver,            "vserver"       }, /* 263 */
-       { 6,    TD,     sys_fadvise64_64,       "fadvise64_64"  }, /* 264 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64_64"  }, /* 264 */
        { 3,    TF,     sys_statfs64,           "statfs64"      }, /* 265 */
        { 3,    TD,     sys_fstatfs64,          "fstatfs64"     }, /* 266 */
        { 5,    TM,     sys_remap_file_pages,   "remap_file_pages"}, /* 267 */
index 5ac9d99e5a0e4fd0afb363edab4f72215e410f6f..2ecacb196e8e23ac64ab8c5216c3562fa8674c73 100644 (file)
        { 5,    0,      sys_io_getevents,       "io_getevents"  }, /* 275 */
        { 3,    0,      sys_io_submit,          "io_submit"     }, /* 276 */
        { 3,    0,      sys_io_cancel,          "io_cancel"     }, /* 277 */
-       { 5,    TD,     sys_fadvise64,          "fadvise64"     }, /* 278 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64"     }, /* 278 */
        { 5,    0,      NULL,                   NULL            }, /* 279 */
        { 1,    TP,     sys_exit,               "exit_group"    }, /* 280 */
        { 3,    0,      sys_lookup_dcookie,     "lookup_dcookie"}, /* 281 */
        { 2,    TD,     sys_fstatfs64,          "fstatfs64"     }, /* 297 */
        { 3,    TS,     sys_tgkill,             "tgkill"        }, /* 298 */
        { 2,    TF,     sys_utimes,             "utimes"        }, /* 299 */
-       { 6,    TD,     sys_fadvise64_64,       "fadvise64_64"  }, /* 300 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64_64"  }, /* 300 */
        { 0,    0,      NULL,                   NULL            }, /* 301 */
        { 4,    TM,     sys_mbind,              "mbind"         }, /* 302 */
        { 5,    TM,     sys_get_mempolicy,      "get_mempolicy" }, /* 303 */
index 4ba974f746cf6aed9401be9f330e69d8493bd52d..1a34d4330b32367fde17d73dcfbf7512b6b1e5e4 100644 (file)
        { 2,    TD,     sys_socketcall, "socketcall" },         /* 206 */
        { 3,    0,      sys_syslog,     "syslog" },             /* 207 */
        { 4,    0,      sys_lookup_dcookie,"lookup_dcookie" },  /* 208 */
-       { 6,    TD,     printargs,      "fadvise64" },          /* 209 */
-       { 6,    TD,     printargs,      "fadvise64_64" },       /* 210 */
+       { 5,    TD,     sys_fadvise64,  "fadvise64" },          /* 209 */
+       { 6,    TD,     sys_fadvise64_64,"fadvise64_64" },      /* 210 */
        { 3,    TS,     sys_tgkill,     "tgkill" },             /* 211 */
        { 3,    TP,     sys_waitpid,    "waitpid" },            /* 212 */
        { 1,    TF,     sys_swapoff,    "swapoff" },            /* 213 */
index 956b4bf9420f21b3c91215981aaffd8da7f73664..4ebcbb457c03954cb669439b7c3ef85f1a7d43c1 100644 (file)
        { 5,    TP,     sys_clone,                      "clone"                         }, /*  220 */
        { 3,    TF|TP,  sys_execve,                     "execve"                        }, /*  221 */
        { 6,    TD|TM,  sys_mmap_4koff,                 "mmap2"                         }, /*  222 */
-       { 6,    TD,     sys_fadvise64,                  "fadvise64"                     }, /*  223 */
+       { 5,    TD,     sys_fadvise64,                  "fadvise64"                     }, /*  223 */
        { 1,    TF,     sys_swapon,                     "swapon"                        }, /*  224 */
        { 1,    TF,     sys_swapoff,                    "swapoff"                       }, /*  225 */
        { 3,    TM,     sys_mprotect,                   "mprotect"                      }, /*  226 */
index d5437cb199f35d7399942ea9784daec34c757cc1..f6cf00f60153adeec9c3330cea8f758263d59dc5 100644 (file)
        { 1,    0,      sys_set_tid_address,    "set_tid_address"}, /* 218 */
        { 0,    0,      sys_restart_syscall,    "restart_syscall"}, /* 219 */
        { 5,    TI,     sys_semtimedop,         "semtimedop"    }, /* 220 */
-       { 4,    TD,     sys_fadvise64_64,       "fadvise64"     }, /* 221 */
+       { 4,    TD,     sys_fadvise64,          "fadvise64"     }, /* 221 */
        { 3,    0,      sys_timer_create,       "timer_create"  }, /* 222 */
        { 4,    0,      sys_timer_settime,      "timer_settime" }, /* 223 */
        { 2,    0,      sys_timer_gettime,      "timer_gettime" }, /* 224 */