From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by gnuweeb.org (Postfix) with ESMTPS id 425217ED9D for ; Tue, 1 Mar 2022 10:44:33 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (1024-bit key; unprotected) header.d=alien8.de header.i=@alien8.de header.a=rsa-sha256 header.s=dkim header.b=RnkBQHsS; dkim-atps=neutral Received: from nazgul.tnic (dynamic-002-247-255-128.2.247.pool.telefonica.de [2.247.255.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 97ACD1EC0535; Tue, 1 Mar 2022 11:44:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1646131467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=COL0bKCNw9tVGyDaogHsf/pHZogjAgEYs82ukZGeJJw=; b=RnkBQHsSb7NQZL/bKJCRSATiFYPyNzQfoescyaIa+ZLGKK76rE+IFOaXKLbIOKY6Nl3kSG VLF4ejtAq9J/Mo37mEH7PJGW2PlwFm1s97kCmmFLa/m4z6fqF/AA1eert/Q6baTJhKHZXv Bu9mgoqETfJGrJ0OJMyLAgZ5ZncwyVE= Date: Tue, 1 Mar 2022 11:44:31 +0100 From: Borislav Petkov To: Ammar Faizi Cc: weidonghui , tools@linux.kernel.org, linux-kernel@vger.kernel.org, gwml@vger.gnuweeb.org, x86@kernel.org, Andrew Morton , Andy Lutomirski , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner Subject: Re: [PATCH] scripts/decodecode: Make objdump always use operand-size suffix Message-ID: References: <20220301041119.55085-1-ammarfaizi2@gnuweeb.org> <93a60cc2-52df-878e-6b07-dd80d5d3f149@gnuweeb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <93a60cc2-52df-878e-6b07-dd80d5d3f149@gnuweeb.org> List-Id: On Tue, Mar 01, 2022 at 04:16:47PM +0700, Ammar Faizi wrote: > I would say always using operand-size is our habit in writing Assembly code. "our" is who? > Especially for the Linux kernel. Looking at entry_64.S, entry_32.S and many > Assembly files here, we always use the operand-size. It also helps to determine > the size quickly. When do you ever need to determine the operand size quickly? > It gives us extra information about the operand size when > sometimes it can be vague. So I'm looking at output of objdump -d arch/x86/entry/entry_64.o and it does by default add suffixes when it is not perfectly clear what the operand size is, for example: 6a 2b pushq $0x2b vs 41 51 push %r9 so I think the default of not explicitly adding suffixes when it is clear what size it is, is the most optimal one. > I don't think it's that urgent to have, but having it should not bother people > who don't care with the operand-size suffix anyway. So I'd prefer if this were a command line option which turns this on only for whoever absolutely needs it. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette