[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1397559200-15520-2-git-send-email-alexsn@il.ibm.com>
Date: Tue, 15 Apr 2014 13:53:19 +0300
From: asnast@...il.com
To: linux-kernel@...r.kernel.org
Cc: rostedt@...dmis.org, Alex Snast <alexsn@...ibm.com>
Subject: [PATCH 1/2] ftrace: draw_funcgraph.py: Handle dots in function names
From: Alex Snast <alexsn@...ibm.com>
ftrace function tracer can output the following line:
mmcommon-3250 [001] 969103.003748: clear_buddies.isra.59 <-dequeue_task_fair
However the regex used by draw_functrace.py would fail to match the '.'
character
Signed-off-by: Alex Snast <alexsn@...ibm.com>
---
scripts/tracing/draw_functrace.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py
index db40fa0..358bc9f 100644
--- a/scripts/tracing/draw_functrace.py
+++ b/scripts/tracing/draw_functrace.py
@@ -103,10 +103,10 @@ def parseLine(line):
line = line.strip()
if line.startswith("#"):
raise CommentLineException
- m = re.match("[^]]+?\\] +([0-9.]+): (\\w+) <-(\\w+)", line)
+ m = re.match(r"[^]]+?\] +(\d+\.\d+): ([\w.]+) <-([\w.]+)", line)
if m is None:
raise BrokenLineException
- return (m.group(1), m.group(2), m.group(3))
+ return m.group(1, 2, 3)
def main():
--
1.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists