From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [RFC] latency tracing
Date: Mon, 28 Nov 2005 23:28:02 +0100 [thread overview]
Message-ID: <438B8472.50906@domain.hid> (raw)
In-Reply-To: <438B6F43.4060104@domain.hid>
Jan Kiszka wrote:
> Hi,
>
> as I'm lazy, er busy, I'm pushing this idea into public instead of
> hacking a patch on my own: wouldn't it be nice to have something like
> the latency backtrace of PREEMPT_RT also in Xenomai?
Yes; we would had saved a lot of time with a precise debug
instrumentation in place in the early fusion days. It's a lesson for the
future.
Even when the core
> is once optimised ;), there can still be drivers with long IRQ locks
> nuking the WCET.
>
> I saw that there is already something for SMP spinlock debugging. Is it
> a lot of work to extend this to UP and maybe even all IRQ-off locks?
AFAICS, it's basically a matter of decoupling CONFIG_SMP and
CONFIG_XENO_SPINLOCK_DEBUG, so that we'd allow a dummy spinlock to exist
even in UP, just to carry on with the statistics collection.
Did
> someone already look at the backtrace implementation of PREEMPT_RT in
> details?
There are different levels of support for this, but basically, mcount()
support has been crafted for the kernel so that gcc can be asked to
insert prologue/epilogue calls in every routine when -pg is passed.
Additionally, a global trace function keeps a copy of internal timings
and callers %eip when traversed.
Is is complicated to port?
mcount() support should be fairly manageable to port.
Does it require some changes at
> ADEOS level?
>
Don't think so. gcc would do the job for the whole kernel anyway using
mcount(), and trace calls could be spreaded as needed otherwise.
> Jan
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
--
Philippe.
prev parent reply other threads:[~2005-11-28 22:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-28 20:57 [Xenomai-core] [RFC] latency tracing Jan Kiszka
2005-11-28 22:28 ` 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=438B8472.50906@domain.hid \
--to=rpm@xenomai.org \
--cc=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.