From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752710AbbE0OkP (ORCPT ); Wed, 27 May 2015 10:40:15 -0400 Received: from mga11.intel.com ([192.55.52.93]:28486 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660AbbE0OkM (ORCPT ); Wed, 27 May 2015 10:40:12 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,506,1427785200"; d="scan'208";a="736140624" Date: Wed, 27 May 2015 07:40:07 -0700 From: Andi Kleen To: Namhyung Kim Cc: Sukadev Bhattiprolu , mingo@redhat.com, Michael Ellerman , Jiri Olsa , Arnaldo Carvalho de Melo , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] perf: jevents: Program to convert JSON file to C style file Message-ID: <20150527144007.GL7484@tassilo.jf.intel.com> References: <1432080130-6678-1-git-send-email-sukadev@linux.vnet.ibm.com> <1432080130-6678-3-git-send-email-sukadev@linux.vnet.ibm.com> <20150527135402.GA29557@danjae.kornet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150527135402.GA29557@danjae.kornet> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > So we build tables of all models in the architecture, and choose > matching one when compiling perf, right? Can't we do that when > building the tables? IOW, why don't we check the VFM and discard > non-matching tables? Those non-matching tables are also needed? We build it for all cpus in an architecture, not all architectures. So e.g. for an x86 binary power is not included, and vice versa. It always includes all CPUs for a given architecture, so it's possible to use the perf binary on other systems than just the one it was build on. -andi -- ak@linux.intel.com -- Speaking for myself only