Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7281754rdb; Wed, 3 Jan 2024 10:15:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5OtSGxzd+sTW9GQ1AqrPo6RGtb1VIiksz/1irFj286KAXLZAOhdVD3QEgCKe2+3BNGY24 X-Received: by 2002:a50:d515:0:b0:554:4d5f:415 with SMTP id u21-20020a50d515000000b005544d5f0415mr10864231edi.77.1704305752942; Wed, 03 Jan 2024 10:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704305752; cv=none; d=google.com; s=arc-20160816; b=rNPpwDR1fk/Coymoro0T/0Gc3S5bYR6jNGeqEDMIsXvjJgjz2kX7Ivwus7Ue6Iqr43 USfRC0c2DC8RyVq2vpsl00tAvJaMJ964qj/Xyk/KaGjaKknnbaw5zvRWMqyPntfqcVOR llx+5LFY8Ob5nC4hgEdBPSXnESAhinwxHnYsVMOb2p3tJ4QT6F7YzgqVieMi0/GwYptF 6kDz09mOCQfVFtfirqfmgGg4jrGnRQSzAYIS2eWovdjUkY6MXmde+OQJrj2CL44pXtfg xKErM9q5VbGlRPMCIipX7Z+3Mdz3vmMom58/pnGn85sic9BvYNm7bbBo2MKTSBdZJYia 1Xsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tDpzKPYIQ+QVVe9fhY1rOFi5UfrEt2yLu4tz3MM254w=; fh=ARS0PGrxYsxbyMDlX7DLL5AAwKg7cxsERX6cpc6QAP4=; b=CZfQnpfVCUn8Ke2Ry6p64MBEiNWb05jU8BpXRCo5q9jSR6nHWe+vlrHaYiTTTiahcI quABJ26C1Po8GRhVcrOpCOYKDZhyuM6UcczvrQvr7Q4z0Y2J0mlctsvuciZ4bAgEJ24b yU7SSIX4XrjNoe3L2XR0sOkQoquCoyRf6HMR0vPxd31WXp1G7dcM8mHEG+zmiRTTkxCX YNidS9FNaIh1GUyk0AssLGLpvm4Pa4FuPFnW4WegQkY11y2GPnXa90yL7pC+eDrKzhhG yffI95q6RqgQxU60E1wc+FT3FDJveU0NWhH6E09uDkChEm16XNx1ZmxIq0fkMJFLpSoC JapA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hgiGavpj; spf=pass (google.com: domain of linux-kernel+bounces-15840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z25-20020a50cd19000000b005555698b93fsi6712512edi.576.2024.01.03.10.15.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 10:15:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hgiGavpj; spf=pass (google.com: domain of linux-kernel+bounces-15840-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A2B411F24C63 for ; Wed, 3 Jan 2024 18:15:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20CF31C698; Wed, 3 Jan 2024 18:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hgiGavpj" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 517AE1C68A; Wed, 3 Jan 2024 18:15:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AE03C433C7; Wed, 3 Jan 2024 18:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704305744; bh=AUXrWa4gez8USeQ48h8WOwSAUbB123G3JwiEuIp/YrM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hgiGavpjnyWCBS+MOW1xqN+TMQo7IoZrUXbaSExkf51Dv66D5lZxSzuU2DvD0JyoS KGY7vBvcsByvQkjkaYqD4P4Xd/QSsl8qeEjNDFm4Ru87DYlzs0VJj1g5i7lVaWMvjy 2wCLrDZvwV6CNqDyih5ZpZgyo2gnzUtMuhSrHLi+eSRawL+KIV5Oiyang1guGb6Awj hsEOp66LkLFXgK9VAvRDQ9rNq9N/lUDMdFXG1G0sLczCk0mNF0xzPw4qx4Egb/DsTo bSqqXS9+WWEdDgRU4BDWGOuhX27W4dna2kmVIIyOHnau9VX2WvOkSjYnDGmht2Y/mp 39wEn5K3GbyPw== Date: Wed, 3 Jan 2024 11:15:42 -0700 From: Nathan Chancellor To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev Subject: Re: [PATCH] x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump Message-ID: <20240103181542.GA629234@dev-arch.thelio-3990X> References: <20231205-objdump_reformat-awk-handle-llvm-objdump-bad_expr-v1-1-b4a74f39396f@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205-objdump_reformat-awk-handle-llvm-objdump-bad_expr-v1-1-b4a74f39396f@kernel.org> Ping? I am still seeing this issue. On Tue, Dec 05, 2023 at 12:53:08PM -0700, Nathan Chancellor wrote: > When running the instruction decoder selftest with LLVM=1 + > CONFIG_PVH=y, there is a series of warnings: > > arch/x86/tools/insn_decoder_test: warning: Found an x86 instruction decoder bug, please report this. > arch/x86/tools/insn_decoder_test: warning: ffffffff81000050 ea > arch/x86/tools/insn_decoder_test: warning: objdump says 1 bytes, but insn_get_length() says 7 > arch/x86/tools/insn_decoder_test: warning: Decoded and checked 7214721 instructions with 1 failures > > GNU objdump outputs "(bad)" instead of "", which is already > handled in the bad_expr regex, so there is no warning. > > $ objdump -d arch/x86/platform/pvh/head.o | grep -E '50:\s+ea' > 50: ea (bad) > > $ llvm-objdump -d arch/x86/platform/pvh/head.o | grep -E '50:\s+ea' > 50: ea > > Add "" to the bad_expr regex to clear up the warning, allowing > the instruction decoder selftest to fully pass with llvm-objdump. > > Signed-off-by: Nathan Chancellor > --- > arch/x86/tools/objdump_reformat.awk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/tools/objdump_reformat.awk b/arch/x86/tools/objdump_reformat.awk > index a4120d907277..20b08a6c4d33 100644 > --- a/arch/x86/tools/objdump_reformat.awk > +++ b/arch/x86/tools/objdump_reformat.awk > @@ -11,7 +11,7 @@ BEGIN { > prev_addr = "" > prev_hex = "" > prev_mnemonic = "" > - bad_expr = "(\\(bad\\)|^rex|^.byte|^rep(z|nz)$|^lock$|^es$|^cs$|^ss$|^ds$|^fs$|^gs$|^data(16|32)$|^addr(16|32|64))" > + bad_expr = "(\\(bad\\)||^rex|^.byte|^rep(z|nz)$|^lock$|^es$|^cs$|^ss$|^ds$|^fs$|^gs$|^data(16|32)$|^addr(16|32|64))" > fwait_expr = "^9b[ \t]*fwait" > fwait_str="9b\tfwait" > } > > --- > base-commit: 5225952d74d43e4c054731c74b8afd700b23a94a > change-id: 20231205-objdump_reformat-awk-handle-llvm-objdump-bad_expr-9e74cd2a08b5 > > Best regards, > -- > Nathan Chancellor > >