[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] ftrace & xenomai

I am on vacation this week and next.


Fabien, could you describe what a scheduler switch event looks like?


In trace compass, right click on an event in the events list and select copy to clipboard, pasting the result should look like this


LTTNG

Timestamp    Channel    CPU    Event type    Contents    TID    Prio    PID
16:13:13.326 391 792    ss_2    2    sched_switch    prev_comm=swapper/2, prev_tid=0, prev_prio=20, prev_state=0, next_comm=Xorg, next_tid=976, next_prio=20, context._tid=0, context._pid=0    0    20    

or

FTrace

.

Timestamp    CPU    Event type    Contents    PID
00:36:01.624 114 000    2    sched_switch    prev_pid=12958, prev_prio=120, next_pid=8, name=sched_switch, prev_comm=sh, prev_state=1, next_comm=rcu_preempt, ts=365761624114000, next_prio=120    12958


pretty similar ð

if the xenomai tracepoint is similar, we can get it to work pretty easily.


 


From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Michel Dagenais <michel.dagenais@xxxxxxxxxx>
Sent: Tuesday, August 14, 2018 11:56:12 AM
To: tracecompass developer discussions
Subject: Re: [tracecompass-dev] ftrace & xenomai
 

Matthew is on vacation for this week.

Please Genevieve could you confirm this can help?

GeneviÃve is away as well.

My question rather is related to the "Control Flow"-Analysis for the 

Linux Kernel. In order to also provide that analysis for xenomai-threads
the events created by xenomai need to be handled correctly.
Indeed, the Control Flow View is based on the state of threads. When the trace is read, specific events (Linux scheduling events) are recognized as changing the state of the threads. This is achieved in the "state provider" which can be defined either with Java code or with a declarative XML file.
So, to be more precise, my question is: Is the "Control Flow"-Analysis
for the Linux Kernel able to handle also xenomai-threads?
You need to define how the related Xenomai events change the threads state. You also ideally need to insure that Xenomai threads creation and deletion are handled properly.

This is described in the Data Driven Analysis section of the manual, (defining XML components, defining an XML state provider...).



Ciao
Fabian


> BR,
>
> Matthew
>
> ------------------------------------------------------------------------
> *From:* tracecompass-dev-bounces@xxxxxxxxxxx
> <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Scheler, Fabian (CT
> RDA IOT SES-DE) <Fabian.Scheler@xxxxxxxxxxx>
> *Sent:* Thursday, August 9, 2018 6:56:54 AM
> *To:* tracecompass-dev@xxxxxxxxxxx
> *Subject:* [tracecompass-dev] ftrace & xenomai
> Hi Trace Compassers!
>
> Is there xenomai-support available in the ftrace-support? If not, can I
> add this on my own? How much effort would this cause?
>
> Ciao
> Fabian
> --
> With best regards,
> Dr. Fabian Scheler
>
> Siemens AG
> Corporate Technology
> Research and Development for Digitalization and Automation
> CT RDA IOT SES-DE
> Guenther-Scharowsky-Str. 1
> 91058 Erlangen, Germany
> Tel.: +49 1522 1702973
> Mobile: +49 1522 1702973
> mailto:fabian.scheler@xxxxxxxxxxx
>
> www.siemens.com/ingenuityforlife <http://www.siemens.com/ingenuityforlife>
>
> Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard
> Cromme; Managing Board: Joe Kaeser, Chairman, President and Chief
> Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Janina
> Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Registered offices:
> Berlin and Munich, Germany; Commercial registries: Berlin
> Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322
>
>
> _______________________________________________
> tracecompass-dev mailing list
> tracecompass-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tracecompass-dev
>

--
With best regards,
Dr. Fabian Scheler

Siemens AG
Corporate Technology
Research and Development for Digitalization and Automation
CT RDA IOT SES-DE
Guenther-Scharowsky-Str. 1
91058 Erlangen, Germany
Tel.: +49 1522 1702973
Mobile: +49 1522 1702973
mailto:fabian.scheler@xxxxxxxxxxx

www.siemens.com/ingenuityforlife

Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard
Cromme; Managing Board: Joe Kaeser, Chairman, President and Chief
Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Janina
Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Registered offices:
Berlin and Munich, Germany; Commercial registries: Berlin
Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322


_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tracecompass-dev