From: Eugeniu Rosca <roscaeugeniu@gmail.com>
To: Ulf Magnusson <ulfalizer@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>,
Eugeniu Rosca <roscaeugeniu@gmail.com>,
Petr Vorel <petr.vorel@gmail.com>,
Nicolas Pitre <nicolas.pitre@linaro.org>,
Randy Dunlap <rdunlap@infradead.org>,
Paul Bolle <pebolle@tiscali.nl>,
Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
Eugeniu Rosca <erosca@de.adit-jv.com>
Subject: Re: [PATCH v4 0/3] Kconfig: Print reverse dependencies in groups
Date: Sat, 24 Feb 2018 01:13:15 +0100 [thread overview]
Message-ID: <20180224001315.GA17706@example.com> (raw)
In-Reply-To: <CAFkk2KRfaDZQG-F=3i-kQbGH6JzxP1q_fvKPzK1A_hJUb0GkMQ@mail.gmail.com>
Hi Ulf,
On Fri, Feb 23, 2018 at 11:18:17PM +0100, Ulf Magnusson wrote:
> On Fri, Feb 23, 2018 at 3:04 PM, Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
> >
> > Hi Masahiro,
> >
> > On Fri, Feb 23, 2018 at 09:10:37PM +0900, Masahiro Yamada wrote:
> >> Eugeniu,
> >>
> >>
> >> 2018-02-21 15:10 GMT+09:00 Eugeniu Rosca <roscaeugeniu@gmail.com>:
> >>
> >> >
> >> > I've tested https://patchwork.kernel.org/patch/10229545/ and
> >> > https://patchwork.kernel.org/patch/10231295/ and they work great for me.
> >> > Thank you for this feature.
> >> >
> >>
> >> I will give you that code in the second one.
> >
> > I appreciate that, although I am open minded who takes the authorship.
> > This feature makes my life easier and that's the most important part.
> >
> >>
> >> Please fill the commit log with yours,
> >> and also fix the bugs pointed by Petr.
> >
> > Sure. Will do that.
> >
> >> Anyway, I will claim my contribution
> >> in the form of Signed-off-by when I pick it up. :)
> >
> > I have one side question loosely related to this patch.
> >
> > Reverse dependencies are still not printed in zconfdump() (used in our kernel
> > team for e.g. cross platform .config alignment/comparison). My gut feeling
> > tells me this is mainly caused by the extremely unfriendly unreadable
> > expressions which is how reverse dependencies used to be represented before
> > commit 1ccb27143360 ("kconfig: make "Selected by:" and "Implied by:"
> > readable"). Since this is now greatly improved, would you mind printing
> > Selected/Implied-by in zconfdump? There are also other zconfdump fixes
> > sitting in my local branch, like https://patchwork.kernel.org/patch/9253535/ .
> > I would like to push them to you (they probably deserve a separate
> > thread), if you think this is appropriate.
> >
> > Best regards,
> > Eugeniu.
>
> Shameless plug:
>
> If you need to do any fancy Kconfig parsing and comparison, then
> Kconfiglib (https://github.com/ulfalizer/Kconfiglib) might be handy.
> It makes it easy to walk the menu tree, print and inspect symbols and
> expressions, etc.
Currently, when comparing kernel configurations of two platforms P1 and
P2, our zconfdump parser generates reports like below. It helps us quite
much during .config alignment. The report can be isolated to a specific menu
entry (in this case, it is "General setup"). In this particular case, P1 is
imx6 using v3.14 kernel and P2 is rcar3 using a v4.x kernel. If Kconfiglib
is able to generate a similar diff report, I will happily embrace it.
If not, we might have no choice but keep using zconfdump for a while.
Unfortunately, I haven't found some time to put my hands on Kconfiglib
yet and I don't know what it is (or would be) capable of. Bottomline,
the motivation to fix and enrich vanilla zconfdump functionality
originates from making such reports possible on our side.
Boolean - - String
Tristate - \ / - Hex
config - \ || / - Integer
menuconfig - \ |||| /
\| |||||
Config Name Val MC TBSHI Cfg.Origin Comments
P1 P2 P1 P2 P1 P2 P1 P2 P1 P2
HAVE_KERNEL_GZIP y - C C B B sel-by - 01 -
HAVE_KERNEL_LZMA y - C C B B sel-by - 02 -
HAVE_KERNEL_XZ y - C C B B sel-by - 03 -
HAVE_KERNEL_LZO y - C C B B sel-by - 04 -
HAVE_KERNEL_LZ4 y - C C B B sel-by - 05 -
HAVE_KERNEL_LZ77 y - C - B - sel-by - 06 -
KERNEL_LZO y - C C B B defconfig - - -
KTIME_SCALAR y - C - B - sel-by - 07 -
GENERIC_CLOCKEVENTS_BUILD y - C - B - default - 08 -
IKCONFIG m y C C T T defconfig defconfig - -
MM_OWNER y - C - B - sel-by - 09 -
PERF_USE_VMALLOC y - C C B B sel-by - 10 -
HAVE_OPROFILE y - C C B B sel-by - 11 -
UPROBES y n C C B B sel-by default 12 13
ARCH_USE_BUILTIN_BSWAP y - C C B B sel-by - 14 -
HAVE_DMA_ATTRS y - C - B - sel-by - 15 -
ARCH_WANT_IPC_PARSE_VERSION y - C C B B sel-by - 16 -
MODULES_USE_ELF_REL y - C C B B sel-by - 17 -
OLD_SIGACTION y - C C B B sel-by - 18 -
TREE_PREEMPT_RCU y - C - B - sel-by-ch - 19 -
RCU_FANOUT 32 64 C C I I default default 20 21
RESOURCE_COUNTERS y - C - B - defconfig - - -
Comments:
01) selected by (ARM [=y])
02) selected by (ARM [=y])
03) selected by (ARM [=y])
04) selected by (ARM [=y])
05) selected by (ARM [=y])
06) selected by (ARM [=y])
07) selected by (ARM [=y])
08) default y if GENERIC_CLOCKEVENTS [=y]
09) selected by (MEMCG [=y] && CGROUPS [=y] && RESOURCE_COUNTERS [=y])
10) selected by (ARM [=y])
11) selected by (ARM [=y] && HAVE_PERF_EVENTS [=y])
12) selected by (UPROBE_EVENT [=y] && TRACING_SUPPORT [=y] && FTRACE [=y] &&
ARCH_SUPPORTS_UPROBES [=y] && MMU [=y] && PERF_EVENTS [=y])
13) default n
14) selected by (ARM [=y])
15) selected by (ARM [=y])
16) selected by (ARM [=y])
17) selected by (ARM [=y])
18) selected by (ARM [=y])
19) selected by choice "RCU Implementation"
20) default 32 if ((TREE_RCU || TREE_PREEMPT_RCU) && !64BIT) [=y]
21) default 64 if ((TREE_RCU || PREEMPT_RCU) && RCU_EXPERT && 64BIT) [=y]
> Cheers,
> Ulf
Best regards,
Eugeniu.
next prev parent reply other threads:[~2018-02-24 0:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-18 20:47 [PATCH v4 0/3] Kconfig: Print reverse dependencies in groups Eugeniu Rosca
2018-02-18 20:47 ` [PATCH v4 1/3] kconfig: Print reverse dependencies on new line consistently Eugeniu Rosca
2018-02-18 20:47 ` [PATCH v4 2/3] kconfig: Prepare for printing reverse dependencies in groups Eugeniu Rosca
2018-02-18 20:47 ` [PATCH v4 3/3] kconfig: Print " Eugeniu Rosca
2018-02-18 20:54 ` [PATCH v4 0/3] Kconfig: " Ulf Magnusson
2018-02-20 8:13 ` Masahiro Yamada
2018-02-20 8:24 ` Masahiro Yamada
2018-02-20 15:00 ` Ulf Magnusson
2018-02-20 19:52 ` Eugeniu Rosca
2018-02-20 20:09 ` Ulf Magnusson
2018-02-21 5:48 ` Masahiro Yamada
2018-02-21 6:10 ` Eugeniu Rosca
2018-02-23 12:10 ` Masahiro Yamada
2018-02-23 14:04 ` Eugeniu Rosca
2018-02-23 22:18 ` Ulf Magnusson
2018-02-24 0:13 ` Eugeniu Rosca [this message]
2018-02-24 0:31 ` Ulf Magnusson
2018-02-20 19:25 ` Eugeniu Rosca
2018-02-20 19:34 ` Ulf Magnusson
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=20180224001315.GA17706@example.com \
--to=roscaeugeniu@gmail.com \
--cc=erosca@de.adit-jv.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=nicolas.pitre@linaro.org \
--cc=pebolle@tiscali.nl \
--cc=petr.vorel@gmail.com \
--cc=rdunlap@infradead.org \
--cc=ulfalizer@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.