linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] kernel-shark: Add plugin for handling Xenomai cobalt_context_switch.
@ 2021-12-16  2:16 Hongzhan Chen
  2021-12-16  2:16 ` [RFC PATCH 1/1] " Hongzhan Chen
  2021-12-16  3:03 ` [RFC PATCH 0/1] " Steven Rostedt
  0 siblings, 2 replies; 9+ messages in thread
From: Hongzhan Chen @ 2021-12-16  2:16 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: jan.kiszka

For Xenomai-cobalt enabled system, cobalt_switch_context means
that there is context switch in companion core(realtime core),
which we may need to do special treatment and take correct action
as main kernel sched_switch to visualize out-of-band state of
realtime tasks running in cobalt core. To achive our target,
we implement following:

  1. store corresponding cobalt_switch_context events into
     container data.
  2. modify pid stored in entry to be equal to next_pid to
     show correct color in cpu bar when cobalt_switch_context
     event happen.
  3. show blue hollow box to mark out-of-band state underneath
     the baseline of task plots according to cobalt_switch_context
     events.
  4. clickable cobalt_switch_context plugin shapes.

I do not know if this patch can be accepted in upstream from function's
view because it is xenomai related which still be different from
pure kernel-shark for pure linux. But it is still independent plugin
which would not influence other kernel-shark's functions and the plugin
would not take effect if there is no cobalt_switch_context event found
in trace data.


Hongzhan Chen (1):
  kernel-shark: Add plugin for handling Xenomai cobalt_context_switch

 src/libkshark-tepdata.c                    |   1 +
 src/plugins/CMakeLists.txt                 |   4 +
 src/plugins/CobaltSwitchEvents.cpp         | 204 +++++++++++++++++++++
 src/plugins/xenomai_cobalt_switch_events.c | 198 ++++++++++++++++++++
 src/plugins/xenomai_cobalt_switch_events.h |  64 +++++++
 5 files changed, 471 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

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-17  2:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-16  2:16 [RFC PATCH 0/1] kernel-shark: Add plugin for handling Xenomai cobalt_context_switch Hongzhan Chen
2021-12-16  2:16 ` [RFC PATCH 1/1] " Hongzhan Chen
2021-12-16 12:36   ` Yordan Karadzhov
2021-12-17  2:45     ` Chen, Hongzhan
2021-12-16  3:03 ` [RFC PATCH 0/1] " Steven Rostedt
2021-12-16  7:11   ` Jan Kiszka
2021-12-16 12:29     ` Yordan Karadzhov
2021-12-16 12:36       ` Steven Rostedt
2021-12-16 12:43         ` Yordan Karadzhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).