Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp88611imm; Fri, 6 Jul 2018 14:36:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcj+Iqnp3x6An8rU6SDE7cNsa1hHahW4PG1ih6wV8yzQuSVrQcu65h70POdXiNqUp0xrfW/ X-Received: by 2002:a62:c00c:: with SMTP id x12-v6mr12079982pff.216.1530912968890; Fri, 06 Jul 2018 14:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530912968; cv=none; d=google.com; s=arc-20160816; b=XYOdIVFqOSY0c7G10dxeCvCVMCNaO1dUR0eOk217QDzcuWYey4HsSn46L0jL7zm5Kz 6QWrNfFZSrgaY17r7IHNBQdcCEaHF+uCzEyXtwUROzqke7T+4VN3fpJZGVAKRUQBFDRA STUiusFaj1vlw/pUws9fBa3vWhv7bhrkaxig0crkOhnG9OAQl5Mo1V7jiguDom4ii3/V c15jC2p0VIL8nJcJ5YbykoiwLvVYM9u9z4yvCUh1euvFPSQe6Pa8KUWAvteWjTmdvDtA /4LQ1GUDs2kJsf9/VH0WncixHwnPPOfDvVoI6iM7CCqPug0xjgbav7A/7Bo/IIkiuDba PPUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:message-id:subject:cc:to:from:date :arc-authentication-results; bh=iwWfTlI5lBEIoPK87wEmqtmafsnQhy8wsFSZpxIRQ+k=; b=NSbH/+6kbAhZ0Q3rM8YsrZ0VqKI83lDOGKPbwb+PiG2Be03IWpUzCDpZYw3hH/v/wK TcH6i0nckAd8n4bW7XDUkY/Gk0lRNAp0t1CQpqypKUuSPlD1D/Xs/zRhxAs2j/NPEakG MUqiuxS6yTvBNiGFJbJuiyDAhZ49z90ephIUETk9GvkF7I5odylix6fT/AXesl6Xda3p PzWnUHR1fy9szjvRYGMso/HQElAVrrZQjDiiXgCGmU2pQ2hs9ENj65Izz6jS9Uy3ddKD 5acfJE518eP/iM2cKJSqv9sYsybOBFcV7Ec6t5XNYSuZBVeGUcROnpRsE/BjGnceeR1f 0lcQ== 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 n4-v6si8680130plp.128.2018.07.06.14.35.54; Fri, 06 Jul 2018 14:36:08 -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 S1754220AbeGFVe5 (ORCPT + 99 others); Fri, 6 Jul 2018 17:34:57 -0400 Received: from foss.arm.com ([217.140.101.70]:43190 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753749AbeGFVe4 (ORCPT ); Fri, 6 Jul 2018 17:34:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C0B03ED1; Fri, 6 Jul 2018 14:34:55 -0700 (PDT) Received: from dupont (dupont.austin.arm.com [10.118.16.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 490AC3F5A0; Fri, 6 Jul 2018 14:34:55 -0700 (PDT) Date: Fri, 6 Jul 2018 16:34:54 -0500 From: Kim Phillips To: Arnaldo Carvalho de Melo Cc: Ravi Bangoria , Alexander Shishkin , Hendrik Brueckner , Jiri Olsa , Michael Ellerman , Namhyung Kim , Thomas Richter , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] perf trace arm64: Use generated syscall table Message-Id: <20180706163454.f714b9ab49ecc8566a0b3565@arm.com> Organization: Arm X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Ravi Bangoria Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Michael Ellerman Cc: Namhyung Kim Cc: Thomas Richter Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Reviewed-by: Hendrik Brueckner Signed-off-by: Kim Phillips --- Changes in V3: - none Changes in V2: - added Hendrik Brueckner's Reviewed-by. 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 b5ac356ba323..3126155810bb 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 { -- 2.17.1