From 612384c42c3f00725f555265b5ba2f92de2c1e99 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Mon, 7 Mar 2016 18:38:01 +0000 Subject: ftrace: match comm names that have a '[' as part of their name 990f925224107 ("run: update special fields regexp to parse task names with a space") fixed parsing task names that had spaces by assuming that no task would have a "[" as part of their name. The day has come that we have found a task with a "[". Set the regexp to match anything up to 16 characters. The kernel seems to limit the task name to 16 characters so this should be safe from now on (until we find another task that breaks the regexp, that is). --- tests/test_base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_base.py b/tests/test_base.py index 4184158..0dafb92 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -105,6 +105,7 @@ class TestBase(utils_tests.SetupDirectory): 1003.456789 : { 'task': 'AsyncTask #1', 'pid': 3123, 'cpu': 003 }, 1004.456789 : { 'task': 'kworker/1:1H', 'pid': 4123, 'cpu': 004 }, 1005.456789 : { 'task': 'jbd2/sda2-8', 'pid': 5123, 'cpu': 005 }, + 1006.456789 : { 'task': 'IntentService[', 'pid': 6123, 'cpu': 005 }, } in_data = """""" -- cgit v1.2.3