Revision 0b5538c3 scripts/simpletrace.py

b/scripts/simpletrace.py
16 16
header_event_id = 0xffffffffffffffff
17 17
header_magic    = 0xf2b177cb0aa429b4
18 18
header_version  = 0
19
dropped_event_id = 0xfffffffffffffffe
19 20

  
20 21
trace_fmt = '=QQQQQQQQ'
21 22
trace_len = struct.calcsize(trace_fmt)
......
28 29
        """Extract argument names from a parameter list."""
29 30
        return tuple(arg.split()[-1].lstrip('*') for arg in args.split(','))
30 31

  
31
    events = {}
32
    events = {dropped_event_id: ('dropped', 'count')}
32 33
    event_num = 0
33 34
    for line in fobj:
34 35
        m = event_re.match(line.strip())

Also available in: Unified diff