All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] xeno_panic_trace-v2
Date: Sat, 04 Feb 2006 16:29:21 +0100	[thread overview]
Message-ID: <43E4C851.9070308@domain.hid> (raw)
In-Reply-To: <43E4BEF6.7040502@domain.hid>

Jan Kiszka wrote:
> Hi Philippe,
> 
> now I finally found the bug in my first version of this patch: some UVM
> skin builds complained about an unknown symbol. Fixed now in this
> version, please apply.

Applied, thanks.

> 
> Jan
> 
> 
> ------------------------------------------------------------------------
> 
> Index: include/asm-uvm/system.h
> ===================================================================
> --- include/asm-uvm/system.h	(Revision 528)
> +++ include/asm-uvm/system.h	(Arbeitskopie)
> @@ -767,4 +767,7 @@
>  #define xnarch_post_graph(obj,state)
>  #define xnarch_post_graph_if(obj,state,cond)
>  
> +/* Ipipe-tracer */
> +#define ipipe_trace_panic_freeze()
> +
>  #endif /* !_XENO_ASM_UVM_SYSTEM_H */
> Index: include/asm-generic/system.h
> ===================================================================
> --- include/asm-generic/system.h	(Revision 528)
> +++ include/asm-generic/system.h	(Arbeitskopie)
> @@ -39,6 +39,13 @@
>  #include <asm/xenomai/atomic.h>
>  #include <nucleus/shadow.h>
>  
> +#ifdef CONFIG_IPIPE_TRACE
> +#include <linux/ipipe_trace.h>
> +#else /* !CONFIG_IPIPE_TRACE */
> +#define ipipe_trace_panic_freeze()
> +#define ipipe_trace_panic_dump()
> +#endif /* CONFIG_IPIPE_TRACE */
> +
>  #define module_param_value(parm) (parm)
>  
>  typedef unsigned long spl_t;
> @@ -185,6 +192,7 @@
>      rthal_emergency_console(); \
>      xnarch_logerr("fatal: %s\n",emsg); \
>      show_stack(NULL,NULL);			\
> +    ipipe_trace_panic_dump();			\
>      for (;;) cpu_relax();			\
>  } while(0)
>  
> Index: include/nucleus/types.h
> ===================================================================
> --- include/nucleus/types.h	(Revision 528)
> +++ include/nucleus/types.h	(Arbeitskopie)
> @@ -107,8 +107,10 @@
>  
>  #define xnpod_fatal(format,args...) \
>  do { \
> -   const char *panic = xnpod_fatal_helper(format,##args); \
> -   xnarch_halt(panic); \
> +    const char *panic; \
> +    ipipe_trace_panic_freeze(); \
> +    panic = xnpod_fatal_helper(format,##args); \
> +    xnarch_halt(panic); \
>  } while (0)
>  
>  #if defined(__XENO_SIM__) || defined(__XENO_UVM__)
> Index: ksrc/nucleus/shadow.c
> ===================================================================
> --- ksrc/nucleus/shadow.c	(Revision 528)
> +++ ksrc/nucleus/shadow.c	(Arbeitskopie)
> @@ -1563,6 +1563,7 @@
>  	    testbits(status,XNSTARTED) &&
>  	    testbits(status,XNPEND))
>  	    {
> +	    ipipe_trace_panic_freeze();
>  	    show_stack(xnthread_user_task(threadin),NULL);
>              xnpod_fatal("blocked thread %s[%d] rescheduled?! (status=0x%lx, sig=%d, prev=%s[%d])",
>  			threadin->name,
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core


-- 

Philippe.


      reply	other threads:[~2006-02-04 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-04 14:49 [Xenomai-core] xeno_panic_trace-v2 Jan Kiszka
2006-02-04 15:29 ` Philippe Gerum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43E4C851.9070308@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.