From patchwork Mon Oct 17 13:27:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rui Li X-Patchwork-Id: 3463 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1448914wrs; Mon, 17 Oct 2022 06:31:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43fAgCD9LKj8VXqMT4f/crRDwjFq1VF2h3VyPBDzQRGFx1pOpRtxe+r3DWVV1S+341ZAz+ X-Received: by 2002:a05:6402:1f06:b0:457:149d:beaa with SMTP id b6-20020a0564021f0600b00457149dbeaamr10231882edb.238.1666013517644; Mon, 17 Oct 2022 06:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666013517; cv=none; d=google.com; s=arc-20160816; b=E2DtRSIS8hB9pHg4LyrnQq3+ACZye7DMd6KZblUZZ4zbKHHSLK3jDmjfFLMJN4hJN6 qdpuI8dDitn3Rd6ySEpMv3GigvGLdYLH2rIsF7ab9Fr4Yz03xsJ6oPhiV1tbMtFIbAut 8C6rpr+pqiXRx9UVRKrblgluQpADThropf/uXwN4UQGtnF5Ojl6pMPeLjUF7jHnRSQBP fAxqgJLGfxGy655+qQtSJGejqfq6CrB7fn+sNazYECfat0pHVrYoIlXch0G3uMu71q5w b6LsJSh7NbJO1hiDnV5jphN41KYNnpFsste7lamQxsW9NMdEqRLCLvsECpLMkmt8ZjCJ d30Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t1dQDWM4/VSnTQoKiY6vSDDALOOAIL8qqA0imL4WIO4=; b=Xq0qnucVOGbknT+vUXKvCgKRnI2B4MxnOtClVLYub2f7PpOPRX2XS7vY4ng2e1OxHP wO4mwcjoVZu6q42Ir/JnLIb5AagrfFzAXkiHOVQwA1PveVVDltCkcLvOD9Tf5eJ0Wnbt BJb+hG0NW7zM6vQu3byn/3J0PcEslndU6mLvsJuBqGkCOKxIOb1go5IU/fbKpe1hw5Gl 6DS2kr36pmYqZQ/mAwcUULwqbu654uV1JGHZ0ahxcZ2GCKZWXrHPvQESfEcvU7MmaGJ0 neDSvCgklYEulw8qQRqK1vLZyBpFlbp1H/k3cWIXngIy3o7mMGT1dU8v8/BrIIk+5t3Z F+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=cVW2Ijnp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=lirui.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170906975000b0078d78760c1asi10558956ejy.95.2022.10.17.06.31.29; Mon, 17 Oct 2022 06:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=cVW2Ijnp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=lirui.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbiJQN1r (ORCPT + 99 others); Mon, 17 Oct 2022 09:27:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiJQN1g (ORCPT ); Mon, 17 Oct 2022 09:27:36 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B3595E56D; Mon, 17 Oct 2022 06:27:33 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lirui.org; s=key1; t=1666013251; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t1dQDWM4/VSnTQoKiY6vSDDALOOAIL8qqA0imL4WIO4=; b=cVW2Ijnpl3yuVPTSEwbt8IR4vwmXIZN40rvN3st9EcwEDEffHn4WZccJzE6SqAIer/GM6Z zwt92dsZnr0ICUQ+w89TufdIOeELrqX9EU6sjEAVTo3z6iqhuKptlXddiN+lWr7HLXCGVv zWCKX8lwoRvAUY2Rep7vSUj+gP6FlOUCqJupEhqN8ukXzLpuRmzy7s4t7dAxF5jyGibe4o aWZ2o7uCXkf6DVYrBsPEzJKK+9URxtV/aYEi7i+OkdSjnbdggMNSAFzdyNwtmQqgIX2VJB f94ivLHxfoK3vAeio3lp0gAquA+PTNOGcplnTEmgEyUuSatFAoi8TIfC19Yyfg== From: Rui Li To: Alex Shi , Yanteng Si , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rui Li Subject: [RESEND PATCH 1/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation Date: Mon, 17 Oct 2022 21:27:04 +0800 Message-Id: <9de67db2daac59bfb9af4c02f262bb43cc63c4c5.1666009558.git.me@lirui.org> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746941789932562428?= X-GMAIL-MSGID: =?utf-8?q?1746941789932562428?= Translate the following documents into Chinese: - userspace-api/ebpf/index.rst - userspace-api/ebpf/syscall.rst Signed-off-by: Rui Li --- .../zh_CN/userspace-api/ebpf/index.rst | 22 +++++++++++++ .../zh_CN/userspace-api/ebpf/syscall.rst | 31 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 Documentation/translations/zh_CN/userspace-api/ebpf/index.rst create mode 100644 Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst diff --git a/Documentation/translations/zh_CN/userspace-api/ebpf/index.rst b/Documentation/translations/zh_CN/userspace-api/ebpf/index.rst new file mode 100644 index 000000000000..9f0af275eb69 --- /dev/null +++ b/Documentation/translations/zh_CN/userspace-api/ebpf/index.rst @@ -0,0 +1,22 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: Documentation/userspace-api/ebpf/index.rst + +:翻译: + + 李睿 Rui Li + +eBPF 用户空间API +================== + +eBPF是一种在Linux内核中提供沙箱化运行环境的机制,它可以在不改变内核源码或加载 +内核模块的情况下扩展运行时和编写工具。eBPF程序能够被附加到各种内核子系统中,包 +括网络,跟踪和Linux安全模块(LSM)等。 + +关于eBPF的内部内核文档,请查看 Documentation/bpf/index.rst。 + +.. toctree:: + :maxdepth: 1 + + syscall diff --git a/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst b/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst new file mode 100644 index 000000000000..56bfa9bc7887 --- /dev/null +++ b/Documentation/translations/zh_CN/userspace-api/ebpf/syscall.rst @@ -0,0 +1,31 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: Documentation/userspace-api/ebpf/syscall.rst + +:翻译: + + 李睿 Rui Li + +eBPF Syscall +------------ + +:作者: + - Alexei Starovoitov + - Joe Stringer + - Michael Kerrisk + +bpf syscall的主要信息可以在 `man-pages`_ 中的 `bpf(2)`_ 找到。 + +bpf() subcommand reference +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. kernel-doc:: include/uapi/linux/bpf.h + :doc: eBPF Syscall Preamble + +.. kernel-doc:: include/uapi/linux/bpf.h + :doc: eBPF Syscall Commands + +.. Links: +.. _man-pages: https://www.kernel.org/doc/man-pages/ +.. _bpf(2): https://man7.org/linux/man-pages/man2/bpf.2.html