Red Hat ENTERPRISE LINUX 3 - DEVELOPER TOOLS GUIDE Guía de usuario Pagina 87

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 100
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 86
ftrace
77
11.63%54959620202 libxml2.so.2.7.6 [.] xmlXPathNodeSetAdd__internal_alias
8.60%40634845107 libxml2.so.2.7.6 [.] xmlXPathCompOpEval
4.63%21864091080 libxml2.so.2.7.6 [.] xmlXPathReleaseObject
2.73%12919672281 libxml2.so.2.7.6 [.] xmlXPathNodeSetSort__internal_alias
2.60%12271959697 libxml2.so.2.7.6 [.] valuePop
2.41%11379910918 libxml2.so.2.7.6 [.] xmlXPathIsNaN__internal_alias
2.19%10340901937 libxml2.so.2.7.6 [.] valuePush__internal_alias
6.7. ftrace
The ftrace framework provides users with several tracing capabilities, accessible through an
interface much simpler than SystemTap's. This framework uses a set of virtual files in the debugfs file
system; these files enable specific tracers. The ftrace function tracer simply outputs each function
called in the kernel in real time; other tracers within the ftrace framework can also be used to
analyze wakeup latency, task switches, kernel events, and the like.
You can also add new tracers for ftrace, making it a flexible solution for analyzing kernel events.
The ftrace framework is useful for debugging or analyzing latencies and performance issues that
take place outside of user-space. Unlike other profilers documented in this guide, ftrace is a built-in
feature of the kernel.
6.7.1. Using ftrace
The Red Hat Enterprise Linux 6 kernels have been configured with the CONFIG_FTRACE=y option.
This option provides the interfaces needed by ftrace. To use ftrace, mount the debugfs file
system as follows:
mount -t debugfs nodev /sys/kernel/debug
All the ftrace utilities are located in /sys/kernel/debug/tracing/. View the /sys/kernel/
debug/tracing/available_tracers file to find out what tracers are available for your kernel:
cat /sys/kernel/debug/tracing/available_tracers
power wakeup irqsoff function sysprof sched_switch initcall nop
To use a specific tracer, write it to /sys/kernel/debug/tracing/current_tracer. For
example, wakeup traces and records the maximum time it takes for the highest-priority task to be
scheduled after the task wakes up. To use it:
echo wakeup > /sys/kernel/debug/tracing/current_tracer
To start or stop tracing, write to /sys/kernel/debug/tracing/tracing_on, as in:
echo 1 > /sys/kernel/debug/tracing/tracing_on (enables tracing)
echo 0 > /sys/kernel/debug/tracing/tracing_on (disables tracing)
The results of the trace can be viewed from the following files:
/sys/kernel/debug/tracing/trace
This file contains human-readable trace output.
/sys/kernel/debug/tracing/trace_pipe
This file contains the same output as /sys/kernel/debug/tracing/trace, but is meant to
be piped into a command. Unlike /sys/kernel/debug/tracing/trace, reading from this file
consumes its output.
Vista de pagina 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 99 100

Comentarios a estos manuales

Sin comentarios

LevelOne KVM-0422 Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Router LevelOne KVM-0422.
Wir stellen 1 PDF-Handbücher LevelOne KVM-0422 zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Router LevelOne

Modelle Dokumententyp
KVM-0811 Bedienungsanleitung   LevelOne KVM-0811 User Manual, 22 Seiten
KVM-0831 Bedienungsanleitung   LevelOne KVM-0831 User Manual, 31 Seiten
KVM-8901 Bedienungsanleitung   LevelOne KVM-8901 User Manual [en] [de] [es] [fr] [it] , 22 Seiten
KVM-9005 Bedienungsanleitung   LevelOne KVM-9005 User Manual, 4 Seiten
KVM-9006 Bedienungsanleitung   LevelOne KVM-9006 User Manual, 17 Seiten
KVM-1631 Bedienungsanleitung   LevelOne KVM-1631 User Manual, 62 Seiten