Received: by 10.223.176.5 with SMTP id f5csp2702507wra; Mon, 29 Jan 2018 02:34:05 -0800 (PST) X-Google-Smtp-Source: AH8x224jKUM1lh/2NN5bCBC7x56JsO7fvOseRAcC/J7tCjimOEqWuVfPY2ydxAeaqKN/9ocF6m0K X-Received: by 2002:a17:902:67:: with SMTP id 94-v6mr21300074pla.183.1517222045637; Mon, 29 Jan 2018 02:34:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517222045; cv=none; d=google.com; s=arc-20160816; b=g3i05wTzjq/eX4IT6FdKQv5k2Mo983zW9Lyrz9f2EUoMz5rPnDeu2wZczxPn24KEhd pCw8qBDuEt6FeZhAysmDMu5/bcxOAwi2OMUCFLWkYnrImJmjCfpPFD21fc116DOECPgV AcgAmCBdz83LMXB6yHyBALoRA6i5qgVfebhYVf5jaOHXiVg4qk6hJtqTeCT1nTZsZ4/x Jivpegcu6lqj6fQWWSSQIkT+0JCmPwU6glFIUOEal/sUJGl3xUOYEa51F9ZzYtHM1R1A A84FaRY1xTvUZ/4vIW5TRAgs65BiN2ttYOoj1nE1gWjetF4BlqhKqu4e4cFSjgniudMF sHeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=90UZHg4Gc6rnOneta5XykUqrsskMej3IaFoLU/LxjD4=; b=IjsXgPQFrurd68+XWWBVgZQUVMY2FydPw9le8ykEqPzdQkk5sVHx3N2HlBb35D7B++ e7Zkzbe5fdp/jLQiEaDPhOJ5oy492ali3+msemSR+TdWmXRjSLuug+p4FMSupPtSXJ3x kWy7gy95NzuhYArt0T1FlMWm+LuwKqYiAIdfl3R48inJOOWMEfc3hOlRpn45jiiW48aF Pm0C8HQtRu0lyRb5cFb/tEC3VGI1fALsAMfY8jV7W3Kya9kw1mRGnmBmCwMv0/jdRiua ZAy6BVpUOyo0VbHbdfSYHuoiS7sKzbYRiIVJnRP7C2LhHpQmthJYeRflqalGpQVGy6AZ 0NZA== 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 s4-v6si9271543plj.626.2018.01.29.02.33.51; Mon, 29 Jan 2018 02:34:05 -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 S1751719AbeA2KdZ (ORCPT + 99 others); Mon, 29 Jan 2018 05:33:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:59186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751301AbeA2KdX (ORCPT ); Mon, 29 Jan 2018 05:33:23 -0500 Received: from jouet.infradead.org (unknown [81.19.2.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E308E20C48; Mon, 29 Jan 2018 10:33:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E308E20C48 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id C1AA7140EF2; Mon, 29 Jan 2018 11:33:20 +0100 (CET) Date: Mon, 29 Jan 2018 11:33:20 +0100 From: Arnaldo Carvalho de Melo To: Ravi Bangoria 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 Subject: Re: [PATCH 3/3] perf trace powerpc: Use generated syscall table Message-ID: <20180129103320.GA9986@kernel.org> References: <20180129083417.31240-1-ravi.bangoria@linux.vnet.ibm.com> <20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180129083417.31240-4-ravi.bangoria@linux.vnet.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Jan 29, 2018 at 02:04:17PM +0530, Ravi Bangoria escreveu: > +++ 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 This is so cool! Thanks! At some point we'll remove these #elif, have all of then linked, so that we can do cross-platform interpreting of perf.data files generated with 'perf trace record', i.e. 'perf trace -i perf.data.recorded.on.s390' on a powerpc64 or x86 machine. We're paving the way to that with patches like yours and those for s/390, thanks again! - Arnaldo