Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbYKQPvi (ORCPT ); Mon, 17 Nov 2008 10:51:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752020AbYKQPv2 (ORCPT ); Mon, 17 Nov 2008 10:51:28 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:46514 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbYKQPv1 (ORCPT ); Mon, 17 Nov 2008 10:51:27 -0500 Date: Mon, 17 Nov 2008 10:51:25 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Paul Mackerras cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , David Miller , Benjamin Herrenschmidt , Frederic Weisbecker , Pekka Paalanen , linuxppc-dev@ozlabs.org, Rusty Russell , Paul Mundt , Steven Rostedt Subject: Re: [PATCH 4/7] ftrace, PPC: use probe_kernel API to modify code In-Reply-To: <18720.63178.864933.911090@drongo.ozlabs.ibm.com> Message-ID: References: <20081116212428.938752312@goodmis.org> <20081116212515.728019601@goodmis.org> <18720.63178.864933.911090@drongo.ozlabs.ibm.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1339 Lines: 32 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/