From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D335E1E492 for ; Tue, 6 Feb 2024 04:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707195113; cv=none; b=k02nOQqWo3Xxlztaq+35IWk3uLwdyJen/CE7sLDwYy1f7r5MFnFZcFDyG/+3CxAkW43fonUB7jF0Ff1hO53TX3MaVOnIBerVzusoiNqQJmB5crNZNeFWZ4/SvdLyV/bt+Vv4sXB1IxdcW1cndwvCWVsUnVNbJNNP5mNye0ZjoDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707195113; c=relaxed/simple; bh=GgemygxAyUqgqORqzkyrbDeQUvo0EJdEvXWt7SZe05A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=MGTDN7w+7TeSjgOPgept4RJzfNMPa8Kb6X9n/PhqBMNUK2u9aVRrWp55UoFW0m+hW/DSxbGovOYkJY4QhZe7eNtNKqGEFA1AijmhTG84mTz2M5D+MvCXyqJZbe/7P59kgQdtSX053w48BZ4tuecbimyP2NHjSfV1NGifU9jLxZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=m5cmLE0I; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="m5cmLE0I" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1d8ef977f1eso39308495ad.0 for ; Mon, 05 Feb 2024 20:51:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1707195111; x=1707799911; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9JhFREGZ5CoepqB+/CwW4U3bJPSdUrEAa1K7KoVJ2+o=; b=m5cmLE0IfKepqSZF/U0OWk/G6rhhlFerlZvGvrk1+3ZYnJVUOjGOfQbbvkvMQDOJYA xAm0ckY0HubEj3YUrv441QJiDcr8Kbp3x54Dh3Hbt1bpfWTx7plRiSGJbWuZddfHgyTw MbGLhJXE4vgxYLQUuNc5TML2RNC2fHVfTFymcFzLeDaIHbSz6CSL8s1laT1/z79iS6i5 6AEKMNuiIBngEuD1LesVmmwcS6i9HQK83zSJ2XhVgyRbbTvdP7gudjMX8uPu2jWjqeJg GyniACDim7ECaS9VmXab2STh+07Mj1RkgB/tDSl72NJnYxmxYFcPANJI5j15AUbrJcM+ nW5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707195111; x=1707799911; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9JhFREGZ5CoepqB+/CwW4U3bJPSdUrEAa1K7KoVJ2+o=; b=anRbYmOKLrhO1pzFwlcHL8fj4nGr3/hX/rhtPitly15WqdwxYeLeC9gMcGrR6Svrj1 PXr+X5bEsqtwc/AO1Jnm0PnisCV2oWJx/dlbyAKeqd3m5ZmQMQ+RlJU6n4ZtdnaFkC2Z Bnj0G34Aim8AGH0teGy/fZUYTtA5BMLuE8JmAqLXe6NdC2r4nID+h6rN0919DOR93+B1 4QTQECrR5u/oFFyEDql9JL7Chc5AzkOU3yCfATpNr6CpmM4o97AEiUBwNwRPeIz311y5 2yIDLJ0OrV4Ir+EqEg4TYJh553fKpDmjcLLfUJxgd1kV++/nXGIL46Wm4tDvDKaTfSvO UEhA== X-Gm-Message-State: AOJu0YzSKBCxQNeNRDdFK51qgr3OVOsE1AS6B2NLrQWYWn2qR9br2Yaj Yn0rm6ga0/uY/hIaseX5IK2Lc4oGKyscTGOLhiyFw5phdmn7TcC90+DVI81RRUI= X-Google-Smtp-Source: AGHT+IGRmGV2YTayw8tiNwViDSwnb7ENVvumW4Q0sZ8buS1BrLW3DyCvv0saNmMxAqGpr+FG6X5EVQ== X-Received: by 2002:a17:903:192:b0:1d9:9735:ed6c with SMTP id z18-20020a170903019200b001d99735ed6cmr617892plg.14.1707195110770; Mon, 05 Feb 2024 20:51:50 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVGhy+jWQnRvlKs6iECCYvXm5EcplOULkxws/eS8yjzhG90Pk44O/C7u5mnCYQ5msW6peRVAygTbYZzwjh85DaFZb/GvVY= Received: from ubuntu2310.lan (c-67-170-74-237.hsd1.wa.comcast.net. [67.170.74.237]) by smtp.gmail.com with ESMTPSA id jy3-20020a17090342c300b001d95b3c6259sm774613plb.263.2024.02.05.20.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 20:51:50 -0800 (PST) From: Dave Thaler X-Google-Original-From: Dave Thaler To: bpf@vger.kernel.org Cc: bpf@ietf.org, Dave Thaler Subject: [PATCH bpf-next] bpf, docs: Fix typos in instructions-set.rst Date: Mon, 5 Feb 2024 20:51:46 -0800 Message-Id: <20240206045146.4965-1-dthaler1968@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit * "imm32" should just be "imm" * Add blank line to fix formatting error reported by Stephen Rothwell [0] [0]: https://lore.kernel.org/bpf/20240206153301.4ead0bad@canb.auug.org.au/T/#u Signed-off-by: Dave Thaler --- Documentation/bpf/standardization/instruction-set.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst index 1c4258f1c..bdfe0cd0e 100644 --- a/Documentation/bpf/standardization/instruction-set.rst +++ b/Documentation/bpf/standardization/instruction-set.rst @@ -117,6 +117,7 @@ corresponds to a set of instructions that are mandatory. That is, each instruction has one or more conformance groups of which it is a member. This document defines the following conformance groups: + * base32: includes all instructions defined in this specification unless otherwise noted. * base64: includes base32, plus instructions explicitly noted @@ -289,11 +290,11 @@ where '(u32)' indicates that the upper 32 bits are zeroed. ``BPF_XOR | BPF_K | BPF_ALU`` means:: - dst = (u32) dst ^ (u32) imm32 + dst = (u32) dst ^ (u32) imm ``BPF_XOR | BPF_K | BPF_ALU64`` means:: - dst = dst ^ imm32 + dst = dst ^ imm Note that most instructions have instruction offset of 0. Only three instructions (``BPF_SDIV``, ``BPF_SMOD``, ``BPF_MOVSX``) have a non-zero offset. @@ -511,7 +512,7 @@ instructions that transfer data between a register and memory. ``BPF_MEM | | BPF_ST`` means:: - *(size *) (dst + offset) = imm32 + *(size *) (dst + offset) = imm ``BPF_MEM | | BPF_LDX`` means:: -- 2.40.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ietf.org (mail.ietf.org [50.223.129.194]) (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 C5D501E492 for ; Tue, 6 Feb 2024 04:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=50.223.129.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707195118; cv=none; b=geGpqNIKDaxITFer6lew4qXcNJSqUN85H3j9ISMOekGxtZ+foS3DJ+9GkigFix4o/ngCW+np3yagTmji+tqwQpNq/4OgbIiglcZr6CZaHUpeqAHL/aAeI4HD95y1Q3AlsslXu6OX5UBqqvxmiFyzAB8qkPGf7gzYW538YnAv3V0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707195118; c=relaxed/simple; bh=p/5q5OkKZTfQxwzwkR16Lhyfl8fAzmr+t7DoDushcWU=; h=To:Cc:Date:Message-Id:MIME-Version:Subject:Content-Type:From; b=WoChgTmWqd2MtrZQIpcU6BqQpzQukfVd5eSxFXX2V2Qq0kRjewcd2Z+wJm/Lrrxjvmc2zRXWOCVWSdMmm07y/c2klpTOp2ukm4YCiTbvgS40Kpb3Z7t92LoA+8qEXEjXn1F5g+Dn397Q9eVuFHGoFx4+X/lwN2rA4XZJpCyrIec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dmarc.ietf.org; spf=pass smtp.mailfrom=ietf.org; dkim=pass (1024-bit key) header.d=ietf.org header.i=@ietf.org header.b=LgMid5j4; dkim=fail (1024-bit key) header.d=ietf.org header.i=@ietf.org header.b=UD3OkjIs reason="signature verification failed"; dkim=fail (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b=Fef9RTgg reason="signature verification failed"; arc=none smtp.client-ip=50.223.129.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dmarc.ietf.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ietf.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ietf.org header.i=@ietf.org header.b="LgMid5j4"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ietf.org header.i=@ietf.org header.b="UD3OkjIs"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="Fef9RTgg" Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 3308FC14CEFF for ; Mon, 5 Feb 2024 20:51:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1707195116; bh=p/5q5OkKZTfQxwzwkR16Lhyfl8fAzmr+t7DoDushcWU=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=LgMid5j4bzxJ6VbMumqf7W1gTmjjOFSto6z8EqLmg9Qafgz2Wf9OJOvl7ERIMHeIj Dh6cn5lZUzvVKN7bV/EzLdAX2lSqeVsW1bRA93WGFlov/Q8EgqmKHqWPXvI/AEJgO1 fqeR2FYDXiXFY5s5s6LhchTapsewggl31nK6pZLs= Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id E7166C14F6BA; Mon, 5 Feb 2024 20:51:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1707195116; bh=p/5q5OkKZTfQxwzwkR16Lhyfl8fAzmr+t7DoDushcWU=; h=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=UD3OkjIsM4Ee3sTDyY3is50lU/yAhtTByf/CXu1xA/299X8/YUzLm5O1AknJdx0MS BDup+OkGXr33pCUO7BAHkWesHHU+Iuo+DIzbkNsAv2aXcc5r0+QSu7wHTdL05c3uXZ gyxibnKjdBIhsjQnCfw8SzO1hi5i2hP+ypHONalY= Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6C6CC14F6BA for ; Mon, 5 Feb 2024 20:51:55 -0800 (PST) X-Virus-Scanned: amavisd-new at amsl.com X-Spam-Flag: NO X-Spam-Score: -6.855 X-Spam-Level: Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u3Mc0IX8IJdy for ; Mon, 5 Feb 2024 20:51:51 -0800 (PST) Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA642C14F6B9 for ; Mon, 5 Feb 2024 20:51:51 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d918008b99so39244475ad.3 for ; Mon, 05 Feb 2024 20:51:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1707195111; x=1707799911; darn=ietf.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9JhFREGZ5CoepqB+/CwW4U3bJPSdUrEAa1K7KoVJ2+o=; b=Fef9RTggDU2yC8rV6gJWPTsho7UjI7oMXG2Z3FxGSqXhnLalSO01M6/qflvkhiO1Mj FPqiQIu9LYfqQRtNixgAQ3ic6uBlxcsNiqU2FpA5yQqcS3hXmh/gml1PguB/rL3R9zVn 1tN0Fa9tx3WMAO5yIMeOZnt66X4TIQ1HL32ZJGv4dT9lRZNjDyc/fk75pxKe/Awdl6Ug ztckvQ7U3DecVsQAaw6eEvFufg+AkJqgPtVdaK4Z4D7efvvhQYb6SLnNRDrafazzf4Cx DaKkktPJZqU+R29B11dfN/ovVYm7q3HIVHNgPlwc+zFKdVt+FlUiFVA/MV23zDXRmobj G3Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707195111; x=1707799911; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9JhFREGZ5CoepqB+/CwW4U3bJPSdUrEAa1K7KoVJ2+o=; b=Yq6AlsSbS5Vll93Z4e/6GO0nCR5qmLsWMjsN2aLVDVTxMgzMNcZBi95Bv2ahswWucd vSbmFPidj1opx7YJgy5qRd8fyGJ7uU5C+DL++/vuk7cJJkXcb0wPeB0quU3kFEQK9R1O YvI+IIwslrmAYhsv7Qo8HpSwFXf6QlClol7iZXwj5iJqtEKNN7dTJN3UNcZhrOTjIKRc hh/wNfUadq0OMOeDLeIwfx5IFsGJy6+nm9EkL+at3yhjpHD3GpmoQVR0xBOyZjBdp9IN jPN9MBV33NNCXvN2HSsOE5QgHSxwAMs/2WKp5UlyidUHq1enUiErh9CgNTP1ESvq6mMU LMyQ== X-Gm-Message-State: AOJu0YyOhDkjvjqfqo8ElNiFnVNZGMFh6eZ8hlue6ar5hil4UZ4DO2r5 iR1sQ24TzwcJ3YwNF9M8fa3adWdzanEINHNi+Fou8s5zuxMsbSjW X-Google-Smtp-Source: AGHT+IGRmGV2YTayw8tiNwViDSwnb7ENVvumW4Q0sZ8buS1BrLW3DyCvv0saNmMxAqGpr+FG6X5EVQ== X-Received: by 2002:a17:903:192:b0:1d9:9735:ed6c with SMTP id z18-20020a170903019200b001d99735ed6cmr617892plg.14.1707195110770; Mon, 05 Feb 2024 20:51:50 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVGhy+jWQnRvlKs6iECCYvXm5EcplOULkxws/eS8yjzhG90Pk44O/C7u5mnCYQ5msW6peRVAygTbYZzwjh85DaFZb/GvVY= Received: from ubuntu2310.lan (c-67-170-74-237.hsd1.wa.comcast.net. [67.170.74.237]) by smtp.gmail.com with ESMTPSA id jy3-20020a17090342c300b001d95b3c6259sm774613plb.263.2024.02.05.20.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 20:51:50 -0800 (PST) X-Google-Original-From: Dave Thaler To: bpf@vger.kernel.org Cc: bpf@ietf.org, Dave Thaler Date: Mon, 5 Feb 2024 20:51:46 -0800 Message-ID: <20240206045146.4965-1-dthaler1968@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Archived-At: Subject: [Bpf] [PATCH bpf-next] bpf, docs: Fix typos in instructions-set.rst X-BeenThere: bpf@ietf.org X-Mailman-Version: 2.1.39 Precedence: list List-Archive: List-Post: List-Help: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: bpf-bounces@ietf.org Sender: "Bpf" X-Original-From: Dave Thaler From: Dave Thaler Message-ID: <20240206045146.9SdoX1YM3ljcRVe0Q_360ybW0lR6rgHXQtVgNIlubu4@z> * "imm32" should just be "imm" * Add blank line to fix formatting error reported by Stephen Rothwell [0] [0]: https://lore.kernel.org/bpf/20240206153301.4ead0bad@canb.auug.org.au/T/#u Signed-off-by: Dave Thaler --- Documentation/bpf/standardization/instruction-set.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst index 1c4258f1c..bdfe0cd0e 100644 --- a/Documentation/bpf/standardization/instruction-set.rst +++ b/Documentation/bpf/standardization/instruction-set.rst @@ -117,6 +117,7 @@ corresponds to a set of instructions that are mandatory. That is, each instruction has one or more conformance groups of which it is a member. This document defines the following conformance groups: + * base32: includes all instructions defined in this specification unless otherwise noted. * base64: includes base32, plus instructions explicitly noted @@ -289,11 +290,11 @@ where '(u32)' indicates that the upper 32 bits are zeroed. ``BPF_XOR | BPF_K | BPF_ALU`` means:: - dst = (u32) dst ^ (u32) imm32 + dst = (u32) dst ^ (u32) imm ``BPF_XOR | BPF_K | BPF_ALU64`` means:: - dst = dst ^ imm32 + dst = dst ^ imm Note that most instructions have instruction offset of 0. Only three instructions (``BPF_SDIV``, ``BPF_SMOD``, ``BPF_MOVSX``) have a non-zero offset. @@ -511,7 +512,7 @@ instructions that transfer data between a register and memory. ``BPF_MEM | | BPF_ST`` means:: - *(size *) (dst + offset) = imm32 + *(size *) (dst + offset) = imm ``BPF_MEM | | BPF_LDX`` means:: -- 2.40.1 -- Bpf mailing list Bpf@ietf.org https://www.ietf.org/mailman/listinfo/bpf