Closed bjackman closed 7 years ago
It should be easy to create a test for this, can you add it as part of this commit?
Pushed a version with a simple test. I used a .txt trace file because that way it was easy to chop out the relevant bit, is that OK?
It's perfect :heart: , thanks!
If a trace field value contains a '=', we currently get a ValueError('Too many values to unpack'). Instead, let's only split on the first '='.
In practice if a field value contains a '=' it's probably because a kernel developer typo'd a custom event like:
So I did consider raising an explicit 'malformed event field' error. But this approach is more flexible in case someone really wanted to trace fields containing strings with '=' in them.