[RFC v4][PATCH 1/3] Change type declarations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change type 'TraceEvent' to 'TraceEventID'

Signed-off-by: Prerna Saxena <prerna@xxxxxxxxxxxxxxxxxx>
---
 simpletrace.c |   12 ++++++------
 tracetool     |   12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/simpletrace.c b/simpletrace.c
index 2fec4d3..b488380 100644
--- a/simpletrace.c
+++ b/simpletrace.c
@@ -19,7 +19,7 @@ static TraceRecord trace_buf[TRACE_BUF_LEN];
 static unsigned int trace_idx;
 static FILE *trace_fp;
 
-static void trace(TraceEvent event, unsigned long x1,
+static void trace(TraceEventID event, unsigned long x1,
                   unsigned long x2, unsigned long x3,
                   unsigned long x4, unsigned long x5) {
     TraceRecord *rec = &trace_buf[trace_idx];
@@ -43,22 +43,22 @@ static void trace(TraceEvent event, unsigned long x1,
     }
 }
 
-void trace1(TraceEvent event, unsigned long x1) {
+void trace1(TraceEventID event, unsigned long x1) {
     trace(event, x1, 0, 0, 0, 0);
 }
 
-void trace2(TraceEvent event, unsigned long x1, unsigned long x2) {
+void trace2(TraceEventID event, unsigned long x1, unsigned long x2) {
     trace(event, x1, x2, 0, 0, 0);
 }
 
-void trace3(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3) {
+void trace3(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3) {
     trace(event, x1, x2, x3, 0, 0);
 }
 
-void trace4(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4) {
+void trace4(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4) {
     trace(event, x1, x2, x3, x4, 0);
 }
 
-void trace5(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) {
+void trace5(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) {
     trace(event, x1, x2, x3, x4, x5);
 }
diff --git a/tracetool b/tracetool
index 9ea9c08..0dc7f1b 100755
--- a/tracetool
+++ b/tracetool
@@ -123,13 +123,13 @@ linetoc_end_nop()
 linetoh_begin_simple()
 {
     cat <<EOF
-typedef unsigned int TraceEvent;
+typedef unsigned int TraceEventID;
 
-void trace1(TraceEvent event, unsigned long x1);
-void trace2(TraceEvent event, unsigned long x1, unsigned long x2);
-void trace3(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3);
-void trace4(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4);
-void trace5(TraceEvent event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5);
+void trace1(TraceEventID event, unsigned long x1);
+void trace2(TraceEventID event, unsigned long x1, unsigned long x2);
+void trace3(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3);
+void trace4(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4);
+void trace5(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5);
 EOF
 
     simple_event_num=0
-- 
1.6.2.5



-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux