• Daniel Bristot de Oliveira's avatar
    trace: Add timerlat tracer · a955d7ea
    Daniel Bristot de Oliveira authored
    The timerlat tracer aims to help the preemptive kernel developers to
    found souces of wakeup latencies of real-time threads. Like cyclictest,
    the tracer sets a periodic timer that wakes up a thread. The thread then
    computes a *wakeup latency* value as the difference between the *current
    time* and the *absolute time* that the timer was set to expire. The main
    goal of timerlat is tracing in such a way to help kernel developers.
    
    Usage
    
    Write the ASCII text "timerlat" into the current_tracer file of the
    tracing system (generally mounted at /sys/kernel/tracing).
    
    For example:
    
            [root@f32 ~]# cd /sys/kernel/tracing/
            [root@f32 tracing]# echo timerlat > current_tracer
    
    It is possible to follow the trace by reading the trace trace file:
    
      [root@f32 tracing]# cat trace
      # tracer: timerlat
      #
      #                              _-----=> irqs-off
      #                             / _----=> need-resched
      #                            | / _---=> hardirq/softirq
      #               ...
    a955d7ea
Kconfig 33.8 KB