From: Andreas Ruprecht <rupran@einserver.de>
To: Julia Lawall <julia.lawall@lip6.fr>,
"Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Peter Senna Tschudin <peter.senna@gmail.com>,
"backports@vger.kernel.org" <backports@vger.kernel.org>,
stefan.hengelein@fau.de, valentinrothberg@gmail.com
Subject: Re: Re: Tool to match kernel C file to CONFIG symbol
Date: Thu, 30 Oct 2014 11:10:24 +0100 [thread overview]
Message-ID: <54520E90.6060401@einserver.de> (raw)
In-Reply-To: <alpine.DEB.2.02.1410300714090.2374@localhost6.localdomain6>
Hi all,
actually the problem isn't that easy... some of the information from the
Kbuild files is not entirely straight-forward to extract.
If you're interested in the former (that is, what config symbols have to
be enabled to have a file compiled), there is a Python tool called
"golem" in the toolsuite[0] from our group which determines the
preconditions for files to be built (called with parameter "-i"). Sadly
it currently takes a few hours to finish as it probes the build system
with changing partial configurations.
I'm currently working on a faster combined parsing/probing approach and
could make an early development snapshot of the parser available to you,
please contact me directly if you want to have a look at that.
For something similar to the latter problem (which files get compiled
from a specific configuration) golem can be called with the "-c"
parameter and a source file to determine if the file is compiled with
the current configuration. You could use that to match a configuration
option to a file. Alternatively, you can use the "-l" parameter to see a
list of all files compiled with the current configuration.
Hope this helps,
Andreas
[0] https://undertaker.cs.fau.de
On 30.10.2014 07:16, Julia Lawall wrote:
>
>
> On Wed, 29 Oct 2014, Luis R. Rodriguez wrote:
>
>> On Wed, Oct 29, 2014 at 4:15 PM, Luis R. Rodriguez
>> <mcgrof@do-not-panic.com> wrote:
>>> Anyone familiar with a tool to match a specific C file to a respective
>>> CONFIG symbol on the kernel? I'd prefer if its written in C or Python.
>>> This should be easy to write if we don't have it yet.
>>
>> Peter, didn't you have such tool already?
>
> I think that the Erlangen people can help you (added to CC).
>
> I'm not sure which way you want to go: What config symbol will get my file
> compiled, or if I turn on this config symbol, what files will I get. I
> think that Stefan's Vampyr tool can help with the first.
>
> julia
>
prev parent reply other threads:[~2014-10-30 10:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 23:15 Tool to match kernel C file to CONFIG symbol Luis R. Rodriguez
2014-10-29 23:22 ` Luis R. Rodriguez
2014-10-30 6:16 ` Julia Lawall
2014-10-30 9:06 ` Peter Senna Tschudin
2014-10-30 10:10 ` Andreas Ruprecht [this message]
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=54520E90.6060401@einserver.de \
--to=rupran@einserver.de \
--cc=backports@vger.kernel.org \
--cc=julia.lawall@lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@do-not-panic.com \
--cc=peter.senna@gmail.com \
--cc=stefan.hengelein@fau.de \
--cc=valentinrothberg@gmail.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