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 X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4CB3C433E0 for ; Wed, 17 Mar 2021 04:59:41 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4509864E28 for ; Wed, 17 Mar 2021 04:59:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4509864E28 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lMOHN-0003sS-5V; Wed, 17 Mar 2021 00:59:33 -0400 Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1lMOHM-0003sN-12 for kernelnewbies@kernelnewbies.org; Wed, 17 Mar 2021 00:59:32 -0400 Received: by mail-vs1-xe2c.google.com with SMTP id l27so392216vsj.4 for ; Tue, 16 Mar 2021 21:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8JrKnQ/PlKXWO2+ym4hdRT4F+acJ/EMn9tsfPHFC+Z0=; b=bXPZUBBKllCKKB3ZEdCFTgmyYxjaz5jqeyX2hHLUygqlvIRY3nlJ/DXapBop8tpkpj SJjmRsOFhS+jTFIOsKEHp5FttzVjU0643vjy3kwyirEtx5T8abHZZiAiq+yhSf8EgN4f czdmpaLIPjsxRgysYvBBoEXwFkgUs8GxTs7q24copKlVNfho2+U+W5kSkWT/6FZGL5IG B16GQvCcXX0SgSLBEseZUt8iDFYcnMGwTZA5mlWt3GdqxdtrocU6MgJX9VHK/WI+fMzq LSZD/UJ9Ry6/OIcFud9he2bQWSkQIT1ukjpfEV3BjT+cLdKcBSQGbKC1M8w50MqHLv+d uFNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8JrKnQ/PlKXWO2+ym4hdRT4F+acJ/EMn9tsfPHFC+Z0=; b=CDfuj0ZYag0+xAoQ+FtZiB5xehEbS3BVlEjUIwdoHrWSErKwGB4aLvVUzBjp5hbZz/ BRAgeOrqdeztJYeCq4i0ZYmnFQtJyvnx9uMbHhNwV+k9meiR05SeJz6WUtQ6ohS7J3An P1+PZT3H3JiorprQjqlxs5d5yA/i2304+DOB5mlo765Luv79rry+Xm9tZsOtz+WgikLD ckRunBdeGE4riKAmGbPDWOMWgk5lzp+ABtEO3LRTw4lQMihBMIgPXbypvwMqruwKXqTc wNDkz5v+Z0QtCDHIsv7aBR+e/eDvtZXTYpfDEby+X5UxKGNHAaQdMyu2vYi/s7Aod3CH 5thA== X-Gm-Message-State: AOAM533jJIUvcN/w/pqjqKyMeEu6lIJUDMuGM0oY6FywW7PQ5mBRY3eK x3YI62lWURHfF8dFia3VIjzLCOd0K+/SrjzOVZRT8F/RAjkW/w== X-Google-Smtp-Source: ABdhPJzx4W1ro29BUaW2rELZu4NCnlpBYC/SSRr86aJZpia0pCudHq4jlcEIEDNMdZnwiL//rq0LCZj8mjsGwHKB15g= X-Received: by 2002:a67:ef52:: with SMTP id k18mr1843354vsr.7.1615957170792; Tue, 16 Mar 2021 21:59:30 -0700 (PDT) MIME-Version: 1.0 References: <229754.1615328708@turing-police> In-Reply-To: <229754.1615328708@turing-police> From: jim.cromie@gmail.com Date: Tue, 16 Mar 2021 22:59:04 -0600 Message-ID: Subject: Re: is there an efficient module_is_builtin() test ? To: =?UTF-8?Q?Valdis_Kl=C4=93tnieks?= Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============9214220509534676636==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============9214220509534676636== Content-Type: multipart/alternative; boundary="000000000000232c8d05bdb459df" --000000000000232c8d05bdb459df Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 9, 2021 at 3:25 PM Valdis Kl=C4=93tnieks wrote: > On Tue, 09 Mar 2021 12:55:14 -0700, jim.cromie@gmail.com said: > > > To use the index, I need &dyndbg_sites[], and that only works > > for builtin-module's callsites. For loaded modules, I can/have > > added a pointer to the section into module load_info, giving me > > the base I will need for the ! builtin branch. > > > > I just need a not expensive is-it-builtin (modref) > thanks Valdis, the back and forth helped. So, to follow up, the above is embodied here; https://lore.kernel.org/lkml/20210316050801.2446401-1-jim.cromie@gmail.com/ in the add index patch, near 13/18 --000000000000232c8d05bdb459df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Mar 9, 2021 at 3:25 PM Valdis= Kl=C4=93tnieks <valdis.kletn= ieks@vt.edu> wrote:
On Tue, 09 Mar 2021 12:55:14 -0700, jim.cromie@gmail.com said:

> To use the index, I need=C2=A0 &dyndbg_sites[], and that only work= s
> for builtin-module's callsites.=C2=A0 =C2=A0For loaded modules, I = can/have
> added a pointer to the section into module load_info, giving me
> the base I will need for the ! builtin branch.
>
> I just need a not expensive=C2=A0 is-it-builtin (modref)

thanks Valdis, the back and forth helped.
=
So, to follow up, the above is embodied here;
in the add index patch, near 13/18
<= /div> --000000000000232c8d05bdb459df-- --===============9214220509534676636== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============9214220509534676636==--