From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759818AbcAUPi4 (ORCPT ); Thu, 21 Jan 2016 10:38:56 -0500 Received: from mail.kernel.org ([198.145.29.136]:44878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759787AbcAUPiy (ORCPT ); Thu, 21 Jan 2016 10:38:54 -0500 Date: Thu, 21 Jan 2016 12:38:48 -0300 From: Arnaldo Carvalho de Melo To: "Wangnan (F)" Cc: Ben Hutchings , Masami Hiramatsu , He Kuang , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, Jiri Olsa , Kaixu Xia , Zefan Li Subject: Re: [PATCH perf 3/4] perf tools: Fix unused variables: x86_{32,64}_regoffset_table Message-ID: <20160121153848.GD4034@kernel.org> References: <20160119213213.GB2637@decadent.org.uk> <20160119213306.GE2637@decadent.org.uk> <20160120135924.GR27085@kernel.org> <56A061D8.80502@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56A061D8.80502@huawei.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 Thu, Jan 21, 2016 at 12:43:04PM +0800, Wangnan (F) escreveu: > I think this problem is not introduced by my patch. In fact > there's a fundamental problem in get_arch_regstr() that it is > impossible to switch sub ISA. > Not only x86_64 and x86_32, I think on arm64 we also have this > problem when we try to setup uprobes on arm32 code. For me the > later problem is more important because there are many legacy arm32 > applications on Android platform (and I have already seen the buggy > unwind result in this case. It is another problem though). Humm, and possibly to do something with arm code on a x86 workstation, even if just analysis, yeah, I think these functions should take as an argument the desired architecture instead of assuming it is the one in the machine issuing the commands. > So I suggest us to solve this problem first before considering > gcc 6 Werror. At least x86_32_regoffset_table and x86_64_regoffset_table > should both be compiled no matter which ISA we select for perf. > > Thank you.