Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517428 - sys-apps/ftrace - Function Tracer
Summary: sys-apps/ftrace - Function Tracer
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://www.kernel.org/doc/Documentat...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-18 16:10 UTC by James Horton
Modified: 2014-10-28 00:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Horton 2014-07-18 16:10:41 UTC
Ftrace is an internal tracer designed to help out developers and
designers of systems to find what is going on inside the kernel. [1]
ftrace is activated by setting the appropriate flags in the kernel build
settings.

Trace-cmd  is a front-end to ftrace [2,3.4].

KernelShark is a front-end to trace-cmd and makes using the advanced
(filter) features of Trace-cmd and Ftrace, easy to interpret
and organize your kernel profiling efforts. [4,5,6) Kernel profiling is of
keen interests to web servers, systems security and performance
optimization of single systems and HA-Clustered servers.

Here is a poor quality video on trace-cmd & KernelShark [7].

KernelShark and trace-cmd would be fantastic kernel tools to have
available on Gentoo, for debugging and optimization of most kernel
issues. In many ways, FTRACE exceeds strace, ltrace, dtrace, sysprof
and oprofile combined [8,9]. KernelShark gives us a wonderful,
API to organize repetitive work on kernel diags and studies.


[1] https://www.kernel.org/doc/Documentation/trace/ftrace.txt

[2] http://lwn.net/Articles/410200/

[3] http://www.linux-kvm.org/page/Tracing

[4] http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git

[5] http://rostedt.homelinux.com/kernelshark/

[6] http://pkgs.org/download/kernelshark

[7] http://www.youtube.com/watch?v=ABRtzVtUVBo

[8] http://crtags.blogspot.com/2012/04/dtrace-ftrace-ltrace-strace-so-many-to.html

[9] https://wiki.linaro.org/LEG/Engineering/TOOLS/tracing-and-profiling-tools#ftrace
 

James
Comment 1 James Horton 2014-09-20 04:09:40 UTC
KernelShark is distributed in the same repository that trace-cmd is:

  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git

According to this article from 2011:

http://lwn.net/Articles/425583/