From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088AbZISHWw (ORCPT ); Sat, 19 Sep 2009 03:22:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753314AbZISHWv (ORCPT ); Sat, 19 Sep 2009 03:22:51 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:64585 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239AbZISHWu (ORCPT ); Sat, 19 Sep 2009 03:22:50 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=MAiOooOkODMI21xOOelb4m+wGjGZ5xDbL6fdM/LA2+Ypg3ob63zjm4AhqjnDJaylW0 PUPH1hwsIG/JqUTavIp0+8XEZ3BeZLD2xuN9IN9DsG4xLxmDHwtOqHzfTDAWdGc2iNqN GRt6C9IkVbmTAURbZ2ntAQCbRXSBFRA8qzKt4= Date: Sat, 19 Sep 2009 09:22:50 +0200 From: Frederic Weisbecker To: Ingo Molnar Cc: LKML , Steven Rostedt , Li Zefan , Masami Hiramatsu , Jason Baron , Lai Jiangshan , Heiko Carstens , Martin Schwidefsky , Paul Mundt Subject: Re: [PATCH 2/2] tracing: Document HAVE_FTRACE_SYSCALLS needs Message-ID: <20090919072249.GA5226@nowhere> References: <1253338757-5918-1-git-send-email-fweisbec@gmail.com> <1253338757-5918-3-git-send-email-fweisbec@gmail.com> <20090919071712.GB15292@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090919071712.GB15292@elte.hu> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 19, 2009 at 09:17:12AM +0200, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > Document the arch needed requirements to get the support for syscalls > > tracing. > > > > Signed-off-by: Frederic Weisbecker > > Cc: Ingo Molnar > > Cc: Steven Rostedt > > Cc: Li Zefan > > Cc: Masami Hiramatsu > > Cc: Jason Baron > > Cc: Lai Jiangshan > > Cc: Heiko Carstens > > Cc: Martin Schwidefsky > > Cc: Paul Mundt > > --- > > Documentation/trace/ftrace-design.txt | 11 ++++++++++- > > 1 files changed, 10 insertions(+), 1 deletions(-) > > > > diff --git a/Documentation/trace/ftrace-design.txt b/Documentation/trace/ftrace-design.txt > > index 7003e10..04ab61c 100644 > > --- a/Documentation/trace/ftrace-design.txt > > +++ b/Documentation/trace/ftrace-design.txt > > @@ -216,7 +216,16 @@ If you can't trace NMI functions, then skip this option. > > HAVE_FTRACE_SYSCALLS > > --------------------- > > > > -
> > +You need very few things to get the syscalls tracing in an arch. > > + > > +- Have a NR_syscalls variable in that provides the number > > + of syscalls supported by the arch. > > +- Implement arch_syscall_addr() that resolves a syscall address from a > > + syscall number. > > +- Support the TIF_SYSCALL_TRACEPOINT thread flags > > +- Put the trace_sys_enter() and trace_sys_exit() tracepoints calls from ptrace > > + in the ptrace syscalls tracing path. > > +- Tag this arch as HAVE_FTRACE_SYSCALLS. > > HAVE_FTRACE_SYSCALLS is not actually used anywhere. > > Ingo Ah, that has been renamed HAVE_SYSCALL_TRACEPOINTS recently. What do you prefer? A delta patch or a rebase? Thanks.