From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751923AbZH0Rnv (ORCPT ); Thu, 27 Aug 2009 13:43:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751845AbZH0Rnt (ORCPT ); Thu, 27 Aug 2009 13:43:49 -0400 Received: from mail-ew0-f206.google.com ([209.85.219.206]:51769 "EHLO mail-ew0-f206.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751824AbZH0Rnr (ORCPT ); Thu, 27 Aug 2009 13:43:47 -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=wk6mARTFDJMx1nULP3koF9Sy5Su6UlD1M+CIIPMg4/xFIKX6mg8H1yX4lsnXT0tQ7R LydZamJs/QEE4zzR9GfvGgtcfj/suAfLZQh1ETujaaudFVUW1IrqZwpK4OuyO3/HF1vs N578un2lgOsuDavVKBbziib2pELuckxYtcDeQ= From: Frederic Weisbecker To: Ingo Molnar Cc: LKML , Jason Baron , Paul Mundt , Frederic Weisbecker , Ingo Molnar , Lai Jiangshan , Steven Rostedt , Peter Zijlstra , Mathieu Desnoyers , Jiaying Zhang , Martin Bligh , Li Zefan , Josh Stone , Thomas Gleixner , "H. Peter Anwin" , Hendrik Brueckner , Heiko Carstens Subject: [PATCH 4/7] tracing: Define NR_syscalls for x86 (32) Date: Thu, 27 Aug 2009 19:43:32 +0200 Message-Id: <1251395015-6329-5-git-send-email-fweisbec@gmail.com> X-Mailer: git-send-email 1.6.2.3 In-Reply-To: <1251395015-6329-1-git-send-email-fweisbec@gmail.com> References: <1251395015-6329-1-git-send-email-fweisbec@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason Baron Add a NR_syscalls #define for x86. This is used in the syscall events tracing code. Todo: make it dynamic like x86_64. NR_syscalls is the usual name used to determine the number of syscalls supported by the current arch. We want to unify the use of this number across archs that support the syscall tracing. This also prepare to move some of the arch code to core code in the syscall tracing area. Signed-off-by: Jason Baron Cc: Paul Mundt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Lai Jiangshan Cc: Steven Rostedt Cc: Peter Zijlstra Cc: Mathieu Desnoyers Cc: Jiaying Zhang Cc: Martin Bligh Cc: Li Zefan Cc: Josh Stone Cc: Thomas Gleixner Cc: H. Peter Anwin Cc: Hendrik Brueckner Cc: Heiko Carstens LKML-Reference: <0f33c0f96d198fccc3ddd9ff7f5334ff5cb42706.1251146513.git.jbaron@redhat.com> Signed-off-by: Frederic Weisbecker --- arch/x86/include/asm/unistd_32.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/unistd_32.h b/arch/x86/include/asm/unistd_32.h index 732a307..8deaada 100644 --- a/arch/x86/include/asm/unistd_32.h +++ b/arch/x86/include/asm/unistd_32.h @@ -345,6 +345,8 @@ #ifdef __KERNEL__ +#define NR_syscalls 337 + #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_OLD_STAT -- 1.6.2.3