[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0811171047520.2919@gandalf.stny.rr.com>
Date: Mon, 17 Nov 2008 10:51:25 -0500 (EST)
From: Steven Rostedt <rostedt@...dmis.org>
To: Paul Mackerras <paulus@...ba.org>
cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
David Miller <davem@...emloft.net>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Pekka Paalanen <pq@....fi>, linuxppc-dev@...abs.org,
Rusty Russell <rusty@...tcorp.com.au>,
Paul Mundt <lethal@...ux-sh.org>,
Steven Rostedt <srostedt@...hat.com>
Subject: Re: [PATCH 4/7] ftrace, PPC: use probe_kernel API to modify code
On Mon, 17 Nov 2008, Paul Mackerras wrote:
> Steven Rostedt writes:
>
> > Impact: use cleaner probe_kernel API over assembly
> >
> > Using probe_kernel_read/write interface is a much cleaner approach
> > than the current assembly version.
>
> Possibly naive question: how is it possible for the accesses to the
> instructions to fault, given that we are called through kstop_machine
> (according to the comment) and nothing else should be happening?
Actually, only start up and shutdown of the tracer goes through
kstop_machine. With the new code, it can happen before SMP starts (in
init/main.c) or on the module itself, before the module loads. But that's
not why we do the probe_kernel_* calls.
The reason for probe_kernel_ is because ftrace is very intrusive. Ingo and
I have been making ftrace very paranoid about anything it does. It does
not trust itself to be correct. If anything were to fail, it will warn and
shut itself down peacefully. So far, I have not seen these warnings, but
this is part of the robustness features that have been added since 2.6.27.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists