• Frederic Weisbecker's avatar
    tracing/function-graph-tracer: Output arrows signal on hardirq call/return · f8b755ac
    Frederic Weisbecker authored
    
    
    Impact: make more obvious the hardirq calls in the output
    
    When a hardirq is triggered inside the codeflow on output, we have
    now two arrows that indicate the entry and return of the hardirq.
    
     0)               |          bit_waitqueue() {
     0)   0.880 us    |            __phys_addr();
     0)   2.699 us    |          }
     0)               |          __wake_up_bit() {
     0)   ==========> |          smp_apic_timer_interrupt() {
     0)   0.797 us    |            native_apic_mem_write();
     0)   0.715 us    |            exit_idle();
     0)               |            irq_enter() {
     0)   0.722 us    |              idle_cpu();
     0)   5.519 us    |            }
     0)               |            hrtimer_interrupt() {
     0)               |              ktime_get() {
     0)               |                ktime_get_ts() {
     0)   0.805 us    |                  getnstimeofday();
    
     [...]
    
     0) ! 108.528 us  |            }
     0)               |            irq_exit() {
     0)               |              do_softirq() {
     0)               |                __do_softirq() {
     0)   0.895 us    |                  __local_bh_disable();
     0)               |                  run_timer_softirq() {
     0)   0.827 us    |                    hrtimer_run_pending();
     0)   1.226 us    |                    _spin_lock_irq();
     0)               |                    _spin_unlock_irq() {
     0)   6.550 us    |                  }
     0)   0.924 us    |                  _local_bh_enable();
     0) + 12.129 us   |                }
     0) + 13.911 us   |              }
     0)   0.707 us    |              idle_cpu();
     0) + 17.009 us   |            }
     0) ! 137.419 us  |          }
     0)   <========== |
     0)   1.045 us    |          }
     0) ! 148.908 us  |        }
     0) ! 151.022 us  |      }
     0) ! 153.022 us  |    }
     0)   0.963 us    |    journal_mark_dirty();
     0)   0.925 us    |    __brelse();
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    f8b755ac