Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ftrace: Properly parse comm (process name) even if it has spaces
bug 579234 If a thread name has spaces the space is incorrectly interpreted as a separator for key-value pairs, therefore ignoring the part after the space, When parsing fields look for the pattern "<key>=" and take as value whatever string between the key pattern and the next key pattern, ignoring trailing '[', ']' or ',' characters. This under the assumption that the key does not contain spaces and the value does not contain '='. Added a unit test for this case. Change-Id: I5836169e19156ebcb51f2c58bd6c6352df589cec Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com> Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/191818 Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-by: Hoang Thuan Pham <hoangpham.eclipse@gmail.com> Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
- Loading branch information
1 parent
370c4de
commit cc3de14
Showing
2 changed files
with
82 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters