[PATCH] Correct get/set_robust_list syscall numbers for powerpc

Neil Campbell lists at thebatcave.org.uk
Thu Aug 5 22:53:29 UTC 2010


I noticed while doing some debugging that strace currently has get_robust_list and set_robust_list mixed up for powerpc linux.  Here are the syscall numbers as defined in a recent kernel:

#define __NR_get_robust_list	299
#define __NR_set_robust_list	300

I enclose a patch that fixes this.  Please let me know if there are any issues with it.

* linux/powerpc/syscallent.h: swap positions of get_ and set_robust_list.
---
 linux/powerpc/syscallent.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h
index 9de2af6..0fdf458 100644
--- a/linux/powerpc/syscallent.h
+++ b/linux/powerpc/syscallent.h
@@ -327,8 +327,8 @@
        { 4,    TD|TF,  sys_readlinkat,         "readlinkat"            }, /* 296 */
        { 3,    TD|TF,  sys_fchmodat,           "fchmodat"              }, /* 297 */
        { 3,    TD|TF,  sys_faccessat,          "faccessat"             }, /* 298 */
-       { 2,    0,      printargs,              "set_robust_list"       }, /* 299 */
-       { 3,    0,      printargs,              "get_robust_list"       }, /* 300 */
+       { 3,    0,      printargs,              "get_robust_list"       }, /* 299 */
+       { 2,    0,      printargs,              "set_robust_list"       }, /* 300 */
        { 6,    0,      sys_move_pages,         "move_pages"            }, /* 301 */
        { 3,    0,      sys_getcpu,             "getcpu"                }, /* 302 */
        { 5,    TD,     sys_epoll_pwait,        "epoll_pwait"           }, /* 303 */




More information about the Strace-devel mailing list