Handle sys_ioprio_set on amd64-linux.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6641 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_syswrap/priv_syswrap-linux.h b/coregrind/m_syswrap/priv_syswrap-linux.h
index 4ab72de..d36b9b1 100644
--- a/coregrind/m_syswrap/priv_syswrap-linux.h
+++ b/coregrind/m_syswrap/priv_syswrap-linux.h
@@ -97,6 +97,8 @@
 DECL_TEMPLATE(linux, sys_io_submit);
 DECL_TEMPLATE(linux, sys_io_cancel);
 
+DECL_TEMPLATE(linux, sys_ioprio_set);
+
 DECL_TEMPLATE(linux, sys_mbind);
 DECL_TEMPLATE(linux, sys_set_mempolicy);
 DECL_TEMPLATE(linux, sys_get_mempolicy);
diff --git a/coregrind/m_syswrap/syswrap-amd64-linux.c b/coregrind/m_syswrap/syswrap-amd64-linux.c
index 5ab3162..3e3ad81 100644
--- a/coregrind/m_syswrap/syswrap-amd64-linux.c
+++ b/coregrind/m_syswrap/syswrap-amd64-linux.c
@@ -1324,7 +1324,7 @@
    LINX_(__NR_request_key,       sys_request_key),    // 249
 
    LINXY(__NR_keyctl,            sys_keyctl),         // 250
-//   LINX_(__NR_ioprio_set,        sys_ioprio_set),     // 251
+   LINX_(__NR_ioprio_set,        sys_ioprio_set),     // 251
 //   LINX_(__NR_ioprio_get,        sys_ioprio_get),     // 252
    LINX_(__NR_inotify_init,	 sys_inotify_init),   // 253
    LINX_(__NR_inotify_add_watch, sys_inotify_add_watch), // 254
diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c
index ebc4e16..71cc34c 100644
--- a/coregrind/m_syswrap/syswrap-linux.c
+++ b/coregrind/m_syswrap/syswrap-linux.c
@@ -2616,6 +2616,7 @@
 /* ---------------------------------------------------------------------
    key retention service wrappers
    ------------------------------------------------------------------ */
+
 PRE(sys_request_key)
 {
    PRINT("sys_request_key ( %p(%s), %p(%s), %p(%s), %d )",
@@ -2777,6 +2778,19 @@
    }
 }
 
+/* ---------------------------------------------------------------------
+   ioprio_ wrappers
+   ------------------------------------------------------------------ */
+
+/* _syscall3(int, ioprio_set, int, which, int, who, int, ioprio); */
+
+PRE(sys_ioprio_set)
+{
+   PRINT("sys_ioprio_set ( %ld, %ld, %ld )", ARG1,ARG2,ARG3);
+   PRE_REG_READ3(int, "ioprio_set", int, which, int, who, int, ioprio);
+}
+
+
 #undef PRE
 #undef POST