Received: by 10.223.185.116 with SMTP id b49csp1713029wrg; Sat, 17 Feb 2018 03:48:10 -0800 (PST) X-Google-Smtp-Source: AH8x227gkkbSQc14wN03Qhv7kFQjTtiRLwxNtZfxZMwEIvo2yDrWRDFjqFWn8wBoikkPEnCz1vho X-Received: by 10.99.182.76 with SMTP id v12mr7442792pgt.158.1518868090092; Sat, 17 Feb 2018 03:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518868090; cv=none; d=google.com; s=arc-20160816; b=byCq+uikI2D77OJ/OVttwfkLK53K/ZuRMBkmf23qi2jzHJa0xoWXejzUb8KkkxqBDa Ef6aPkWlLPNhvC9olGpKxaJf30mMFq5T1BsyCdU4JT0v4uYTdwX+5rmurik0J6z7H97a zzAbHqgeDR4rHe04+UopI1tUtHk0jf2WeGfbnumzlvDBpIaraTejc/IJ1gsxut1mYAQO Z3Hhu8kmhtz9zt3o1OLxdvMqIOCYa/wJcslDaSN9pQoJiayTQX/xAWcOo0fH6OaiELFl pnHREcwTZxITzJKLp+DMNgdCqeXN9evdZ29FylcH2Va9gGGnrQP5i2Gj+DWp7m2EIohZ jiQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=6psahBXkn+aNpH4UY26T4dZW+8XnsqgQbTFV5l0vOdQ=; b=qGvbk3Po/Y4JDrEdlM8yAmE33Cnu0K53QWm108TEFM/nrQtbZU+dPQ844jKkwEleKP jId/3kbGkURXF3OB9Wv9KQRVtZKaibTwetiwrsv1QqsFyc7eTP83yJjSFkEdYvM+87si FGvOhENn7kCFf7k3wm0+3wVlbc/E+U1naGiyR8oucxXq9XYtYB4gDY5TM0wVumYXquvz B2lBydUx7hRttrDqSxU7ESF32RAMbZzbAdzLbM0cUKfqgf4m3GbolNseO+kbmcLnXox3 fiAEm2DQOt1A1syusUArCLG4Lik1nMk+5Ly8dQNF3Jg3mXcdl0Uoso7fAZeWhOUbT4tg WCfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c137si5177169pga.513.2018.02.17.03.47.55; Sat, 17 Feb 2018 03:48:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751059AbeBQLqx (ORCPT + 99 others); Sat, 17 Feb 2018 06:46:53 -0500 Received: from terminus.zytor.com ([198.137.202.136]:60773 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750830AbeBQLqw (ORCPT ); Sat, 17 Feb 2018 06:46:52 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1HBaf1J008053; Sat, 17 Feb 2018 03:36:41 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1HBafC0008048; Sat, 17 Feb 2018 03:36:41 -0800 Date: Sat, 17 Feb 2018 03:36:41 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Ravi Bangoria Message-ID: Cc: jolsa@redhat.com, alexander.shishkin@linux.intel.com, namhyung@kernel.org, hpa@zytor.com, tmricht@linux.vnet.ibm.com, tglx@linutronix.de, ravi.bangoria@linux.vnet.ibm.com, mpe@ellerman.id.au, linux-kernel@vger.kernel.org, brueckner@linux.vnet.ibm.com, acme@redhat.com, mingo@kernel.org Reply-To: hpa@zytor.com, tmricht@linux.vnet.ibm.com, namhyung@kernel.org, tglx@linutronix.de, jolsa@redhat.com, alexander.shishkin@linux.intel.com, mpe@ellerman.id.au, mingo@kernel.org, acme@redhat.com, brueckner@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, ravi.bangoria@linux.vnet.ibm.com In-Reply-To: <20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com> References: <20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf trace powerpc: Use generated syscall table Git-Commit-ID: 4281da235e3de91bb8deae44bc6506336ceaa88a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 4281da235e3de91bb8deae44bc6506336ceaa88a Gitweb: https://git.kernel.org/tip/4281da235e3de91bb8deae44bc6506336ceaa88a Author: Ravi Bangoria AuthorDate: Mon, 29 Jan 2018 14:04:17 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Feb 2018 14:55:50 -0300 perf trace powerpc: Use generated syscall table This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86 and s390. Signed-off-by: Ravi Bangoria Cc: Alexander Shishkin Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Michael Ellerman Cc: Namhyung Kim Cc: Thomas Richter Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com [ Do it for ppc32 as well ] Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.config | 2 ++ tools/perf/util/syscalltbl.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 0dfdaa9..577a5d2 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -27,6 +27,8 @@ NO_SYSCALL_TABLE := 1 # Additional ARCH settings for ppc ifeq ($(SRCARCH),powerpc) NO_PERF_REGS := 0 + NO_SYSCALL_TABLE := 0 + CFLAGS += -I$(OUTPUT)arch/powerpc/include/generated LIBUNWIND_LIBS := -lunwind -lunwind-ppc64 endif diff --git a/tools/perf/util/syscalltbl.c b/tools/perf/util/syscalltbl.c index 303bdb8..895122d 100644 --- a/tools/perf/util/syscalltbl.c +++ b/tools/perf/util/syscalltbl.c @@ -30,6 +30,14 @@ static const char **syscalltbl_native = syscalltbl_x86_64; #include const int syscalltbl_native_max_id = SYSCALLTBL_S390_64_MAX_ID; static const char **syscalltbl_native = syscalltbl_s390_64; +#elif defined(__powerpc64__) +#include +const int syscalltbl_native_max_id = SYSCALLTBL_POWERPC_64_MAX_ID; +static const char **syscalltbl_native = syscalltbl_powerpc_64; +#elif defined(__powerpc__) +#include +const int syscalltbl_native_max_id = SYSCALLTBL_POWERPC_32_MAX_ID; +static const char **syscalltbl_native = syscalltbl_powerpc_32; #endif struct syscall {