Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1220774imm; Wed, 25 Jul 2018 13:52:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpex3kDgszc6xShmSRsz2g8gHjL+fOVuJKOg09tGAMNin94ukUvsvPlPOP/Dy731AqHc0MOH X-Received: by 2002:a63:c20:: with SMTP id b32-v6mr21491952pgl.400.1532551924555; Wed, 25 Jul 2018 13:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532551924; cv=none; d=google.com; s=arc-20160816; b=cP1pOv9Ke1muBfP/LuEe8exRrnxoheDDTPf5qHsPfivqkWySGoDACFDde6mXM/yHHh 3Qq1MEBcBz7H/+Ctzx5GIlQtUbKRMPPc0fMppdB8yjcTJTjgPWzN4AbmPGiBrq/QnP7q lJpG2jTE51nVTHqH+mOky7IWzNRC96qajkmNLhwwkPEHRg0ic+2zBS/0aulJvB5IGQYV D5Sr0UvufMocHSq2p+o+jgq4ksloXGLdkTPLAPtjzzOcDB6S3Caa7jHjMbKCFjeKwwWI kLbrQKYM7klcVatMgDGwMJ6hNqZrcXQJtTGmr6S0xzgVZPr+NplzefNxwxa8B4OALNAl z2mQ== 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=2h5liYk0OkCkhiPxzR/MReeYEclBxV+EWk1hgRXPPvs=; b=isDa5iSgqgDlaMwV4J5WyWkbFUEGE8F4BHj9aLcgglzoC8AbOY2UZb7YVrj9BDwJ7j Dd3nnX/lhjI1ZcaLEAkbVDWQzqNGszamXwBuBRNIEni8bfJyqradRj7cdvZTWqhQsPnr VhUCnYfWa/jE8bMhXs8HLc6PTf83Zb5mY+dVdvScye6dlUQhGzvXgmw6dC48Ms0v5uWH ebc6HsZSPEkJYkz/QuY7iBmXKnWdk4ve1malpC7FhQMb3AIBxZwTFxitam7gx6Vw1a2L J5o8euqQzUP0TfY3uVh7pUAtjwst5GMojflAhLwuf1QGBV3KsuUxenpcpsXdwom5YDHy qYnQ== 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 r23-v6si15450374pgb.623.2018.07.25.13.51.49; Wed, 25 Jul 2018 13:52:04 -0700 (PDT) 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 S1731353AbeGYWDq (ORCPT + 99 others); Wed, 25 Jul 2018 18:03:46 -0400 Received: from terminus.zytor.com ([198.137.202.136]:60993 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730606AbeGYWDq (ORCPT ); Wed, 25 Jul 2018 18:03:46 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6PKmsBl501154 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Jul 2018 13:48:54 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6PKmr5P501151; Wed, 25 Jul 2018 13:48:53 -0700 Date: Wed, 25 Jul 2018 13:48:53 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Kim Phillips Message-ID: Cc: ravi.bangoria@linux.vnet.ibm.com, mingo@kernel.org, brueckner@linux.ibm.com, tglx@linutronix.de, namhyung@kernel.org, jolsa@redhat.com, tmricht@linux.vnet.ibm.com, kim.phillips@arm.com, linux-kernel@vger.kernel.org, hpa@zytor.com, peterz@infradead.org, mpe@ellerman.id.au, acme@redhat.com, alexander.shishkin@linux.intel.com Reply-To: mpe@ellerman.id.au, peterz@infradead.org, hpa@zytor.com, alexander.shishkin@linux.intel.com, acme@redhat.com, tglx@linutronix.de, mingo@kernel.org, brueckner@linux.ibm.com, ravi.bangoria@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, kim.phillips@arm.com, tmricht@linux.vnet.ibm.com, jolsa@redhat.com, namhyung@kernel.org In-Reply-To: <20180706163454.f714b9ab49ecc8566a0b3565@arm.com> References: <20180706163454.f714b9ab49ecc8566a0b3565@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf trace arm64: Use generated syscall table Git-Commit-ID: a7f660d6576a5f4504c8ab4f4956bba03d48bf52 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=-0.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96 autolearn=no 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: a7f660d6576a5f4504c8ab4f4956bba03d48bf52 Gitweb: https://git.kernel.org/tip/a7f660d6576a5f4504c8ab4f4956bba03d48bf52 Author: Kim Phillips AuthorDate: Fri, 6 Jul 2018 16:34:54 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:53:01 -0300 perf trace arm64: 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, s390, and powerpc, which means arm64 can now pass the "Check open filename arg using perf trace + vfs_getname" test. Signed-off-by: Kim Phillips Reviewed-by: Hendrik Brueckner Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Michael Ellerman Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Ravi Bangoria Cc: Thomas Richter Link: http://lkml.kernel.org/r/20180706163454.f714b9ab49ecc8566a0b3565@arm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.config | 2 ++ tools/perf/util/syscalltbl.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index f5a3b402589e..d3318f99006c 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -54,6 +54,8 @@ endif ifeq ($(SRCARCH),arm64) NO_PERF_REGS := 0 + NO_SYSCALL_TABLE := 0 + CFLAGS += -I$(OUTPUT)arch/arm64/include/generated LIBUNWIND_LIBS = -lunwind -lunwind-aarch64 endif diff --git a/tools/perf/util/syscalltbl.c b/tools/perf/util/syscalltbl.c index 0ee7f568d60c..3393d7ee9401 100644 --- a/tools/perf/util/syscalltbl.c +++ b/tools/perf/util/syscalltbl.c @@ -38,6 +38,10 @@ static const char **syscalltbl_native = syscalltbl_powerpc_64; #include const int syscalltbl_native_max_id = SYSCALLTBL_POWERPC_32_MAX_ID; static const char **syscalltbl_native = syscalltbl_powerpc_32; +#elif defined(__aarch64__) +#include +const int syscalltbl_native_max_id = SYSCALLTBL_ARM64_MAX_ID; +static const char **syscalltbl_native = syscalltbl_arm64; #endif struct syscall {