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 */

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to