lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 15 Apr 2014 13:53:20 +0300
From:	asnast@...il.com
To:	linux-kernel@...r.kernel.org
Cc:	rostedt@...dmis.org, Alex Snast <alexsn@...ibm.com>
Subject: [PATCH 2/2] ftrace: draw_funcgraph.py: Allow reading input from files in addition to stdin

From: Alex Snast <alexsn@...ibm.com>

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 358bc9f..333ab42 100644
--- a/scripts/tracing/draw_functrace.py
+++ b/scripts/tracing/draw_functrace.py
@@ -22,7 +22,7 @@ Usage:
 """
 
 
-import sys, re
+import fileinput, re
 
 class CallTree:
 	""" This class provides a tree representation of the functions
@@ -113,7 +113,7 @@ def main():
 	CallTree.ROOT = CallTree("Root (Nowhere)", None, None)
 	tree = CallTree.ROOT
 
-	for line in sys.stdin:
+	for line in fileinput.input():
 		try:
 			calltime, callee, caller = parseLine(line)
 		except BrokenLineException:
-- 
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ