All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai-core@domain.hid
Subject: Re: [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits
Date: Fri, 09 May 2008 11:44:09 +0200	[thread overview]
Message-ID: <48241CE9.8070605@domain.hid> (raw)
In-Reply-To: <48241C06.4040105@domain.hid>

Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> On Fri, May 9, 2008 at 11:29 AM, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>>> +       if (xnthread_test_info(thread, XNDEBUG))
>>> +               unlock_timers();
>>> +
>> Will this work if several threads are currently being debugged ?
> 
> Not better or worse than with the current code. The whole approach is
> not fixed by this patch, just some collateral damage is reduced.
> 
> Well, maybe some counter should be used to track the number of XNDEBUG
> bits in the system and unfreeze the timers when that becomes zero. Will
> look into this.

Correction: that counter already exists in nkpod->timerlck. So it should
work even if other threads still have XNDEBUG set.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


  reply	other threads:[~2008-05-09  9:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09  9:29 [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits Jan Kiszka
2008-05-09  9:35 ` Gilles Chanteperdrix
2008-05-09  9:40   ` Jan Kiszka
2008-05-09  9:44     ` Jan Kiszka [this message]
2008-05-09  9:47   ` Philippe Gerum
2008-05-09  9:44 ` Philippe Gerum
2008-05-09  9:53   ` Gilles Chanteperdrix
2008-05-09 10:06     ` Philippe Gerum
2008-05-09 12:27       ` Gilles Chanteperdrix

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=48241CE9.8070605@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Xenomai-core@domain.hid \
    --cc=gilles.chanteperdrix@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.