Title: [209110] trunk/Source/WTF
Revision
209110
Author
[email protected]
Date
2016-11-29 19:02:32 -0800 (Tue, 29 Nov 2016)

Log Message

Allow TracePoint to take arbitrary data
https://bugs.webkit.org/show_bug.cgi?id=165182

Reviewed by Tim Horton.

Allow TracePoint() to take four numeric arguments, for arbitrary data.

#pragma once

* wtf/SystemTracing.h:
(WTF::TracePoint):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (209109 => 209110)


--- trunk/Source/WTF/ChangeLog	2016-11-30 02:55:20 UTC (rev 209109)
+++ trunk/Source/WTF/ChangeLog	2016-11-30 03:02:32 UTC (rev 209110)
@@ -1,3 +1,17 @@
+2016-11-29  Simon Fraser  <[email protected]>
+
+        Allow TracePoint to take arbitrary data
+        https://bugs.webkit.org/show_bug.cgi?id=165182
+
+        Reviewed by Tim Horton.
+
+        Allow TracePoint() to take four numeric arguments, for arbitrary data.
+
+        #pragma once
+
+        * wtf/SystemTracing.h:
+        (WTF::TracePoint):
+
 2016-11-29  Andy Estes  <[email protected]>
 
         [Cocoa] Enable two clang warnings recommended by Xcode

Modified: trunk/Source/WTF/wtf/SystemTracing.h (209109 => 209110)


--- trunk/Source/WTF/wtf/SystemTracing.h	2016-11-30 02:55:20 UTC (rev 209109)
+++ trunk/Source/WTF/wtf/SystemTracing.h	2016-11-30 03:02:32 UTC (rev 209110)
@@ -23,8 +23,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#ifndef SystemTracing_h
-#define SystemTracing_h
+#pragma once
 
 #if USE(APPLE_INTERNAL_SDK)
 #include <System/sys/kdebug.h>
@@ -79,12 +78,16 @@
 
 namespace WTF {
 
-inline void TracePoint(TracePointCode code)
+inline void TracePoint(TracePointCode code, uint64_t data1 = 0, uint64_t data2 = 0, uint64_t data3 = 0, uint64_t data4 = 0)
 {
 #if HAVE(KDEBUG_H)
-    kdebug_trace(ARIADNEDBG_CODE(WEBKIT_COMPONENT, code), 0, 0, 0, 0);
+    kdebug_trace(ARIADNEDBG_CODE(WEBKIT_COMPONENT, code), data1, data2, data3, data4);
 #else
     UNUSED_PARAM(code);
+    UNUSED_PARAM(data1);
+    UNUSED_PARAM(data2);
+    UNUSED_PARAM(data3);
+    UNUSED_PARAM(data4);
 #endif
 }
 
@@ -112,6 +115,3 @@
 using WTF::TracePoint;
 
 #endif // __cplusplus
-
-#endif // SystemTracing_h
-
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to