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

  • over 2 years ago: dsterba liked this project.
  • over 2 years ago: mkoutny liked this project.
  • over 2 years ago: radolin liked this project.
  • over 2 years ago: shunghsiyu liked this project.
  • over 2 years ago: mbrugger liked this project.
  • over 2 years ago: jesingh started this project.
  • over 2 years ago: jesingh originated this project.

  • Comments

    • shunghsiyu
      over 2 years 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!