Phil Auld 9d246053a6 sched: Add a tracepoint to track rq->nr_running
Add a bare tracepoint trace_sched_update_nr_running_tp which tracks
->nr_running CPU's rq. This is used to accurately trace this data and
provide a visualization of scheduler imbalances in, for example, the
form of a heat map.  The tracepoint is accessed by loading an external
kernel module. An example module (forked from Qais' module and including
the pelt related tracepoints) can be found at:

  https://github.com/auldp/tracepoints-helpers.git

A script to turn the trace-cmd report output into a heatmap plot can be
found at:

  https://github.com/jirvoz/plot-nr-running

The tracepoints are added to add_nr_running() and sub_nr_running() which
are in kernel/sched/sched.h. In order to avoid CREATE_TRACE_POINTS in
the header a wrapper call is used and the trace/events/sched.h include
is moved before sched.h in kernel/sched/core.

Signed-off-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200629192303.GC120228@lorien.usersys.redhat.com
2020-07-08 11:39:02 +02:00
..
2018-04-16 11:53:35 +01:00
2020-06-09 11:28:59 -07:00
2019-11-27 07:44:25 +01:00
2017-11-17 09:51:57 -08:00
2019-11-08 11:23:37 +01:00
2019-03-27 15:52:01 -03:00
2017-09-25 20:38:26 +02:00
2020-04-22 12:55:54 -07:00
2020-06-11 13:33:47 -04:00
2020-06-11 12:22:41 -07:00
2018-02-13 21:30:22 +01:00
2020-06-17 22:51:01 +01:00
2017-12-19 10:56:24 +01:00
2020-01-09 18:41:41 -08:00
2020-06-11 12:22:41 -07:00
2019-12-01 14:00:59 -08:00