public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Mathieu Desnoyers <compudj@krystal.dyndns.org>
Cc: Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org, ltt-dev@shafik.org,
	mgreer@mvista.com, mlachwani@mvista.com
Subject: Re: LTTng do_page_fault vs handle_mm_fault instrumentation
Date: Tue, 21 Nov 2006 19:26:02 +0300	[thread overview]
Message-ID: <4563289A.2000702@ru.mvista.com> (raw)
In-Reply-To: <20061121160629.GA6944@Krystal>

Hello.

Mathieu Desnoyers wrote:

> I would like to discuss your suggestion of moving the do_page_fault
> instrumentation to handle_mm_fault. On one side, it helps removing architecture
> dependant instrumentation, but on the other hand :

> 1- We cannot access the struct pt_regs in all cases (there may be an invalid
>    current task struct).
> 2- We cannot distinguish between calls to handle_mm_fault from the page fault
>    handler or from get_user_pages.
> 3- Some people complain about not having enough information about the cause of
>    the page fault (see the forward below).
> 
> So instead of staying between my users who ask for those feature and kernel
> developers who wish to reduce the intrusiveness of instrumentation (which is a
> nice goal : moving the syscall entry/exit instrumentation do do_syscall_trace
> has helped simplifying the instrumentation), I prefer to open the discussion
> about it.

    It seems I've missed the whole story behind this move.
    For me, it was more a question of consistency: if we're trying to trace 
all trap handlers, why not page fault one? So, I just wanted my old LTT 
tracepoints back. :-)

> Ideas/comments are welcome.

> Regards,

> Mathieu

WBR, Sergei

  reply	other threads:[~2006-11-21 16:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-21 16:06 LTTng do_page_fault vs handle_mm_fault instrumentation Mathieu Desnoyers
2006-11-21 16:26 ` Sergei Shtylyov [this message]
2006-11-21 17:03   ` Mathieu Desnoyers
2006-11-21 17:12     ` Sergei Shtylyov

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=4563289A.2000702@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=compudj@krystal.dyndns.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ltt-dev@shafik.org \
    --cc=mgreer@mvista.com \
    --cc=mingo@elte.hu \
    --cc=mlachwani@mvista.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