From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EAD9C43217 for ; Sun, 13 Nov 2022 02:44:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234941AbiKMCop (ORCPT ); Sat, 12 Nov 2022 21:44:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbiKMCom (ORCPT ); Sat, 12 Nov 2022 21:44:42 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C03511146; Sat, 12 Nov 2022 18:44:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PFC/3gpZ/w6uCN7OIH1RY890hMXcXfGXd92XAeM8pJY=; b=Ny1dJjzGyl4ZWzd34xFjfvi7ac rKKtpQ0qL2nD4hxEyZB2x0V2IXXLrRo0olJYKASn7Be+O8UNBjMwojK7ZIEfvAi5GCH1POJxXrfB1 PODWL7PxfXn/Mz1WzB8Kvg6FAthsp39/8IUZZRO6zLeRTU/26PHAQX+Zl42K/xF09udZlAmZF6OZ9 OSBcyufEPZKs6WndMhGQ0Ii4YUTWEcxL6a/ZGpNIjJsN3fT8pW2tAdQD3fTRQNe7MSCzcZhmcQ3/d TJ+nVkQgohLawzY8YG5FIrarkP1/z+6ewSSTZPGTIVEQsrHBpDRmpV6+QMYq+IjhaO/0Hk1s50zdz MoXR3tzQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ou2yw-009APa-FH; Sun, 13 Nov 2022 02:44:26 +0000 Date: Sat, 12 Nov 2022 18:44:26 -0800 From: Luis Chamberlain To: Zhen Lei Cc: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Alexei Starovoitov , Jiri Olsa , Kees Cook , Andrew Morton , linux-modules@vger.kernel.org, Steven Rostedt , Ingo Molnar , David Laight Subject: Re: [PATCH v8 0/9] kallsyms: Optimizes the performance of lookup symbols Message-ID: References: <20221102084921.1615-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221102084921.1615-1-thunder.leizhen@huawei.com> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 02, 2022 at 04:49:12PM +0800, Zhen Lei wrote: > v7 --> v8: > Sort the symbols by name and implement kallsyms_lookup_name() using a binary > search. The performance is more than 20 times higher than that of v7. Of course, > the memory overhead is also extended to (3 * kallsyms_num_syms) bytes. Discard > all implementations of compression and then comparison in v7. > > In addition, all sparse warnings about kallsyms_selftest.c are cleared. Awesome work, I can't find a single thing I hate about this, but my biggest conern is the lack of testing so I'm going to merge this to