Valgrind: r16320 - in /trunk/coregrind/m_syswrap: priv_syswrap-darwin.h syswrap-darwin.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Valgrind: r16320 - in /trunk/coregrind/m_syswrap: priv_syswrap-darwin.h syswrap-darwin.c

svn-2
Author: rhyskidd
Date: Sat Apr 29 23:48:23 2017
New Revision: 16320

Log:
macos: Add a no-op wrapper for a new-in-10.12 syscall: ulock_wake

Patch from Louis Brunner.

Modified:
    trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
    trunk/coregrind/m_syswrap/syswrap-darwin.c

Modified: trunk/coregrind/m_syswrap/priv_syswrap-darwin.h
==============================================================================
--- trunk/coregrind/m_syswrap/priv_syswrap-darwin.h (original)
+++ trunk/coregrind/m_syswrap/priv_syswrap-darwin.h Sat Apr 29 23:48:23 2017
@@ -623,7 +623,7 @@
 // 513
 // 514
 // NYI ulock_wait                                   // 515
-// NYI ulock_wake                                   // 516
+DECL_TEMPLATE(darwin, ulock_wake);                  // 516
 // NYI fclonefileat                                 // 517
 // NYI fs_snapshot                                  // 518
 // 519

Modified: trunk/coregrind/m_syswrap/syswrap-darwin.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-darwin.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-darwin.c Sat Apr 29 23:48:23 2017
@@ -9773,6 +9773,14 @@
                   void*, buffer, size_t, size);
 }
 
+PRE(ulock_wake)
+{
+    PRINT("ulock_wake(operation:%ld, addr:%#lx, wake_value:%ld) FIXME",
+        ARG1, ARG2, ARG3);
+    PRE_REG_READ3(int, "ulock_wake",
+                  uint32_t, operation, void*, addr, uint64_t, wake_value);
+}
+
 #endif /* DARWIN_VERS >= DARWIN_10_12 */
 
 
@@ -10348,7 +10356,7 @@
    _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(513)),        // ???
    _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(514)),        // ???
 // _____(__NR_ulock_wait),                              // 515
-// _____(__NR_ulock_wake),                              // 516
+   MACX_(__NR_ulock_wake, ulock_wake),                  // 516
 // _____(__NR_fclonefileat),                            // 517
 // _____(__NR_fs_snapshot),                             // 518
    _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(519)),        // ???


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers