diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 07:18:48 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2017-05-26 17:12:26 -0400 |
commit | 5b9cd45eb4fd99afd6b66111f9106d1e65c76bb7 (patch) | |
tree | 7e10fa74c243b495879af40d8dbba13564d8de2f /litmus/Kconfig | |
parent | b556571e81005147c0b72112b386e6820dcf30be (diff) |
Add tracepoint support
This patch integrates LITMUS^RT's sched_trace_XXX() macros with
Linux's notion of tracepoints. This is useful to visualize schedules
in kernel shark and similar tools. Historically, LITMUS^RT's
sched_trace predates Linux's tracepoint infrastructure.
Diffstat (limited to 'litmus/Kconfig')
-rw-r--r-- | litmus/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/litmus/Kconfig b/litmus/Kconfig index 19211ac1320a..5408ef6b159b 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -58,6 +58,24 @@ config SCHED_TASK_TRACE_SHIFT | |||
58 | 10 => 1k events | 58 | 10 => 1k events |
59 | 8 => 512 events | 59 | 8 => 512 events |
60 | 60 | ||
61 | config SCHED_LITMUS_TRACEPOINT | ||
62 | bool "Enable Event/Tracepoint Tracing for real-time task tracing" | ||
63 | depends on TRACEPOINTS | ||
64 | default n | ||
65 | help | ||
66 | Enable kernel-style events (tracepoint) for Litmus. Litmus events | ||
67 | trace the same functions as the above sched_trace_XXX(), but can | ||
68 | be enabled independently. | ||
69 | Litmus tracepoints can be recorded and analyzed together (single | ||
70 | time reference) with all other kernel tracing events (e.g., | ||
71 | sched:sched_switch, etc.). | ||
72 | |||
73 | This also enables a quick way to visualize schedule traces using | ||
74 | trace-cmd utility and kernelshark visualizer. | ||
75 | |||
76 | Say Yes for debugging and visualization purposes. | ||
77 | Say No for overhead tracing. | ||
78 | |||
61 | config SCHED_OVERHEAD_TRACE | 79 | config SCHED_OVERHEAD_TRACE |
62 | bool "Record timestamps for overhead measurements" | 80 | bool "Record timestamps for overhead measurements" |
63 | depends on FEATHER_TRACE | 81 | depends on FEATHER_TRACE |