@@ -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);
}
@@ -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
Change type 'TraceEvent' to 'TraceEventID' Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com> --- simpletrace.c | 12 ++++++------ tracetool | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-)