Hi Gilles,

here is the new trace.

Il 06/03/2012 13:09, Gilles Chanteperdrix ha scritto:
On 03/06/2012 11:14 AM, Roberto Bielli wrote:
Hi,

here is the trace.
Please try to capture the xntimer_next_local_shot which happens before
the bug to see if the timer ticks when expected.

Also note that if we are going through __ipipe_preempt_schedule_irq, it
means that the task eating the cpu is running in secondary mode. So, you
should use T_WARNSW to see.

Please keep the discussion on the mailing list. 



--
+------------------------------------------------------------------------------------------------+
                                                        
Roberto Bielli
Sviluppo Software                                       
Axel S.r.l.                                     
                                                        
Via Del Cannino, 3                              
21020 Crosio Della Valle                        
Varese - Italy                                  
                                                        
Telefono: +39 0332 949600                       
Fax:      +39 0332 969315                       
                                                        
E-mail:   roberto.bie...@axelsw.it      
Web Site: www.axelsw.it

+------------------------------------------------------------------------------------------------+

Si precisa che le informazioni contenute in questo messaggio sono riservate e 
ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di 
eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da 
Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo 
autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o 
cancellazione dei Vostri dati: i...@axelsw.it

This e-mail and any attachments is confidential and may contain privileged 
information
intended for the addressee(s) only. Dissemination, copying, printing or use by 
anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.                     
                                                        
+------------------------------------------------------------------------------------------------+

I-pipe worst-case tracing service on 2.6.31/ipipe-1.16-02
------------------------------------------------------------
CPU: 0, Begin: 413559887374 cycles, Trace Points: 27 (-10/+1), Length: 81 us
Calibrated minimum trace-point overhead: 1.029 us

 +----- Hard IRQs ('|': locked)
 |+---- <unused>
 ||+--- <unused>
 |||+-- Xenomai
 ||||+- Linux ('*': domain stalled, '+': current, '#': current+stalled)
 |||||                        +---------- Delay flag ('+': > 1 us, '!': > 10 us)
 |||||                        |        +- NMI noise ('N')
 |||||                        |        |
      Type    User Val.   Time    Delay  Function (Parent)
 |   +begin   0x80000001  -126    2.313  __up_read+0x30 (up_read+0x18)
 |   #end     0x80000001  -124    1.880  __up_read+0x50 (up_read+0x18)
     #func                -122    1.850  ipipe_check_context+0x10 
(__up_read+0x5c)
     #func                -120    1.522  __ipipe_restore_root+0x10 
(__up_read+0x130)
     #func                -119    1.149  __ipipe_unstall_root+0x10 
(__ipipe_restore_root+0x94)
 |   #begin   0x80000000  -118    1.597  __ipipe_unstall_root+0x34 
(__ipipe_restore_root+0x94)
 |   +end     0x80000000  -116    1.432  __ipipe_unstall_root+0x98 
(__ipipe_restore_root+0x94)
     +func                -115    2.970  ipipe_check_context+0x10 
(__up_read+0x138)
     +func                -112  107.507  __ipipe_check_root+0x10 
(ret_from_exception+0x4)
 |   +func                  -4    4.656  __ipipe_grab_irq+0x10 (__irq_usr+0x70)
>|   +begin   0xffffffff     0+   2.462  __ipipe_grab_irq+0x5c (__irq_usr+0x70)
:|   +func                   2+   3.626  __ipipe_handle_irq+0x14 
(__ipipe_grab_irq+0x68)
:|   +func                   6+   2.104  __ipipe_ack_timerirq+0x10 
(__ipipe_handle_irq+0x9c)
:|   +func                   8+   2.805  __ipipe_ack_level_irq+0x10 
(__ipipe_ack_timerirq+0x24)
:|   +func                  11+   1.776  mxc_mask_irq+0x10 
(__ipipe_ack_level_irq+0x3c)
:|   +func                  12+   1.686  mxc_mask_irq+0x10 
(__ipipe_ack_level_irq+0x54)
:|   +func                  14+   1.507  __ipipe_mach_acktimer+0x10 
(__ipipe_ack_timerirq+0x28)
:|   +func                  15+   1.611  __ipipe_end_level_irq+0x10 
(__ipipe_ack_timerirq+0x38)
:|   +func                  17+   2.253  mxc_unmask_irq+0x10 
(__ipipe_end_level_irq+0x28)
:|   +func                  19+   2.283  __ipipe_dispatch_wired+0x10 
(__ipipe_handle_irq+0xa8)
:|   +func                  22+   2.194  __ipipe_dispatch_wired_nocheck+0x10 
(__ipipe_dispatch_wired+0x84)
:|  # func                  24+   2.776  xnintr_clock_handler+0x10 
(__ipipe_dispatch_wired_nocheck+0x68)
:|  # func                  27+   5.388  xntimer_tick_aperiodic+0x14 
(xnintr_clock_handler+0x44)
:|  # func                  32+   2.313  xnthread_periodic_handler+0x10 
(xntimer_tick_aperiodic+0xa8)
:|  # func                  34+   4.029  xnpod_resume_thread+0x10 
(xnthread_periodic_handler+0x2c)
:|  # [ 1411] task2ms 99    38+   8.686  xnpod_resume_thread+0x6c 
(xnthread_periodic_handler+0x2c)
:|  # func                  47+   1.656  xnthread_timeout_handler+0x10 
(xntimer_tick_aperiodic+0xa8)
:|  # func                  49+   2.238  xnpod_resume_thread+0x10 
(xnthread_timeout_handler+0x34)
:|  # [ 1412] taskPrin 1    51+   2.477  xnpod_resume_thread+0x6c 
(xnthread_timeout_handler+0x34)
:|  # func                  53+   3.880  xntimer_next_local_shot+0x10 
(xntimer_tick_aperiodic+0x258)
:|  # event   tick@1969     57+   2.238  xntimer_next_local_shot+0xcc 
(xntimer_tick_aperiodic+0x258)
:|  # func                  60+   4.089  __ipipe_mach_set_dec+0x10 
(xntimer_next_local_shot+0x110)
:|  # func                  64+   3.134  __xnpod_schedule+0x14 
(xnintr_clock_handler+0xcc)
:|  # [ 1413] cat     -1    67+   2.432  __xnpod_schedule+0x98 
(xnintr_clock_handler+0xcc)
:|  # func                  69+   9.014  xnsched_pick_next+0x10 
(__xnpod_schedule+0x10c)
:|  # func                  78+   2.895  ipipe_unstall_pipeline_head+0x10 
(__xnpod_schedule+0x2f8)
<|  + end     0x80000000    81    2.805  ipipe_unstall_pipeline_head+0x8c 
(__xnpod_schedule+0x2f8)
 |  + begin   0x80000001    84    0.000  __xnpod_schedule+0x398 
(xnintr_clock_handler+0xcc)
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to