[PATCH 3/3] trace-cmd: correct trace._handle usage in event-viewer.py
From: Darren Hart
Date: Tue Jan 04 2011 - 15:44:25 EST
The handle member object was changed to _handle, correct the usage
in event-viewer.py.
Signed-off-by: Darren Hart <dvhart@xxxxxxxxxxxxxxx>
CC: Steven Rostedt <rostedt@xxxxxxxxxxx>
CC: Tom Zanussi <tom.zanussi@xxxxxxxxx>
---
event-viewer.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/event-viewer.py b/event-viewer.py
index 6f35642..28afca2 100755
--- a/event-viewer.py
+++ b/event-viewer.py
@@ -66,13 +66,13 @@ class EventStore(gtk.GenericTreeModel):
print "Building trace index..."
index = 0
for cpu in range(0, trace.cpus):
- rec = tracecmd_read_data(self.trace.handle, cpu)
+ rec = tracecmd_read_data(self.trace._handle, cpu)
while rec:
offset = record_offset_get(rec)
ts = record_ts_get(rec)
self.refs.append(self.EventRef(index, ts, offset, cpu))
index = index + 1
- rec = tracecmd_read_data(self.trace.handle, cpu)
+ rec = tracecmd_read_data(self.trace._handle, cpu)
print "Loaded %d events from trace" % (index)
@timing
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/