public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Denis Efremov <efremov@linux.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>,
	Michal Marek <michal.lkml@markovi.net>,
	Emil Velikov <emil.l.velikov@gmail.com>,
	linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] modpost: check for static EXPORT_SYMBOL* functions
Date: Mon, 29 Jul 2019 12:16:29 +0300	[thread overview]
Message-ID: <e2b5607f-0f74-41c6-a83d-5a22d6828778@linux.com> (raw)
In-Reply-To: <20190729151351.24f9eeb9@canb.auug.org.au>

> Just a reminder that some of us (just me?) do well over 100+ builds per
> day ...  if this can be optimised some what that would be good.

These measurements for the worst case (allmodconfig). Is it possible to 
measure the slowdown in your case? How it will perform on your typical 
workflow?

Looks like it is possible to optimize it, but I need some hints from 
Masahiro on how to do it properly. Because I don't know how to match 
__ksymtab_<symbol> with the <symbol> without an additional loop. 
Introduce another hash table?

The first loop from this patch could traverse only the exported symbols 
instead of all symbols. But in this case, I don't know how to break 
early from the loop because there can be many symbols with the same name 
but with the different scope (static/non-static).

For example, ring_buffer_size:
kernel/trace/ring_buffer.c
4334:unsigned long ring_buffer_size(struct ring_buffer *buffer, int cpu)
4347:EXPORT_SYMBOL_GPL(ring_buffer_size);
And
drivers/usb/misc/ldusb.c
125:static int ring_buffer_size = 128;

Or for, nfs4_disable_idmapping:
fs/nfs/super.c
2920:bool nfs4_disable_idmapping = true;
2930:EXPORT_SYMBOL_GPL(nfs4_disable_idmapping);
fs/nfsd/nfs4idmap.c
48:static bool nfs4_disable_idmapping = true;

Regards,
Denis

  reply	other threads:[~2019-07-29  9:16 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-14 15:28 [RFC PATCH] modpost: check for static EXPORT_SYMBOL* functions Denis Efremov
2019-07-15 14:43 ` Emil Velikov
2019-07-27 12:55 ` Masahiro Yamada
2019-07-27 19:13   ` Denis Efremov
2019-07-28  2:00     ` Masahiro Yamada
2019-07-28 10:09 ` [PATCH] " Denis Efremov
2019-07-29  3:29   ` Masahiro Yamada
2019-07-29  9:51     ` Denis Efremov
2019-07-29  5:13   ` Stephen Rothwell
2019-07-29  9:16     ` Denis Efremov [this message]
2019-07-29  9:32       ` Masahiro Yamada
2019-07-29 12:40       ` Stephen Rothwell
2019-07-29 12:52         ` Denis Efremov
2019-07-29 13:07           ` Stephen Rothwell
2019-07-29  9:22 ` [PATCH v2] " Denis Efremov
2019-07-29 12:20   ` Stephen Rothwell
2019-07-29 12:47     ` Denis Efremov
2019-07-29 14:18 ` [PATCH v3] " Denis Efremov
2019-07-29 22:26   ` Stephen Rothwell
2019-07-30  6:59     ` Denis Efremov
2019-07-30 16:29       ` Masahiro Yamada
2019-07-30 16:44         ` Denis Efremov
2019-07-30 17:21           ` Masahiro Yamada
2019-07-30 18:11 ` [PATCH v4] " Denis Efremov
2019-07-30 18:15   ` Denis Efremov
2019-07-31  8:54   ` Masahiro Yamada
2019-08-01  2:20     ` Masahiro Yamada
2019-08-01  6:17       ` Denis Efremov
2019-08-01  6:06 ` [PATCH v5] " Denis Efremov
2019-08-07 15:12   ` Masahiro Yamada
2019-08-13 16:07     ` Masahiro Yamada
2019-08-13 21:11       ` Denis Efremov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2b5607f-0f74-41c6-a83d-5a22d6828778@linux.com \
    --to=efremov@linux.com \
    --cc=emil.l.velikov@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.lkml@markovi.net \
    --cc=sfr@canb.auug.org.au \
    --cc=yamada.masahiro@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox