From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754052AbbHXUFH (ORCPT ); Mon, 24 Aug 2015 16:05:07 -0400 Received: from mail.kernel.org ([198.145.29.136]:33555 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbbHXUFF (ORCPT ); Mon, 24 Aug 2015 16:05:05 -0400 Date: Mon, 24 Aug 2015 17:04:58 -0300 From: Arnaldo Carvalho de Melo To: Sukadev Bhattiprolu Cc: Adrian Hunter , linux-kernel@vger.kernel.org Subject: Re: Build failure due to Intel PT Message-ID: <20150824200458.GD19203@kernel.org> References: <20150824185131.GA6606@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150824185131.GA6606@us.ibm.com> X-Url: http://acmel.wordpress.com 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 Em Mon, Aug 24, 2015 at 11:51:31AM -0700, Sukadev Bhattiprolu escreveu: > > I am trying to build perf tool on Powerpc and get this: > > util/intel-pt-decoder/intel-pt-insn-decoder.c: In function ‘intel_pt_insn_decoder’: > util/intel-pt-decoder/intel-pt-insn-decoder.c:138:3: error: switch missing default case [-Werror=switch-default] > switch (insn->immediate.nbytes) { > ^ > cc1: all warnings being treated as errors > Besides adding a 'default' case, can this file be skipped when building on > non-x86 architectures? Not sure, what about processing a perf.data file generated on a x86 system using a PowerPC workstation? Adrian, I am assuming this is only used when postprocessing, is that right? - Arnaldo > I am on the perf/core branch, with HEAD pointing to: > > commit c0b4dffbc529244d3e4e3bd392f2bffa2d8531a7 > Author: Arnaldo Carvalho de Melo > Date: Mon Aug 24 13:33:14 2015 -0300 > > perf annotate: Reset the dso find_symbol cache when removing symbols > > Sukadev