Skip to content

RFC cobalt_switch_context plugin

Hongzhan Chen xenomai 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kernel-shark: add plugin for handling xenomai cobalt context switch eventsrc/libkshark-tepdata.c src/plugins/CMakeLists.txt src/plugins/xenomai_cobalt_switch_events.c +1 more+166 -09 replies
2/2kernelshark: shape blue hollow box to show OOB state of tasksrc/plugins/CMakeLists.txt src/plugins/CobaltSwitchEvents.cpp src/plugins/xenomai_cobalt_switch_events.c +1 more+307 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] cobalt_switch_context plugin

1. add plugin to take correct action to show correct color for cobalt_switch_context in cpu plot
2. show hollow blue box underneath baseline of task plot to mark oob state task is runing on.

steps to show hollow blue box
1. loading trace-cmd data, please note that it would check if there is cobalt_switch_context event in data. If does not exist ,the cobalt_switch_context plugin would fail to init.
2. click menu plots-> tasks and then choose RT tasks that you want to show and then apply.
3. In RT tasks plot shape you may find the hollow blue box that indicating that it is running on OOB underneath the baseline of plot.

Please help check if it meet our requirement and comments.

Hongzhan Chen (2):
kernel-shark: add plugin for handling xenomai cobalt context switch
event
kernelshark: shape blue hollow box to show OOB state of task

 src/libkshark-tepdata.c                    |   1 +
 src/plugins/CMakeLists.txt                 |   4 +
 src/plugins/CobaltSwitchEvents.cpp         | 204 +++++++++++++++++++++
 src/plugins/xenomai_cobalt_switch_events.c | 196 ++++++++++++++++++++
 src/plugins/xenomai_cobalt_switch_events.h |  64 +++++++
 5 files changed, 469 insertions(+)
 create mode 100644 src/plugins/CobaltSwitchEvents.cpp
 create mode 100644 src/plugins/xenomai_cobalt_switch_events.c
 create mode 100644 src/plugins/xenomai_cobalt_switch_events.h
Signature · 1 line
2.17.1