public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: David Howells <dhowells@redhat.com>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] syscall latency improvement #1 (253p6)
Date: Sat, 02 Feb 2002 17:07:10 +0100	[thread overview]
Message-ID: <3C5C0EAE.6266F70A@linux-m68k.org> (raw)
In-Reply-To: <9849.1012317950@warthog.cambridge.redhat.com>

Hi,

David Howells wrote:

> +/* this struct must occupy one 32-bit chunk so that is can be read in one go */
> +struct task_work {
> +       __s8    need_resched;
> +       __u8    syscall_trace;  /* count of syscall interceptors */
> +       __u8    sigpending;
> +       __u8    notify_resume;  /* request for notification on
> +                                  userspace execution resumption */
> +} __attribute__((packed));
> +

Did you test whether single stepping over a single syscall works? From
reading the patch/source I can't see how it should, but I haven't tested
it yet. The problem is that syscall tracing is only important at syscall
entry. At syscall exit we have to check whether single stepping is
active. These are two different operations, but I only see two tests
against syscall_trace.
BTW it doesn't work with 2.4, but there is no test for PT_DTRACE at all,
so it's not really surprising.

Second, could we move above structure into e.g. <asm/processor.h>? This
would allow architectures to reorder the bytes, as above is obviously
optimized for little endian machines.

bye, Roman

      reply	other threads:[~2002-02-02 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-29 15:25 [PATCH] syscall latency improvement #1 (253p6) David Howells
2002-02-02 16:07 ` Roman Zippel [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=3C5C0EAE.6266F70A@linux-m68k.org \
    --to=zippel@linux-m68k.org \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox