Project Description

A visualization tool that directly digests ftrace function traces and provides easier to understand timing diagrams with the ability to quickly look up functions from within the program.

Tools like KernelShark allow for easier debugging of Kernel issues using ftrace, however we often do not have the ability to put trace-cmd on customer systems just to collect the kind of traces KernelShark needs. Being able to generate visualizations from the default function traces is helpful in these situations.

Goal for this Hackweek

A parser that converts ftrace output into a handy structure in a program (python, ruby) and a prototype visualization that can take ftrace output and generate an interactive visualization of timings and delays with direct links to kernel code and docs.

Resources

https://www.kernelshark.org https://lwn.net/Articles/410200/

ftrace, debugging, visualization

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 21

Activity

  • 7 months ago: dsterba liked this project.
  • 7 months ago: mkoutny liked this project.
  • 7 months ago: radolin liked this project.
  • 8 months ago: shunghsiyu liked this project.
  • 8 months ago: mbrugger liked this project.
  • 8 months ago: jesingh started this project.
  • 8 months ago: jesingh originated this project.

  • Comments

    • shunghsiyu
      8 months ago by shunghsiyu | Reply

      You might be interested in TRAPpy which seems to to be able to convert ftrace output to interactive plot.

      OTOH for parsing text-based ftrace output to handy structure there's corakwue/ftrace, and I've also got a more limited script that only works for IOMMU tracepoints; for visualization, Perfetto looks pretty neat as well.

    Similar Projects

    This project is one of its kind!