X-Received: by 2002:a17:90b:3b46:b0:1bc:4bc4:2f64 with SMTP id ot6-20020a17090b3b4600b001bc4bc42f64mr2965646pjb.203.1645518441463; Tue, 22 Feb 2022 00:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645518441; cv=none; d=google.com; s=arc-20160816; b=Cwq3CAX3hyQOTVCBEYo3jmuCmXZEb7otRwnQeeQk5mPoizUiLvu38odm5SEux0WQxv EoBKI4n2g4eyugwFmlQDeNO9N6SRHeZr9tKXBGEHxYhzvAia0nsiTyy48Bkw3VwJYNf0 XuPmht/sm00TfW/BppkPzl3Cv7rakdpgje+0/uF2f0D4vKDuDaJ699Rh+oltmr6H5KbQ x1duA9BTFYQIOnmeUFnVHFZhatuGqj70XSiL5W1NLh7gab9yp09EtIZ/+T8vZSQztjOO yMSPec/4eD6izYFTNr8o3edYZG5AvIRsUxNK/HlE7W8lGV65T6sZP3u0KAjzZcdZV0K6 P4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Djpi2wqg5KZNuxo5tXaJwLf7ivkdFtpr27BC3EwWuGg=; b=PbnMYJA75VSv3/w2+9vbvl4elyNSoRxcfkVv3OAKJz9IVMRo6stOulxfkVU+rUl/D2 ibV2PVuf+AD1KjT5OPG8+PTBMV35TUQ2v6eh15wl1LCSmw0DGPo+2Grn0kn1aqlAbMZi q7LKYZtVX4cVE6O43ut/6qpcwJg7PbGj99aMdk8UEzfG3JhkZcqP2Ia5+O/Icm97ra02 WSkQ7NUC4xymzIzZYFeY095U26+3Jum68+r8/txhLOALhy2k/a0OeNRBaWKxIiEQlwzA NCpvtajOnPMmPtzsQ/pMOenRKD+XIVpLzAbNdtL1I0GTjC83B+DRZshEoeOtw+xPNt8m z9Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=UWKGI6yv; 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=NONE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11si15059481plk.21.2022.02.22.00.27.06; Tue, 22 Feb 2022 00:27:21 -0800 (PST) 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=@suse.com header.s=susede1 header.b=UWKGI6yv; 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=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbiBVITp (ORCPT + 99 others); Tue, 22 Feb 2022 03:19:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbiBVITo (ORCPT ); Tue, 22 Feb 2022 03:19:44 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC18154706; Tue, 22 Feb 2022 00:19:19 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9BF2221112; Tue, 22 Feb 2022 08:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1645517957; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Djpi2wqg5KZNuxo5tXaJwLf7ivkdFtpr27BC3EwWuGg=; b=UWKGI6yvKyZY26UvlDfM3wsvaAujuAK4TrF9o82hgRQEUaCpds/6xAs2YERbuyn9gK2gLl XLf9Wp96tvXbWlRb/D3YJEx/Ty7WRlSl1aYE8SG8+9NbMhEDRk8cSDIqc1QVl+IyV2/M1x trWI3sEP0GWo5DTyAk4usGMG58quqKA= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 65AEAA3B84; Tue, 22 Feb 2022 08:19:17 +0000 (UTC) Date: Tue, 22 Feb 2022 09:19:14 +0100 From: Petr Mladek To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Gaynor , Wedson Almeida Filho , Gary Guo , Boqun Feng , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Joe Lawrence , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , live-patching@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v4 02/20] kallsyms: increase maximum kernel symbol length to 512 Message-ID: References: <20220212130410.6901-1-ojeda@kernel.org> <20220212130410.6901-3-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220212130410.6901-3-ojeda@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sat 2022-02-12 14:03:28, Miguel Ojeda wrote: > Rust symbols can become quite long due to namespacing introduced > by modules, types, traits, generics, etc. For instance, > the following code: > > pub mod my_module { > pub struct MyType; > pub struct MyGenericType(T); > > pub trait MyTrait { > fn my_method() -> u32; > } > > impl MyTrait for MyGenericType { > fn my_method() -> u32 { > 42 > } > } > } > > generates a symbol of length 96 when using the upcoming v0 mangling scheme: > > _RNvXNtCshGpAVYOtgW1_7example9my_moduleINtB2_13MyGenericTypeNtB2_6MyTypeENtB2_7MyTrait9my_method > > At the moment, Rust symbols may reach up to 300 in length. > Setting 512 as the maximum seems like a reasonable choice to > keep some headroom. > > Co-developed-by: Alex Gaynor > Signed-off-by: Alex Gaynor > Co-developed-by: Wedson Almeida Filho > Signed-off-by: Wedson Almeida Filho > Co-developed-by: Gary Guo > Signed-off-by: Gary Guo > Co-developed-by: Boqun Feng > Signed-off-by: Boqun Feng > Signed-off-by: Miguel Ojeda The livepatch selftest still pass. Feel free to add: Tested-by: Petr Mladek # livepatch Acked-by: Petr Mladek # livepatch Best Regards, Petr