On 02.03.22 03:57, Hongzhan Chen wrote: > For Xenomai-cobalt enabled system, cobalt_switch_context means > that there is schedule and 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 according to > cobalt_switch_context events. > 4. clickable cobalt_switch_context plugin shapes. > > Signed-off-by: Hongzhan Chen <hongzhan.c...@intel.com> > --- > tracing/Makefile.am | 6 + > tracing/kernelshark/CobaltSwitchEvents.cpp | 156 ++++++++++++++++ > tracing/kernelshark/Makefile.am | 18 ++ > tracing/kernelshark/README | 75 ++++++++ > .../xenomai_cobalt_switch_events.c | 174 ++++++++++++++++++ > .../xenomai_cobalt_switch_events.h | 58 ++++++ > 6 files changed, 487 insertions(+) > create mode 100644 tracing/Makefile.am > create mode 100644 tracing/kernelshark/CobaltSwitchEvents.cpp > create mode 100644 tracing/kernelshark/Makefile.am > create mode 100644 tracing/kernelshark/README > create mode 100644 tracing/kernelshark/xenomai_cobalt_switch_events.c > create mode 100644 tracing/kernelshark/xenomai_cobalt_switch_events.h >
... > diff --git a/tracing/kernelshark/Makefile.am b/tracing/kernelshark/Makefile.am > new file mode 100644 > index 000000000..17c4ff217 > --- /dev/null > +++ b/tracing/kernelshark/Makefile.am > @@ -0,0 +1,18 @@ > + > +lib_LTLIBRARIES = libplugin_xenomai_cobalt_switch_events.la > + > +KS_INCLUDS ?= /usr/local/include/kernelshark > +TRACECMD_INCLUDS ?= /usr/local/include/trace-cmd > +TRACEFS_INCLUDS ?= /usr/local/include/tracefs > +TRACEEVENR_INCLUDS ?= /usr/local/include/traceevent configure.ac needs to gain a way to make this configurable (kernelshark and libtraceevent folders). And then you can also drop these defaults. Jan -- Siemens AG, Technology Competence Center Embedded Linux