From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Re: [PATCH] kgdb/x86 over I-pipe
Date: Wed, 07 Jun 2006 18:50:10 +0200 [thread overview]
Message-ID: <448703C2.8030601@domain.hid> (raw)
In-Reply-To: <4486FCA3.2070501@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2592 bytes --]
Philippe Gerum wrote:
>
> Hi Jan,
>
> Based on your previous work, here is a set of patches coupling KGDB and
> the I-pipe. Basically, I've attempted to shrink the extra patches needed
> against the original KGDB + I-pipe ones to the bare minimum. This has
> been obtained by having the I-pipe provide ipipe_current_safe(), and
> drastically reduce the amount of fiddling with smp_processor_id().
>
> The key difference with the former implementation is that a domain (e.g.
> Xenomai) is now expected to tell the I-pipe when it's switching to a
> non-Linux stack, and the I-pipe makes good use of this information to
> return the proper "current" value when asked to through
> ipipe_safe_current() from the KGDB code. The issue of swapping
This looks nice.
> smp_processor_id() with ipipe_processor_id() has been addressed the hard
> way: smp_processor_id() is simply defined as ipipe_processor_id() when
> CONFIG_IPIPE and CONFIG_KGDB are both enabled in include/linux/smp.h.
> This approach was actually used during the old Adeos times when pipeline
> domain had their own separate stack. I take for granted that the CPU
> penalty taken in doing this is perfectly acceptable, since well, we are
> debugging after all.
There is only one drawback: we will not be able to debug
smp_processor_id-related bugs in ipipe/Xenomai anymore...
>
> Aside of the small patches attached, you will need the latest I-pipe
> 1.3-05 patch for x86, adding the foreign stack notifier and the
> ipipe_safe_current() support:
> http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.16-i386-1.3-05.patch
>
>
> Patches should be applied in this order on a vanilla 2.6.16 kernel:
>
> - KGDB 2.4 patch series over 2.6.16 (quilt)
> - pre-kgdb-ipipe-i386.patch
> - adeos-ipipe-2.6.16-i386-1.3-05.patch
> - kgdb-ipipe.patch
> - post-kgdb-ipipe-i386.patch
>
> Xenomai's trunk/ should be used. Older code won't work and likely crash
> since the I-pipe would not be notified about foreign stack switches.
>
> Now the surprise: I did not test this stuff, I mean, at all. Eh. :o)
That's fair: leave the head banging while debugging debuggers (*) up to
me. ;)
Will try to let this fly, likely not before the weekend.
BTW, there is one pending issue of gcc-4.1 which popped up under kgdb,
see [1] (also for a workaround).
Jan
(*) Actually, that's feasible: kgdb-patched kernel inside qemu - already
done this (to find [1]), it's just a bit sloooow.
[1]http://sourceforge.net/mailarchive/forum.php?thread_id=10452132&forum_id=5557
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-06-07 16:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-22 19:06 [Xenomai-core] [PATCH] kgdb-ipipe for 2.6.16 Jan Kiszka
2006-06-01 8:00 ` Jan Kiszka
2006-06-07 16:19 ` [Xenomai-core] [PATCH] kgdb/x86 over I-pipe Philippe Gerum
2006-06-07 16:50 ` Jan Kiszka [this message]
2006-06-08 8:24 ` [Xenomai-core] " Philippe Gerum
2006-06-10 22:19 ` Jan Kiszka
2006-06-12 8:27 ` Philippe Gerum
2006-06-12 8:40 ` Jan Kiszka
2006-06-12 9:27 ` Philippe Gerum
2006-06-15 12:42 ` Jan Kiszka
2006-06-15 14:24 ` Philippe Gerum
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=448703C2.8030601@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=rpm@xenomai.org \
--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.