systrace: Store pid as int type
@@ -88,9 +88,11 @@ class SysTrace(GenericFTrace):
match = SYSTRACE_EVENT.match(data_str)
if match:
- data_dict = { 'event': match.group('event'),
- 'pid' : match.group('pid'),
+ data_dict = {
+ 'event': match.group('event'),
+ 'pid' : int(match.group('pid')) if match.group('pid') else None,
'func' : match.group('func' ),
- 'data' : match.group('data') }
+ 'data' : match.group('data' )
+ }
return data_dict
