Skip to content

tracepoints for softirq entry/exit

Jason Baron lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 21 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2tracepoints for softirq entry/exit - add softirq-to-name arrayinclude/linux/interrupt.h kernel/softirq.c+13 -15 replies
2/2tracepoints for softirq entry/exit - tracepointsinclude/trace/irq_event_types.h kernel/softirq.c+18 -115 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchIngo Molnar
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Patch 0/2] tracepoints for softirq entry/exit

hi,

Somewhat analogous to the hard irq entry/exit tracepoints. This patch series introduces tracepoints for softirq entry/exit points.

These tracepoints are useful for augmenting the various tracers (sample output below), and for understanding frequencies and timings for softirqs. Very similar tracepoints are also in Mathieu's lttng tree.

thanks,

-Jason

 0)               |                                  /* irq_softirq_entry: softirq=1 action=TIMER_SOFTIRQ */
 0)               |                                  run_timer_softirq() {
 0)   1.032 us    |                                    hrtimer_run_pending();
 0)   0.796 us    |                                    _spin_lock_irq();
 0)   4.593 us    |                                  }
 0)               |                                  /* irq_softirq_exit: softirq=1 action=TIMER_SOFTIRQ */
 0)               |                                  /* irq_softirq_entry: softirq=6 action=SCHED_SOFTIRQ */
 0)               |                                  run_rebalance_domains() {
 0)               |                                    rebalance_domains() {
 0)   0.868 us    |                                      msecs_to_jiffies();
 0)   1.014 us    |                                      msecs_to_jiffies();
 0)   5.947 us    |                                    }
 0)   7.779 us    |                                  }
 0)               |                                  /* irq_softirq_exit: softirq=6 action=SCHED_SOFTIRQ */
 0)               |                                  /* irq_softirq_entry: softirq=8 action=RCU_SOFTIRQ */
 0)               |                                  rcu_process_callbacks() {
 0)               |                                    __rcu_process_callbacks() {
 0)   0.882 us    |                                      force_quiescent_state();
 0)   0.995 us    |                                      rcu_process_gp_end();
 0)   0.740 us    |                                      check_for_new_grace_period();
 0)               |                                      cpu_quiet() {
 0)   0.815 us    |                                        _spin_lock_irqsave();
 0)   0.939 us    |                                        _spin_unlock_irqrestore();
 0)   4.208 us    |                                      }
 0) + 12.257 us   |                                    }
 0)               |                                    __rcu_process_callbacks() {
 0)   0.547 us    |                                      force_quiescent_state();
 0)   0.917 us    |                                      rcu_process_gp_end();
 0)   0.744 us    |                                      check_for_new_grace_period();
 0)   5.879 us    |                                    }
 0) + 20.994 us   |                                  }
 0)               |                                  /* irq_softirq_exit: softirq=8 action=RCU_SOFTIRQ */