From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756836AbZISJJH (ORCPT ); Sat, 19 Sep 2009 05:09:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755902AbZISJJE (ORCPT ); Sat, 19 Sep 2009 05:09:04 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:54606 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756730AbZISJJB (ORCPT ); Sat, 19 Sep 2009 05:09:01 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=T60yS0XEoitl28yGlpOzx9qWMzPeyvlwxpKRMy0gCZWwfyRcjQVkiCw9AikTyZfddb pI/t8yAt/Gx/gxeGFAWFh/x5gyBLOEoVrKBrka3gCwbuySqLh5Q+Xh1cviGZfRyyp3ri NTAXcHX6Del9U27GV8t0VaFyZibTIc7E49R/g= From: Frederic Weisbecker To: Ingo Molnar Cc: LKML , Frederic Weisbecker , Ingo Molnar , Steven Rostedt , Li Zefan , Masami Hiramatsu , Jason Baron , Lai Jiangshan , Heiko Carstens , Martin Schwidefsky , Paul Mundt Subject: [PATCH 2/2 v2] tracing: Document HAVE_SYSCALL_TRACEPOINTS needs Date: Sat, 19 Sep 2009 11:08:58 +0200 Message-Id: <1253351338-5301-3-git-send-email-fweisbec@gmail.com> X-Mailer: git-send-email 1.6.2.3 In-Reply-To: <1253338757-5918-1-git-send-email-fweisbec@gmail.com> References: <1253338757-5918-1-git-send-email-fweisbec@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the arch needed requirements to get the support for syscalls tracing. v2: HAVE_FTRACE_SYSCALLS have been changed to HAVE_SYSCALL_TRACEPOINTS recently. Update this config name in the documentation then. 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 | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/trace/ftrace-design.txt b/Documentation/trace/ftrace-design.txt index 7003e10..641a1ef 100644 --- a/Documentation/trace/ftrace-design.txt +++ b/Documentation/trace/ftrace-design.txt @@ -213,10 +213,19 @@ If you can't trace NMI functions, then skip this option.
-HAVE_FTRACE_SYSCALLS +HAVE_SYSCALL_TRACEPOINTS --------------------- -
+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_SYSCALL_TRACEPOINTS. HAVE_FTRACE_MCOUNT_RECORD -- 1.6.2.3