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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0810261903110.26269@gandalf.stny.rr.com>
Date:	Sun, 26 Oct 2008 19:10:57 -0400 (EDT)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Frederic Weisbecker <fweisbec@...il.com>
cc:	Ingo Molnar <mingo@...e.hu>,
	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH][RESEND] ftrace: Add a script to produce a hierarchical
 view of a function trace



On Sun, 26 Oct 2008, Frederic Weisbecker wrote:

> This script parses a function trace and then produces a hierarchical view of the 
> function call stack after processing it into a tree.
> 
> You can see the result on attachment. You will find the raw trace and the hierarchical view.

Very nice and useful tool!

Just one thing...

> 
> Signed-off-by: Frederic Weisbecker <fweisbec@...il.com>
> ---
> diff --git a/scripts/draw_functrace.py b/scripts/draw_functrace.py
> new file mode 100755
> index 0000000..e6496bd
> --- /dev/null
> +++ b/scripts/draw_functrace.py
> @@ -0,0 +1,119 @@
> +#!/usr/bin/python
> +
> +"""
> +Copyright 2008 (c) Frederic Weisbecker <fweisbec@...il.com>
> +Licensed under the terms of the GNU GPL License version 2
> +
> +This script parses a trace provided by the function tracer in
> +kernel/trace/trace_functions.c
> +The resulted trace is processed into a tree to produce a more human
> +view of the call stack by drawing textual but hierarchical tree of
> +calls. Only the functions's names and the the call time are provided.
> +
> +Usage:
> +	Be sure that you have CONFIG_FUNCTION_TRACER
> +	# mkdir /debugfs
> +	# mount -t debug debug /debug
> +	# echo function > /debug/tracing/current_tracer
> +	# cat /debug/tracing/current_tracer > ~/raw_trace_func

Do you really mean to write "function" into ~/raw_trace_func?

Also, I just tried this out (replacing current_tracer with trace) and I 
just get ---Root (Nowhere)

-- Steve

> +	Wait some times but not too much, the scripts is a bit slow.
> +	Break the pipe (Ctrl + Z)
> +	$ scripts/draw_functrace.py < raw_trace_func > draw_functrace
> +	Then you have your drawn trace in draw_functrace
> +"""
> +
--
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