aboutsummaryrefslogtreecommitdiffstats
path: root/tracecmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'tracecmd.py')
-rw-r--r--tracecmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracecmd.py b/tracecmd.py
index 6b05e23..4ece0ef 100644
--- a/tracecmd.py
+++ b/tracecmd.py
@@ -86,7 +86,7 @@ class Trace(object):
86 used to manage the trace and extract events from it. 86 used to manage the trace and extract events from it.
87 """ 87 """
88 def __init__(self, filename): 88 def __init__(self, filename):
89 self.handle = tracecmd_open(filename) 89 self.handle = tracecmd_alloc(filename)
90 90
91 if tracecmd_read_headers(self.handle): 91 if tracecmd_read_headers(self.handle):
92 raise FileFormatError("Invalid headers") 92 raise FileFormatError("Invalid headers")