Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932212AbdCFVlt (ORCPT ); Mon, 6 Mar 2017 16:41:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56218 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751950AbdCFVlm (ORCPT ); Mon, 6 Mar 2017 16:41:42 -0500 Date: Mon, 6 Mar 2017 15:40:54 -0600 From: Josh Poimboeuf To: Nicholas Mc Guire Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Masami Hiramatsu , Adrian Hunter , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool: drop redundant flags generation Message-ID: <20170306214054.tobodci764xvbwr7@treble> References: <1488819625-27395-1-git-send-email-der.herr@hofr.at> <20170306172537.uox2f7ru3x72jzea@treble> <20170306175401.GA26026@osadl.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170306175401.GA26026@osadl.at> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 06 Mar 2017 21:40:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1080 Lines: 26 On Mon, Mar 06, 2017 at 05:54:01PM +0000, Nicholas Mc Guire wrote: > On Mon, Mar 06, 2017 at 11:25:37AM -0600, Josh Poimboeuf wrote: > > > arch/x86/tools/gen-insn-attr-x86.awk | 12 ++++++++++-- > > > tools/objtool/arch/x86/insn/gen-insn-attr-x86.awk | 12 ++++++++++-- > > > > There's actually a third copy of the decoder in: > > > > tools/perf/util/intel-pt-decoder/ > > > > Yes, the duplication is a pain, but it's part of an effort to keep > > 'tools/*' source independent from kernel code. > > > > Maybe we can at least combine the objtool and perf versions someday. > > > Bad - missed that one - did not build perf - the generator seems to > be the same though only differing by a single blank line - so pulling > those together should be a non-issue atleast with respect to the > generator as the x86-opcode-map.txt are all the same ? ...or what > fun am I missing ? In theory, all three copies of the decoder should be identical. That includes all the files: insn.[ch], inat.[ch], inat_types.h, gen-insn-attr-x86.awk, x86-opcode-map.txt. -- Josh