From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754310AbZISFjb (ORCPT ); Sat, 19 Sep 2009 01:39:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752203AbZISFj3 (ORCPT ); Sat, 19 Sep 2009 01:39:29 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:53950 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585AbZISFjV (ORCPT ); Sat, 19 Sep 2009 01:39:21 -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=c5gInV4He4uHfcRiqL8imQulgesHmgJAwdHX+9ONcUlQTnmA+M6Ppr9YWIBbAzeqsP cL17LoMUWLzEXENziZnXlV0j6Y3F+vVk2JUKJTom1OdC7HBDMbHRhitXePCwp1gON35H MBlfeSEoD0vptrBox9Tb4cQXBWgDJkSjhkG/0= 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] tracing: Document HAVE_FTRACE_SYSCALLS needs Date: Sat, 19 Sep 2009 07:39:17 +0200 Message-Id: <1253338757-5918-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. 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_MCOUNT_RECORD -- 1.6.2.3