| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/kernels/2.6.31.5-127.fc12.i686.PAE/scripts/tracing/ |
Upload File : |
Ñò §(¨Jc @ s‹ d Z d d k Z d d k Z d d d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d „ Z e d j o e ƒ n d S( sH Copyright 2008 (c) Frederic Weisbecker <fweisbec@gmail.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 # mount -t debugfs nodev /sys/kernel/debug # echo function > /sys/kernel/debug/tracing/current_tracer $ cat /sys/kernel/debug/tracing/trace_pipe > ~/raw_trace_func Wait some times but not too much, the script 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 iÿÿÿÿNt CallTreec B sG e Z d Z d Z d d d „ Z d „ Z d „ Z d „ Z d „ Z RS( sÕ This class provides a tree representation of the functions call stack. If a function has no parent in the kernel (interrupt, syscall, kernel thread...) then it is attached to a virtual parent called ROOT. c C sE | | _ | | _ | d j o t i | _ n | | _ g | _ d S( N( t _funct _timet NoneR t ROOTt _parentt _children( t selft funct timet parent( ( sM /usr/src/kernels/2.6.31.5-127.fc12.i686.PAE/scripts/tracing/draw_functrace.pyt __init__# s c C s&