Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp198604lqo; Wed, 15 May 2024 11:33:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEMbROeed6XiZWJerHnIb8wrmMjjcMnnG0MXea50mzMlxeYcYZOnD6E7iYwjDXfUfd93k3/Ua7o8vEjDD/8daEgQzXt6N9Bh6WklFXWA== X-Google-Smtp-Source: AGHT+IHAiw4AoJEFliHd1xIw5Rjmb4Q9iUyvOukRsQKkLELC4vFGzL/ihXY5JLBeDQDjAbt1TD+w X-Received: by 2002:a05:6358:63a2:b0:17f:729a:8562 with SMTP id e5c5f4694b2df-193bb3f8ba9mr1403085155d.3.1715798020970; Wed, 15 May 2024 11:33:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715798020; cv=pass; d=google.com; s=arc-20160816; b=GK8SF4X44XBkj0DMeOxAW7GutYfL67+90OT1K2zwGm/WW0u36ibWFN79Gj7ny0mhRm d7kftr7/BEkfwcpW5PPKsOn0VYYPxlSg8xj9/EctTAIOEF8vPR18E+kWjbDwBSJ6ZqFF LQoemq+KBb0KTpQ6orErUWYzulGZA+Yrd+Ph4T5vok78u73iRDtqs/ON7ZmSgv2FPIm5 B7Ef1yFMcmvIMPpkZGVE5UpvpBJAOusyrP6hFZQv62kBBmh3nIcwJoTXZjc+JrYgor72 wUlvBthwyEMOltIR8WCFfWahLcpIqFrE0ZvI62AFCdoMNUxyaVetwLrLxyK5w440NooH eO3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=mSXPAJKXxzZyEDc83l6Cs0ff5IlLiJEXhV9mzqpTkAE=; fh=QzU5IA8lfoEYwOfCOrYUZ7ClpU2WmK6Hi6PkI8t6WmU=; b=Hh8xfp1VGVD++QzpkKvO5AiczM0375dvC9WD6JIG7C/u//1Gkute8C1BNx8XlihiWz ZbqAsTw8xPLxAINcXJbgQ7iuge2kflh26LjVvupPbhSLyPAO/AVNrlLhG0fOM98UAQj+ ZNeZuRHCnemzyk4/qRN9zHdon2nqU4c2VDec8PSxBbI+37Z4dg/CTJ/o+ZUtJ/KrAFby m5mePlsV19cHCNo37CCc0DfBddQr4sW/BNKL8+oW6bi+NoRmpkdn0fdTEc+gYZ4LigAW ooCElCUiqthu0J6YL1P2SlyGUTN5V5AKjOny6++MPuOBfhmy83Ub36BZul3HEB4U34BL tmfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@valentinobst.de header.s=s1-ionos header.b=rf1hovah; arc=pass (i=1 spf=pass spfdomain=valentinobst.de dkim=pass dkdomain=valentinobst.de); spf=pass (google.com: domain of linux-kernel+bounces-180267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180267-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-654d366529bsi1795451a12.446.2024.05.15.11.33.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 11:33:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@valentinobst.de header.s=s1-ionos header.b=rf1hovah; arc=pass (i=1 spf=pass spfdomain=valentinobst.de dkim=pass dkdomain=valentinobst.de); spf=pass (google.com: domain of linux-kernel+bounces-180267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180267-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2EFD028417A for ; Wed, 15 May 2024 18:33:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E61C15AD9C; Wed, 15 May 2024 18:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=valentinobst.de header.i=kernel@valentinobst.de header.b="rf1hovah" Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (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 B69E4159596; Wed, 15 May 2024 18:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.72.192.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715797998; cv=none; b=kqe7yoAu+gY7ox9kpDJc999LcV28tYHHVQKelHAp1M3HHQDgttv9gLQ67cg5NLQPAXQreDerWxFshW1fQ+PDarrOrXKbrnMHnioo9Z5PdBC/YEhbp8bXJjg7oiUOeOj2apIfyGCuf4Gjw4Mu+4lueDtllhvMdaQxisKXaQoXsB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715797998; c=relaxed/simple; bh=y2zayKWnk9+auOzdACJ/SZye0xW8Lm8mzmgdTyPY700=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EVcxmTasObkSLbFsvTUR3DhusB+7SbVXWSWFVGblcO8boOIiYmXONtmjCAvJxN6Zc0uAjgedN/kr9+//1vYyB/dvv7i8UmGi+XOD5i2IqvUem7gCZ+IMb5Q9q0qUNug0nFD6pLqde2oiKlj3VE7epVRnofRbRYW9NVrYsj075go= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=valentinobst.de; spf=pass smtp.mailfrom=valentinobst.de; dkim=pass (2048-bit key) header.d=valentinobst.de header.i=kernel@valentinobst.de header.b=rf1hovah; arc=none smtp.client-ip=217.72.192.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=valentinobst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valentinobst.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valentinobst.de; s=s1-ionos; t=1715797983; x=1716402783; i=kernel@valentinobst.de; bh=mSXPAJKXxzZyEDc83l6Cs0ff5IlLiJEXhV9mzqpTkAE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-ID:In-Reply-To: References:MIME-Version:cc:content-transfer-encoding:content-type: date:from:message-id:mime-version:reply-to:subject:to; b=rf1hovahGEVZoPzUBVzzohJ6u+wjvTv1yoDQMIRoZy6uQvD4mmqzgTOqHLkHtcsG V5T6I5EqiHQsEQ+AKq6VMJ86mC46jiks5xD0hbjR23kdY75lC0DEvSWM18p/pqond NtNA/TWdNBduEaT2/6aNPTKnb2QMWWVeUY8U1H+FfWJOj/rOoiVwtb8qxhmWu3nI0 PdGDPHQPruv9vDHXwrxtmZ39/nrXIdLu4FL3g186i+X96xe/UjKSetUkcLZgdPEvK xSUTPRthFeJDnrbZt/u6eWhvvBvxBJH9LZb4rOwPiDiHQkVZFlajyOyZahMYujtyS DiVNhA4m2gWUpQSVgg== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from archbook.fritz.box ([217.245.131.25]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N8GAQ-1sbqiY0Ppo-014Dgt; Wed, 15 May 2024 20:17:38 +0200 From: Valentin Obst To: mhiramat@kernel.org Cc: a.hindborg@samsung.com, bp@alien8.de, dave.hansen@linux.intel.com, gregkh@linuxfoundation.org, hpa@zytor.com, john.m.baublitz@gmail.com, kernel@valentinobst.de, linux-kernel@vger.kernel.org, mingo@kernel.org, mingo@redhat.com, ojeda@kernel.org, peterz@infradead.org, sergio.collado@gmail.com, stable@vger.kernel.org, tglx@linutronix.de, x86@kernel.org Subject: Re: [PATCH v3] x86/tools: fix line number reported for malformed lines Date: Wed, 15 May 2024 20:17:16 +0200 Message-ID: <20240515181716.3313-1-kernel@valentinobst.de> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240403091748.ee180a7a1d4bf92e0c46fb8a@kernel.org> References: <20240403091748.ee180a7a1d4bf92e0c46fb8a@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:ttCaaco3vEonRvTh930mfcrIADBoReXBM9hGliQ2QuSLUQbtV3q N/CLOKE9dhGTC+Q1Szo0uzGyPjKzVaxlZAlnD325gGzJn7zCarZ0iikssTW/yJU5Gj22Kyw ovshi4BPFTmICFJx+sJi5gAFXFwkJuE82yzzSer5N+DQmrJwLxsH6UPj+9AGh7GOJd8m4GK QH2DnBjfJvcKx4RlgJNOQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:CUGfVys0O1E=;LeLgmglAvO6+O7ly0QdmWWvmXNB IUE18NMJearSvvzLQ5B/cEXEthivYfvTsI6x1ycGX1c84XTosfMb5Gg4aaKmTFoOeoEMgXRai OalavXFvI41+rX8PaKecKrUM0b//tZy/Wwf6rU1/MJ060c+Ulid0Tztl9Us5QOaJ/Eo+pSkPA qKWEjDaa0RZBy13MzzH0ncJAZJfMx0UGlgF7tseGMinH2+pew/fdDoNiOPI0O2wwf1O+ixdRK L07PEypW8DTPLoMJ3ziRAv861oM2NSrr8ZdmJDC381ZneYCsT1hOB8MidkJiG9kLynDnIGcri OqjKK0NnFgLB4ecll2Dlx9nt2QiWLbD/wlUcgZO4cypNvr+aGfVcwbi/zz7BvB//aMnhqyrlo OTvaDKqNTChT8VJmAfWFnd34lXebm9mZvNHCUp2JiuZyS4zWmUT6eNojwdwv/+pIwhOyqd43C VyBMGTRW6BN8ps3aXk2UA9dtaVcipTF9WVBNcJIkFCFN6zF1ZjpT/3S2kI0uU+oqE8o+y0Wmw vKiiTB2w2c4iHN3pquAt4heraFi6AhGewEpkwbzx0NnEReCjlC82i87gK8Fo6O2q2VmbuOvoW 7uqu6T6n6rBG2ZcrbhV7//oXhwIZUz2oD5jFPYKSGJFVcAAJ76K58ni51XmP2zzA8tEoCykN2 /G1zy5SzoMs4YgERH3vA5mPllsBy0yS4h0sdJHmlu8ru7rapGYl0JP0vLMtk/Ka3GZUQMFGci aub9+5PoF//aMllPmgXnqBb3uS8tu6qxQghdyIwT6EBJCM3etPDrSw= > > Commit 35039eb6b199 ("x86: Show symbol name if insn decoder test failed") > > included symbol lines in the post-processed objdump output consumed by > > the insn decoder test. This broke the `instuction lines == total lines` > > property that `insn_decoder_test.c` relied upon to print the offending > > line's number in error messages. This has the consequence that the line > > number reported on a test failure is unreated to, and much smaller than, > > the line that actually caused the problem. > > > > Add a new variable that counts the combined (insn+symbol) line count and > > report this in the error message. > > This looks good to me. Thanks! > > Acked-by: Masami Hiramatsu (Google) Thanks! So what is the status on this one? Is there someone here who can take it through their tree s.t. it might make it into 6.10-rc1 or 6.11-rc1? - Best Valentin > > > > > Fixes: 35039eb6b199 ("x86: Show symbol name if insn decoder test failed") > > Cc: stable@vger.kernel.org > > Reviewed-by: Miguel Ojeda > > Tested-by: Miguel Ojeda > > Reported-by: John Baublitz > > Debugged-by: John Baublitz > > Signed-off-by: Valentin Obst > > -- > Masami Hiramatsu (Google)