Skip to content

Commit

Permalink
tracecmd.py: Complete Event dict abstraction
Browse files Browse the repository at this point in the history
Apart from being immutable, Event instances
should behave like a dict. Use the DictMixin
to make them support the remaining features.

Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
jmberg authored and rostedt committed May 27, 2010
1 parent 6bf94a1 commit b530a23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tracecmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from functools import update_wrapper
from ctracecmd import *
from UserDict import DictMixin

"""
Python interface to the tracecmd library for parsing ftrace traces
Expand Down Expand Up @@ -50,7 +51,7 @@ def _del(self):
self.__cached_properties.pop(name, None)
return property(_get, None, _del)

class Event(object):
class Event(object, DictMixin):
"""
This class can be used to access event data
according to an event's record and format.
Expand Down

0 comments on commit b530a23

Please sign in to comment.