diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2017-01-16 16:26:08 +0000 |
---|---|---|
committer | Brendan Jackman <brendan.jackman@arm.com> | 2017-01-17 13:51:31 +0000 |
commit | 214940f3fb53b45358168759f7198149b9dd01bf (patch) | |
tree | 68922e5ce5d319301333d57419fc20268d857634 /.travis.yml | |
parent | dd124aa65e7c3f3a35a1f9b9554fc528e68027bd (diff) | |
download | trappy-214940f3fb53b45358168759f7198149b9dd01bf.tar.gz |
base: Don't error on event field values containing '='
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:
/* Note missing space between "%d" and "bar" */
trace_printk("my_broken_event: foo=%dbar=%d", foo, bar)
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.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions