All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: akpm@linux-foundation.org, Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch-RFC 00/26] LTTng Kernel Trace Thread Flag
Date: Fri, 7 Dec 2007 08:44:26 -0500	[thread overview]
Message-ID: <20071207134426.GA916@Krystal> (raw)
In-Reply-To: <y0mmysnzf2q.fsf@ton.toronto.redhat.com>

* Frank Ch. Eigler (fche@redhat.com) wrote:
> Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> writes:
> 
> > This is an RFC for addition of a new thread flag, TIF_KERNEL_TRACE, to each
> > architecture to activate system-wide system call tracing.
> > [...]
> 
> Instead of creating a new flag, could you overload TIF_SYSCALL_TRACE,
> putting the marker into syscall_trace(), and letting !PT_TRACED cause
> a skip over the ptrace notification logic?
> 
> - FChE

I don't see any PT_TRACED flag in current kernel HEAD ?

Hrm, let's see. If we share TIF_SYSCALL_TRACE with ptrace, we would then
have to figure out how to get this working :

- kernel tracing activated
- ptracing some random processes
- kernel tracing deactivated
- stop ptracing those processes

It means that we would have to keep some state information about the
ptrace status of each process. This is currently kept by
TIF_SYSCALL_TRACE, but since we would be overloading it, it would be
lost when we deactivate kernel tracing. Adding a supplementary field to
the thread_info structure is out of question here : we have to keep it
as small as possible. So where do you propose to keep this information
other than... another thread flag ?

Mathieu


-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

      reply	other threads:[~2007-12-07 13:44 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-06  2:42 [patch-RFC 00/26] LTTng Kernel Trace Thread Flag Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 01/26] LTTng Kernel Trace Thread Flag Alpha Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 02/26] LTTng Kernel Trace Thread Flag ARM Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 03/26] LTTng Kernel Trace Thread Flag AVR32 Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 04/26] LTTng Kernel Trace Thread Flag Blackfin Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 05/26] LTTng Kernel Trace Thread Flag Cris Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 06/26] LTTng Kernel Trace Thread Flag Frv Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 07/26] LTTng Kernel Trace Thread Flag H8300 Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 08/26] LTTng Linux Kernel Trace Thread Flags x86_32 Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 09/26] LTTng Kernel Trace Thread Flag ia64 Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 10/26] LTTng Kernel Trace Thread Flag m32r Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 11/26] LTTng Kernel Trace Thread Flag m68k Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 12/26] LTTng Kernel Trace Thread Flag m68knommu Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 13/26] LTTng Kernel Trace Thread Flag MIPS Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 14/26] LTTng Kernel Trace Thread Flag parisc Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 15/26] LTTng Kernel Trace Thread Flag powerpc Mathieu Desnoyers
2007-12-06  2:42 ` [patch-RFC 16/26] LTTng Kernel Trace Thread Flag s390 Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 17/26] LTTng Kernel Trace Thread Flag SH Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 18/26] LTTng Kernel Trace Thread Flag sh64 Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 19/26] LTTng Kernel Trace Thread Flag sparc Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 20/26] LTTng Kernel Trace Thread Flag sparc64 Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 21/26] LTTng Kernel Trace Thread Flag UML Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 22/26] LTTng Kernel Trace Thread Flag v850 Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 23/26] Prepare x86_64 for TIF_SYSCALL_TRACE async flag set in entry.S Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 24/26] LTTng Linux Kernel Trace Thread Flag x86_64 Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 25/26] LTTng Kernel Trace Thread Flag xtensa Mathieu Desnoyers
2007-12-06  2:43 ` [patch-RFC 26/26] LTTng Kernel Trace Thread Flag API Mathieu Desnoyers
2007-12-06 21:30 ` [patch-RFC 00/26] LTTng Kernel Trace Thread Flag Frank Ch. Eigler
2007-12-07 13:44   ` Mathieu Desnoyers [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=20071207134426.GA916@Krystal \
    --to=mathieu.desnoyers@polymtl.ca \
    --cc=akpm@linux-foundation.org \
    --cc=fche@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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.