Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2666461lqo; Tue, 14 May 2024 06:03:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvkknuvX8AvFe2Ey2qOp3hIo5Kpf871vVVW8B08bSxRT0LF04AOLNr8Gk2a1e7Xbkhh8gKg/NMv3edDW6ktOTHDkRMuc7TSxR8rWMDig== X-Google-Smtp-Source: AGHT+IHzfHwJKmbsuT5i0gVOzh9MVUPayj9bmYWjJwmxKgGjPfhk9No3EazvJSg9tzGPcWETe3kR X-Received: by 2002:a17:903:2444:b0:1de:f93f:4410 with SMTP id d9443c01a7336-1ef43d0a044mr152769605ad.8.1715691800073; Tue, 14 May 2024 06:03:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715691800; cv=pass; d=google.com; s=arc-20160816; b=JKQmvKoRabTlkNM1nAHSlKtzbp11R8WZ1RKCbhHzZgiKlfRQArr2Jci0dAre5PmAlj enTQSEfh4xVBdw4B3OgyfG4vi14OZgxN6DPq12rH1Rh7pDd/05RO3sbIdR/DXpsS+KEQ xJttYFQ7ZPueLToKjCd/FMDqaMJvIIZF86xvwrRZR8UhVE1rV4l/Y6gmf7H+GgKeLlY2 HEREuLTEKNbvFwYESOK42U3y1xZbRypZyz/cjji9z+RkwnRyjamwMM2nNc5cQmRYDbe+ topJ707d/dNJaXqK7eyZ1tCg9gpBeBNf38u/8dnH+kS0N13W9V4y2IYjS4wac3abU7Yl LLpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zFymOiF2+vjHQvFVOpHDHNYijSzHu7fGKqTeuJZuECc=; fh=2+6C4QXNZNzBd2aReoqX2rBiBDpNg+IE1DtvmRq5lE0=; b=vDk4usPHVGHnfcdyqdZgAEIej1CZXwrcIJIXcUCF9R+qv2rs37atrSYRBdE+rMy+uW PVBeA9RqRpo1Lo+nSzrP916xsojgCiLJn+rw5DNzhOZ+tHUvo2aquJiLEcbfKeex/skm D8/+OXOSGDJbT6EyGoI98zLikRc0c0d+y0vHP9H45Zg+7Tzctc+pSBw/8VvvQKABnK9m PqbFxWQQEOA371DyQYcSSTXvYm+sNPpOcAqZgHej1dK3lZp7IS+Tkg26qJ4hhVU5aiz0 RE24hs1iQSebMGChqgiCFTEOwcPrC8Drr/ZdkiXhvC1hnFEUtyhE/kjaGq7BEbGnQSFM mB8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N6Gg9Vgn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178689-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c15bcf3si113327375ad.474.2024.05.14.06.03.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N6Gg9Vgn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178689-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178689-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 60278283E92 for ; Tue, 14 May 2024 13:03:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBCC2140E5B; Tue, 14 May 2024 13:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N6Gg9Vgn" 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 EAFC612E75; Tue, 14 May 2024 13:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715691790; cv=none; b=OPVgEg6kgc0Z7V1CafGmKNZStQ6aDBXs+dUx2q9KAbh1G56Bbb+dc5Jzml2R6uLx3XvOFwoSnWXc0IuwF/MZvWthUa9Cj+XBpy/DQFeBYnRhI8+BTVEOCzcn464ixu5hubveRw/wu3L3pR0dwTOSstEty6VTAoVduTvdj/iNsFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715691790; c=relaxed/simple; bh=2FTtLgcS3g90jTCZ5RW/k0IA6dKK6r07EQMnwhcdDsY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IQtGUCqUffuU08hPHCrsTECCAbZCrImeYuJ5CYcpqWuIoDNDC1+CDc+wwuLNZwKOBdp9ll3Bkheo/LaII4oDYLs9GvXwzmWwQz2SiKoOVKhEtBkDhjUjHGGG0WxGzfl7zkk42smOJi1Cfcleaj575PlqARobYhEWu4unmcCfqu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N6Gg9Vgn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D5EFC2BD10; Tue, 14 May 2024 13:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715691789; bh=2FTtLgcS3g90jTCZ5RW/k0IA6dKK6r07EQMnwhcdDsY=; h=From:To:Cc:Subject:Date:From; b=N6Gg9VgnCAwncIHMa2lhOv9v4evkV0q6kVNau3l1W2CCJMTOCEU0KD2JxGF1P9vkF 3XnMSvaY15fderWIjfSpCrK+jYTRKoHP0RN+Q215f5/ibt9xXGHNBxehDARbZjwZ// 1eQE4lRU8V/oNu94yIabzVLG21iRTi2Uf3my+gM+q3yB6PKT9WNctgaHeoHZDdeJfN 8B3Vtqm1cLqY8jAvb1bTK9bQNj+PN+u50fEjxoka7oQndVrWatnP3iVsbhZMnNe9Ja LjL5ItFBaONciSjp8U8LZPiZNp3q3kNH9LIsEiKGOkkKnXptYXXcSPRQr8xrRfCJXv 7dbDajh9Eu1Ug== From: Puranjay Mohan To: David Vernet , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Jonathan Corbet , Dave Thaler , Will Hawkins , bpf@vger.kernel.org, bpf@ietf.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: puranjay12@gmail.com Subject: [PATCH bpf] bpf, docs: Fix the description of 'src' in ALU instructions Date: Tue, 14 May 2024 13:03:03 +0000 Message-Id: <20240514130303.113607-1-puranjay@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit An ALU instruction's source operand can be the value in the source register or the 32-bit immediate value encoded in the instruction. This is controlled by the 's' bit of the 'opcode'. The current description explicitly uses the phrase 'value of the source register' when defining the meaning of 'src'. Change the description to use 'source operand' in place of 'value of the source register'. Signed-off-by: Puranjay Mohan --- Documentation/bpf/standardization/instruction-set.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst index a5ab00ac0b14..2e17b365388e 100644 --- a/Documentation/bpf/standardization/instruction-set.rst +++ b/Documentation/bpf/standardization/instruction-set.rst @@ -292,8 +292,9 @@ Arithmetic instructions ``ALU`` uses 32-bit wide operands while ``ALU64`` uses 64-bit wide operands for otherwise identical operations. ``ALU64`` instructions belong to the base64 conformance group unless noted otherwise. -The 'code' field encodes the operation as below, where 'src' and 'dst' refer -to the values of the source and destination registers, respectively. +The 'code' field encodes the operation as below, where 'src' refers to the +the source operand and 'dst' refers to the value of the destination +register. ===== ===== ======= ========================================================== name code offset description -- 2.40.1