From patchwork Thu Sep 5 11:03:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lin Yikai X-Patchwork-Id: 13792163 X-Patchwork-Delegate: bpf@iogearbox.net Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2079.outbound.protection.outlook.com [40.107.255.79]) (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 C22C61991B0; Thu, 5 Sep 2024 11:05:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.79 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725534347; cv=fail; b=cQgWc0XGyehKSiFq9hIEsESSfAgPCz3XPwNQH7ylT4guHyQOp5UyNRdSlyl51lrdq9FK0z3pPOEPxTjdIh2AsYBQ6EcsuWiqd0NdI7smAlkI2K/9Qt8hjFMITF7VKeA3kB43836AEowog7ZX+XFFLt5tqHZLJS3kMSqqK+tqEVI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725534347; c=relaxed/simple; bh=UE0hOfGsiJ0HwmUYoGQneBeHFZdsY+xZselb7lCoa5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=N/bvyXLZ3fogmSRg6CErN2YDGP65BX26Pp8rAYDkwr0GJ/ZJR0xPIEhQSQ4VnlwylQ4yKuTut5CeeNsRYED9crc5UDb9pDU4FZhm3H4/1qotzmXckMxdWwCd9y9UqmKBHXW7IRlrLIdPrGJ1RrrF4m3AS7NU1h8yYC3MQidngXU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=SIKg8tjG; arc=fail smtp.client-ip=40.107.255.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="SIKg8tjG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TuVTTgxyyxluYe1BzQEEHx373b23Yq4k4WcyRhQoBpEi0/Ql/P4E0ulGjnbfYy13S+e/gtdgAItRFCkcYPjGKOjKCI41BwMQR+E1wgtjpk9McQjULUkY+aroqfYN6t6XpNxqtIIj636+I+Kqx8bkSTRG936cUPhzyquh8Wh3LQMbwfhYYSgOHJWPbArBji+jgtWx3Gpuq9lRfXfAAUGxEW4X3Xb6Hd5xJgsSuKrWYJ5KfnYnCsUcT2PBYzrOwPO59/y7W4ViIWqiosQqqbZXlu8bE22+fSotgLcoy8rHcANpOVEEXwWrk+lEIKTJia/d3B40QrtyuoGqBRhJ1dxfHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tWVBLqv9LI2cNNAZFZTVPo+c8CxN8doYLzH60UehTGA=; b=fzid1FpXDHkRIoxdPAk32Jv4azmI3yS/82idSgUjnYN8Nt7laDp3Ug6vRR4l0YnJ2fQmg95saXQwqP5wx66lG1JgPr79JRUg1Qq+jIEL6pOvvTZ6g0nnRP34j8m6/mP5pKoY1qil4ovoovRL8NfX5LyZrJQ/aakIzvbAqhhysk2bAqHlX9igaTAJcKTUs2VMjHMiPyCGu2c80kj+leGLnIjSbW+F/LO7Dfolnq+KctG0K5rpftd8y5lnFTtDm/c0FoHTLN3TGPTo6nwujmlzLpA95+h1AwuyrzDc/bQE4N80jgMn2W49f9pwuhq6BOyBkgtuVT8Ocmjj807FI+Vd5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tWVBLqv9LI2cNNAZFZTVPo+c8CxN8doYLzH60UehTGA=; b=SIKg8tjGw/0XtxqRHi3t76eKWU9M8E5BQpuLu+QMxElrFjFZefyOMnSoZ3tK6QQWkmkLovk1yBbjCiZ7E2oKCurWagMAadV19UgmFyOIP2Ja9MK0d6MWYQUKRSVtBIh+g/iDijsfXMH/8bYIR0JJF38EQQNL+Umn342XZGmNxmBlsEuB5ytGQuNwQlk/CLansPfbaTpHw18JM+HFVEAyDRcgorMkWgCGTRBM059xKlqqM1oQRjZHTgbVVPDrCV2ZLkjDLHGxhqt4dhd+bUt6d7q/Yi6uDpF0Atn7+7051qaM22utNylDbwSZhee956CQFKBrXum8938XY796tp87Ww== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from KL1PR0601MB4324.apcprd06.prod.outlook.com (2603:1096:820:73::6) by SEYPR06MB6033.apcprd06.prod.outlook.com (2603:1096:101:d7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.28; Thu, 5 Sep 2024 11:05:39 +0000 Received: from KL1PR0601MB4324.apcprd06.prod.outlook.com ([fe80::f8ee:b41e:af25:202]) by KL1PR0601MB4324.apcprd06.prod.outlook.com ([fe80::f8ee:b41e:af25:202%7]) with mapi id 15.20.7918.024; Thu, 5 Sep 2024 11:05:39 +0000 From: Lin Yikai To: bpf@vger.kernel.org Cc: opensource.kernel@vivo.com, yikai.lin@vivo.com, Quentin Monnet , 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 , Mykola Lysenko , Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Rameez Rehman , Kui-Feng Lee , Alan Maguire , Yuran Pereira , Dave Marchevsky , Jordan Rome , Chuyi Zhou , Menglong Dong , Tony Ambardar , Nikolay Aleksandrov , Abhishek Chauhan , Geliang Tang , Hou Tao , Ilya Leoshkevich , "Jose E. Marchesi" , Shung-Hsi Yu , David Vernet , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH bpf-next v1 2/3] bpftool: fix some typos in bpftool Date: Thu, 5 Sep 2024 19:03:06 +0800 Message-Id: <20240905110354.3274546-2-yikai.lin@vivo.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240905110354.3274546-1-yikai.lin@vivo.com> References: <20240905110354.3274546-1-yikai.lin@vivo.com> X-ClientProxiedBy: SI2PR01CA0036.apcprd01.prod.exchangelabs.com (2603:1096:4:192::22) To KL1PR0601MB4324.apcprd06.prod.outlook.com (2603:1096:820:73::6) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR0601MB4324:EE_|SEYPR06MB6033:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c68ff6f-a347-4c93-e849-08dccd9aacd6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Bz87Bm5Uh/CW9m6/njBT25+AmFHFsHj?= =?utf-8?q?AyeZDgs2TlPDRLiK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W3Mzx15PY0igeyzogIVcRteZpoDmOJV1DWkPQGmqXlvP5cmiTkz?= =?utf-8?q?n++SMEjL6xXWsoAFI3rbypXPT14xuSyZ4rTmnGykmWkpBXrlAe+upV6zpDIEU643t?= =?utf-8?q?btPLqVHI/n/K9y6YsVVPfN3OCAbnkUYXA2kjBmu9FZIqy78vkBau7UxMhrMKccjlb?= =?utf-8?q?FY4XCrnDrpH4p5BgWC3nM4Qbz+N7t922L/wg7+VWjSJ012WDogFiMe/+qIWZEAihy?= =?utf-8?q?7NfCzJMLJYQdUDNtzZ+ggGeUa32GSfV2RBHUHOOqKHyF5f7vE2h4HmsdbaIxba+Y3?= =?utf-8?q?s8q0xXwT9Qt/GMN2BZS8C2Ub9xsIN4IUw+kXSLxOWcBRs/a0B+BC7RC7yNfqEjm47?= =?utf-8?q?/xreOVyJQLvlc5XZMy/2NOve9bwDl5SBdpLDc4Kiz12io6Fjl/n57jdlf3f4RgJO3?= =?utf-8?q?VNkt/m2TDwmr/MWzkAl1bPzMnEyfqveQ+Q=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:KL1PR0601MB4324.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?zdZh7zuq9hBarvu3xTDTsNmqSak1?= =?utf-8?q?NeK+KAGawjAI4bFxDP0H8o7qtd8EJjxfSg5zobMArubcKTZ972914de/U9qR3E86k?= =?utf-8?q?SWMmqwscOKTSdechKO+APJA+TGmV6WOKCX+5uQ0cJeSIJI5HH1nBdN+GS0AsoOJqu?= =?utf-8?q?FtUSMceF6CKOypA1mAJSf64fawLwOin3u3KSjIiequbsJ2STHbx05RnuqKZ8Yy6n6?= =?utf-8?q?PF7cHv2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dNkvTy6MDWuwJo/uX6xaUKrgmo60PTY9DLln2hZ?= =?utf-8?q?7rvuRxPrtUtsP+dEWf/wDK8REDzSl/4kkC1d4wUOGNwm9xkGc+O3l5ebfCvtiPRu5?= =?utf-8?q?5FcAx/t7zGjd8jIP/lAhv9ucj4CNxvXWgqRwnsAT5Uq+NB3mCXRFoH/ARRroZOsFk?= =?utf-8?q?RiPARzqJNr7WHnUFTz8DtBwctZid1emcE1DCo7hyxDIc5i40Ncm+pdxGDyYDnZFo9?= =?utf-8?q?ih9SzsOtxVjRQkFdgphySShGmq+gAbfaCAlQxp1t9J4LBVUCzdku1aHDsTCoKhxyV?= =?utf-8?q?ogsiYshTZ9rMw2nTV7Nxuty6JXHKz24TZkiMxqqiaO/CADp64RnWtC1GbZIZybx5j?= =?utf-8?q?09QC7tnrO3LexVGQLf256uedmNFiYM8SFreOiHf1aXrB/FGsuzzaNXHeRxuCQBFpm?= =?utf-8?q?shjU4ro8md7X?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c68ff6f-a347-4c93-e849-08dccd9aacd6 X-MS-Exchange-CrossTenant-AuthSource: KL1PR0601MB4324.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2024 11:05:39.0077 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VWV03yr2V/RxYmGt88kd/PVxtapqZi2q09EnSoXEMWPGtzbrurKvxVyQHGLKDMzsMxDF8kXS6e6MgHLsBnM0Kw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6033 X-Patchwork-Delegate: bpf@iogearbox.net Hi, fix some spelling errors in bpftool, the details are as follows: -in file "bpftool-gen.rst" libppf->libbpf -in the code comments: ouptut->output Signed-off-by: Lin Yikai --- tools/bpf/bpftool/Documentation/bpftool-gen.rst | 2 +- tools/bpf/bpftool/feature.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/bpf/bpftool/Documentation/bpftool-gen.rst b/tools/bpf/bpftool/Documentation/bpftool-gen.rst index c768e6d4ae09..1b426e58a7cd 100644 --- a/tools/bpf/bpftool/Documentation/bpftool-gen.rst +++ b/tools/bpf/bpftool/Documentation/bpftool-gen.rst @@ -104,7 +104,7 @@ bpftool gen skeleton *FILE* - **example__load**. This function creates maps, loads and verifies BPF programs, initializes - global data maps. It corresponds to libppf's **bpf_object__load**\ () + global data maps. It corresponds to libbpf's **bpf_object__load**\ () API. - **example__open_and_load** combines **example__open** and diff --git a/tools/bpf/bpftool/feature.c b/tools/bpf/bpftool/feature.c index c754a428c8c6..4dbc4fcdf473 100644 --- a/tools/bpf/bpftool/feature.c +++ b/tools/bpf/bpftool/feature.c @@ -196,7 +196,7 @@ static void probe_unprivileged_disabled(void) { long res; - /* No support for C-style ouptut */ + /* No support for C-style output */ res = read_procfs("/proc/sys/kernel/unprivileged_bpf_disabled"); if (json_output) { @@ -225,7 +225,7 @@ static void probe_jit_enable(void) { long res; - /* No support for C-style ouptut */ + /* No support for C-style output */ res = read_procfs("/proc/sys/net/core/bpf_jit_enable"); if (json_output) { @@ -255,7 +255,7 @@ static void probe_jit_harden(void) { long res; - /* No support for C-style ouptut */ + /* No support for C-style output */ res = read_procfs("/proc/sys/net/core/bpf_jit_harden"); if (json_output) { @@ -285,7 +285,7 @@ static void probe_jit_kallsyms(void) { long res; - /* No support for C-style ouptut */ + /* No support for C-style output */ res = read_procfs("/proc/sys/net/core/bpf_jit_kallsyms"); if (json_output) { @@ -311,7 +311,7 @@ static void probe_jit_limit(void) { long res; - /* No support for C-style ouptut */ + /* No support for C-style output */ res = read_procfs("/proc/sys/net/core/bpf_jit_limit"); if (json_output) {