]> granicus.if.org Git - strace/commitdiff
readahead: fix number of syscall arguments
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 01:25:11 +0000 (01:25 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 7 May 2013 01:56:09 +0000 (01:56 +0000)
The number of readahead arguments depends on architecture and
personality.  For 64bit and ilp32 it equals to 3, for unaligned 32bit it
equals to 4, and for aligned 32bit it equals to 5.

* linux/aarch64/syscallent1.h: Set number of readahead arguments to 3.
* linux/alpha/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/or1k/syscallent.h: Set number of readahead arguments to 4.
* linux/sh/syscallent.h: Likewise.
* linux/tile/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Set number of readahead arguments to 5.

linux/aarch64/syscallent1.h
linux/alpha/syscallent.h
linux/ia64/syscallent.h
linux/or1k/syscallent.h
linux/s390x/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/tile/syscallent.h
linux/x32/syscallent.h
linux/x86_64/syscallent.h
linux/xtensa/syscallent.h

index 39774d51df821fc6c41205a9422ac31381dc9bb7..a8d3a4384e31aa70ebf122826db9e1ffda67be28 100644 (file)
        { 2,    TN,     sys_shutdown,                   "shutdown"                      }, /*  210 */
        { 3,    TN,     sys_sendmsg,                    "sendmsg"                       }, /*  211 */
        { 3,    TN,     sys_recvmsg,                    "recvmsg"                       }, /*  212 */
-       { 4,    TD,     sys_readahead,                  "readahead"                     }, /*  213 */
+       { 3,    TD,     sys_readahead,                  "readahead"                     }, /*  213 */
        { 1,    TM,     sys_brk,                        "brk"                           }, /*  214 */
        { 2,    TM,     sys_munmap,                     "munmap"                        }, /*  215 */
        { 5,    TM,     sys_mremap,                     "mremap"                        }, /*  216 */
index fc47985827f06bc4671118e96de7a2bf818bff79..27c513d25bb1c2b58727901d1256b265b601c1b5 100644 (file)
        { 3,    0,      printargs,              "pciconfig_iobase"      }, /* 376 */
        { 3,    TD,     sys_getdents64,         "getdents64"            }, /* 377 */
        { 0,    0,      sys_gettid,             "gettid"                }, /* 378 */
-       { 4,    TD,     sys_readahead,          "readahead"             }, /* 379 */
+       { 3,    TD,     sys_readahead,          "readahead"             }, /* 379 */
        { 5,    0,      NULL,                   NULL                    }, /* 380 */
        { 2,    TS,     sys_kill,               "tkill"                 }, /* 381 */
        { 5,    TF,     sys_setxattr,           "setxattr"              }, /* 382 */
index b2824fcc831f5ce2b690545edd3ed2b8ae3f4912..60e75c49817d789a3ff41c1919d87690dd5d3523 100644 (file)
        { 6,    TP,     sys_clone,              "clone2"        }, /* 1213 */
        { 3,    TD,     sys_getdents64,         "getdents64"    }, /* 1214 */
        { 2,    0,      printargs,              "getunwind"     }, /* 1215 */
-       { 4,    TD,     sys_readahead,          "readahead"     }, /* 1216 */
+       { 3,    TD,     sys_readahead,          "readahead"     }, /* 1216 */
        { 5,    TF,     sys_setxattr,           "setxattr"      }, /* 1217 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"     }, /* 1218 */
        { 5,    TD,     sys_fsetxattr,          "fsetxattr"     }, /* 1219 */
index fd31e7d314f00f9da378f43ad48ba43b54e2a8ad..4b59f750257cda44af9b013d62662c93ada35b6c 100644 (file)
        { 2,    TN,     sys_shutdown,                   "shutdown"              }, /* 210 */
        { 3,    TN,     sys_sendmsg,                    "sendmsg"               }, /* 211 */
        { 3,    TN,     sys_recvmsg,                    "recvmsg"               }, /* 212 */
-       { 5,    TD,     sys_readahead,                  "readahead"             }, /* 213 */
+       { 4,    TD,     sys_readahead,                  "readahead"             }, /* 213 */
        { 1,    TM,     sys_brk,                        "brk"                   }, /* 214 */
        { 2,    TM,     sys_munmap,                     "munmap"                }, /* 215 */
        { 5,    TM,     sys_mremap,                     "mremap"                }, /* 216 */
index 4f796683e28497969b3f4b95dbd20f1c32297d70..ef902e6e57e59c9ef79a981a9f571a5a8f307ded 100644 (file)
        { 3,    TM,     sys_madvise,            "madvise"       }, /* 219 */
        { 3,    TD,     sys_getdents64,         "getdents64"    }, /* 220 */
        { MA,   0,      NULL,                   NULL            }, /* 221 */
-       { 4,    TD,     sys_readahead,          "readahead"     }, /* 222 */
+       { 3,    TD,     sys_readahead,          "readahead"     }, /* 222 */
        { 4,    TD|TN,  sys_sendfile64,         "sendfile64"    }, /* 223 */
        { 5,    TF,     sys_setxattr,           "setxattr"      }, /* 224 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"     }, /* 225 */
index 4bc9640ef8686fd69eec1d3fcc5f04e7bbe7c3e7..bacd5d592c2f92262c7526aa4977ed9ffb2c2c89 100644 (file)
        { 4,    0,      NULL,                   NULL            }, /* 222 */
        { 4,    0,      NULL,                   NULL            }, /* 223 */
        { 4,    0,      sys_gettid,             "gettid"        }, /* 224 */
-       { 5,    TD,     sys_readahead,          "readahead"     }, /* 225 */
+       { 4,    TD,     sys_readahead,          "readahead"     }, /* 225 */
        { 5,    TF,     sys_setxattr,           "setxattr"      }, /* 226 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"     }, /* 227 */
        { 5,    TD,     sys_fsetxattr,          "fsetxattr"     }, /* 228 */
index df98fab0d6e5d4f67ce97b84fd755e1b4d0bea31..5ac9d99e5a0e4fd0afb363edab4f72215e410f6f 100644 (file)
        { 4,    0,      NULL,                   NULL            }, /* 250 */
        { 4,    0,      NULL,                   NULL            }, /* 251 */
        { 4,    0,      sys_gettid,             "gettid"        }, /* 252 */
-       { 5,    TD,     sys_readahead,          "readahead"     }, /* 253 */
+       { 3,    TD,     sys_readahead,          "readahead"     }, /* 253 */
        { 5,    TF,     sys_setxattr,           "setxattr"      }, /* 254 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"     }, /* 255 */
        { 5,    TD,     sys_fsetxattr,          "fsetxattr"     }, /* 256 */
index eb5023b73b25cf5b7e8cd5c2b8183fee87afabc1..81aeb86b8bab2359b20a48aefc1cfae2438cb293 100644 (file)
        { 2,    TN,     sys_shutdown,                   "shutdown"                      }, /*  210 */
        { 3,    TN,     sys_sendmsg,                    "sendmsg"                       }, /*  211 */
        { 3,    TN,     sys_recvmsg,                    "recvmsg"                       }, /*  212 */
-       { 4,    TD,     sys_readahead,                  "readahead"                     }, /*  213 */
+       { 3,    TD,     sys_readahead,                  "readahead"                     }, /*  213 */
        { 1,    TM,     sys_brk,                        "brk"                           }, /*  214 */
        { 2,    TM,     sys_munmap,                     "munmap"                        }, /*  215 */
        { 5,    TM,     sys_mremap,                     "mremap"                        }, /*  216 */
index 0098e764fe3ad270752c4ea1017b744a87a3ff6a..6a840610ea112f88d39c1c0f7ee94ab12d8b490d 100644 (file)
        { 3,    0,      sys_tuxcall,            "tuxcall"       }, /* 184 */
        { 3,    0,      sys_security,           "security"      }, /* 185 */
        { 0,    0,      sys_gettid,             "gettid"        }, /* 186 */
-       { 4,    TD,     sys_readahead,          "readahead"     }, /* 187 */
+       { 3,    TD,     sys_readahead,          "readahead"     }, /* 187 */
        { 5,    TF,     sys_setxattr,           "setxattr"      }, /* 188 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"     }, /* 189 */
        { 5,    TD,     sys_fsetxattr,          "fsetxattr"     }, /* 190 */
index e56bd8e105158917be7c70f05a85ab20026d5d8d..d5437cb199f35d7399942ea9784daec34c757cc1 100644 (file)
        { 3,    0,      sys_tuxcall,            "tuxcall"       }, /* 184 */
        { 3,    0,      sys_security,           "security"      }, /* 185 */
        { 0,    0,      sys_gettid,             "gettid"        }, /* 186 */
-       { 4,    TD,     sys_readahead,          "readahead"     }, /* 187 */
+       { 3,    TD,     sys_readahead,          "readahead"     }, /* 187 */
        { 5,    TF,     sys_setxattr,           "setxattr"      }, /* 188 */
        { 5,    TF,     sys_setxattr,           "lsetxattr"     }, /* 189 */
        { 5,    TD,     sys_fsetxattr,          "fsetxattr"     }, /* 190 */
index e87764e218d057223dafe338465a25624c17c33d..acaccbd42cc177ee217aa586c13cd5f981627f20 100644 (file)
        { 5,    0,      printargs,              "request_key"   }, /* 257 */
        { 5,    0,      printargs,              "keyctl"        }, /* 258 */
        [259] = { },
-       { 4,    TD,     sys_readahead,          "readahead"     }, /* 260 */
+       { 5,    TD,     sys_readahead,          "readahead"     }, /* 260 */
        { 5,    TM,     sys_remap_file_pages,   "remap_file_pages"}, /* 261 */
        { 5,    TM,     sys_migrate_pages,      "migrate_pages" }, /* 262 */
        { 0,    TM,     sys_mbind,              "mbind"         }, /* 263 */