Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5865756rwi; Tue, 18 Oct 2022 05:21:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qM+ge4RTpVOmS1TNIgZKbfD0ySN7h2Eb0f2jea6nZFalpIS94fAGPcyiYYdzpE35Hddhd X-Received: by 2002:a05:6402:2816:b0:434:ed38:16f3 with SMTP id h22-20020a056402281600b00434ed3816f3mr2378661ede.116.1666095663871; Tue, 18 Oct 2022 05:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666095663; cv=none; d=google.com; s=arc-20160816; b=Yh8boszpGrMcZ3dLjxd/xCl2/rM+GVZ7/4gj264s8EWQgdKH4FLwYcm5d53Br1RdMW a6YLGWyjtITWA7hmQCnFQEyDvG59JQcMSQVkUJh5cFRQwZIPR2uTVXE9ReGS5H3XUlaq o7NTn55dB9S1f2IU0NrIL+NV7+0yg6XRPbeBQifJ/MzCjehvKoeeXdJl11NzCPgZT98x NDueViurVrF40/PSvZRxaZmYqocFiwZM9feyGWiQWPPVFQBxWiWApJ0y7EiWXRe2BulD jmLdgXn2Rhsf+U8QDC+lf06Aod96tm69+7d5ucBWF+MHb7cgdlr7zLqqrzWWXXT+M0PD MNcA== 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=hupgNoQdpyp2o8IVUE4hcgxanPErrHi/bqHICjKXEEs=; b=J5DxvRAvv6aw1aBEDHccI0X+dJ5z0mHEqgAGtY+zvIQdSSKz0n7XSnkSYdOIk19h4W hjnQUuabBgcpETSb9R+ZCgjAyZeUb+DuM8kqVPEH1WnfyfxV3to7EFC5X+QvbRvCHueB qKqUCcIZClETutpLSxvYE+e9NYdaMaBUoeJy0ee82nDnDBpZzoA1nIv3TqMv9BuX0tzF FkLGgHjoNRGfUkVNHKvJldI78RH1ATraZIchStDJVd+aThrktabtdQ61noFlskshOtzJ 6JWhecYc0g8W334RAtVam5o2V7CaU82+R0B6dohZZA+0TmpkoCncsRdQvHkrMyaDdsiB OOXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lirui.org header.s=key1 header.b=mrQkA5WV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw5-20020a1709066a0500b00787aba35b7asi10668243ejc.102.2022.10.18.05.20.36; Tue, 18 Oct 2022 05:21:03 -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=mrQkA5WV; 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 S230098AbiJRLz1 (ORCPT + 99 others); Tue, 18 Oct 2022 07:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiJRLzZ (ORCPT ); Tue, 18 Oct 2022 07:55:25 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2200997EF3; Tue, 18 Oct 2022 04:55:24 -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=1666094122; 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=hupgNoQdpyp2o8IVUE4hcgxanPErrHi/bqHICjKXEEs=; b=mrQkA5WVTIf9mfixRtZIuewlQflouJg2JZZeYBeVsipJEW9MPIkF39gS+adsgBMR+cIHZD Ri1CLhr7Ok+dABjxHV00/Qkgw40ZEKGGcW1IrJfNqvlqdQJKfH/AZU+SAVQOG6A9Ft/Ye3 /XkzhfCRPquaROrrmV0KJZXqhVpGIg8AfPdz2S1A82Zwn9101Dut++3PTAozB69agaSNuP lzpyVjuGeJfgutbD09mbqkcqY+vi98zSksWC3oWNYmyGKTa60qw6ZlNIAeHfsWbUjdPLnS FmY/pNs890hOJa7RvROHcYQ8ALUxx1FsFiIJimh2XqpFycTjvB1McmxPRIOjpQ== From: Rui Li To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Alex Shi , Yanteng Si , Jonathan Corbet , Wu XiangCheng , Rui Li Subject: [PATCH v2 1/2] docs/zh_CN: Add userspace-api/ebpf Chinese translation Date: Tue, 18 Oct 2022 19:54:52 +0800 Message-Id: <8d032bf9a69ac6703260ac91408562c562c03f2d.1666093699.git.me@lirui.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Translate the following documents into Chinese: - userspace-api/ebpf/index.rst - userspace-api/ebpf/syscall.rst Signed-off-by: Rui Li --- Changes since v1: - Translate bpf subcommand title - Align title - Add space after doc path --- .../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..d52c7052f101 --- /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..17515728f544 --- /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() 子命令参考 +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. 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 -- 2.30.2