Received: by 10.223.176.5 with SMTP id f5csp2601018wra; Mon, 29 Jan 2018 00:33:51 -0800 (PST) X-Google-Smtp-Source: AH8x227ylcGRfeTFeKb9uvJHgZT3my4Yis4Qg0bzyP9QQk1ai7mXM+vjegXwDOjvZfA+5OSS9jSA X-Received: by 2002:a17:902:20e3:: with SMTP id v32-v6mr21766972plg.405.1517214830953; Mon, 29 Jan 2018 00:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517214830; cv=none; d=google.com; s=arc-20160816; b=NUGmTXbSHwcR0EgLXpxCAAd/ArCJuVQ4TyF7n4dGBLtiotn+6U8ou/cxHgShDaswmm NwMvMPgR2CiYBnpArrMGLsheF1Rwd+kd99W4YiwWS4/IDy0gZFWwhbJ1mJOcgr8SOOcJ E+diODQVzPO9+rTpZf4PciH5wLBWRY20SS0poEUz3HZ7LUaPw0gXPzx5l0IhwxScg1bD kK3ZDvycmAnXK7JMbWFqcxL4MGXuWvVFW0QEkm5gZcVMHXJfWEcXyn7DD46tmh3ajwm9 o4Q7w5oNuRNpBazO1kQC1T6UPqa9Bs+VsLY+HNtPWnj+WNYmOrEKOoo2Pd+hXasaWcAH Pb1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=fQY6l4b0sQgAx8Z6jQ8EO+NkSUTZrf62NkMb63tTd04=; b=jx4t2sV1tkNUyQfNOf9pb0AEmcDeIqadvs4PcYXJe2WegX0rPRu9I3MnSB3bd+tuBv w0doemlRz/QCE3WHUtHcpXjyxURHcxqSJoRJa4bM/2vWUlzqclQ2F7ACM9F/G3+ZOOo9 KJme/qBOzaYMMDrXu2YDB8RroiakDFDOW4XAGskdqLTAfkT3iQSWPiuOUJwUyV1o5cXr dV708+EiVoQ73lVB/A7cuqY+M1/iREn3HBjnI103G0rWYpoBrbSSGinJoFjYRq7dBBvi JU9eWEhRhasQqfgPAEnNggmp33KfSVkLlEWpTT7Q2lqILd3AM8vzMcBwV92duEDO1MWp c6mg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o130si1698097pfo.300.2018.01.29.00.33.36; Mon, 29 Jan 2018 00:33:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751625AbeA2IdI (ORCPT + 99 others); Mon, 29 Jan 2018 03:33:08 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55714 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbeA2IdF (ORCPT ); Mon, 29 Jan 2018 03:33:05 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w0T8TxhN050015 for ; Mon, 29 Jan 2018 03:33:03 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ft0398apv-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 29 Jan 2018 03:33:02 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 29 Jan 2018 08:32:59 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 29 Jan 2018 08:32:56 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w0T8Wu3T47513788; Mon, 29 Jan 2018 08:32:56 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 160CA11C050; Mon, 29 Jan 2018 08:26:28 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 66EEB11C058; Mon, 29 Jan 2018 08:26:26 +0000 (GMT) Received: from bangoria.in.ibm.com (unknown [9.124.31.133]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 29 Jan 2018 08:26:26 +0000 (GMT) From: Ravi Bangoria To: acme@kernel.org Cc: alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, brueckner@linux.vnet.ibm.com, tmricht@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, Ravi Bangoria Subject: [PATCH 3/3] perf trace powerpc: Use generated syscall table Date: Mon, 29 Jan 2018 14:04:17 +0530 X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180129083417.31240-1-ravi.bangoria@linux.vnet.ibm.com> References: <20180129083417.31240-1-ravi.bangoria@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18012908-0020-0000-0000-000003EFC278 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18012908-0021-0000-0000-000042821E14 Message-Id: <20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-29_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801290114 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 and s390. Signed-off-by: Ravi Bangoria --- 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 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..b12c5f5 100644 --- a/tools/perf/util/syscalltbl.c +++ b/tools/perf/util/syscalltbl.c @@ -30,6 +30,10 @@ #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; #endif struct syscall { -- 1.8.3.1