From: "Martin Liška" <mliska@suse.cz>
To: David.Taylor@dell.com, richard.guenther@gmail.com
Cc: gcc@gcc.gnu.org
Subject: Re: gcc: -ftest-coverage and -auxbase
Date: Tue, 18 Jun 2019 15:19:00 -0000 [thread overview]
Message-ID: <381c2d23-5975-64c4-a13f-898624bb3c3e@suse.cz> (raw)
In-Reply-To: <d764b003c8944885a051716700cc1236@x13pwdurdag1004.AMER.DELL.COM>
On 6/18/19 3:31 PM, David.Taylor@dell.com wrote:
> Dell Customer Communication - Confidential
>
>> From: Martin Liška <mliska@suse.cz>
>> Sent: Tuesday, June 18, 2019 4:56 AM
>>
>> On 6/18/19 10:40 AM, Richard Biener wrote:
>>> I don't think we want to expose -auxbase. Iff then an alternate way
>>> to specify a coverage output file name.
>>
>> I'm not aware of it.
>>
>> @David: Can you please summarize what you want to achieve with the .gcno
>> files?
>> I can then help you.
>>
>> Martin
>
> Thanks.
>
> Short answer: Some of the GNU/Linux test coverage related tools
> want them, so I want them to be available.
>
> Longer answer:
>
> We have purchased a third party tool for providing code test
> coverage related information. We do not plan to abandon that
> tool as it provides more than just test coverage. But, for test
> coverage at least, I would like an alternative. I am exploring the
> use of GCC and related tools for this.
>
> Our target is embedded, which presents a set of challenges.
> The set up / tear down glue code will need to be written.
> The operating system does not exit. Data will be dumped via
> a network connection, not to a local disk. Coverage counters
> need to be dumped and/or cleared on demand.
>
> Additionally, since the system supports not just cold boot but
> also warm boot, initialized .data is prohibited. So, it will be
> necessary to either put the data into a section with a different
> name and/or (ideally, both) have run-time initialization.
>
> [My gut is that adding a command line switch to set the section
> name and finding the code that actually writes out the data to
> make use of it won't be hard. And that run-time initialization
> will be significantly harder.]
>
> I don't know the details of how the tools make use of the *.gcno
> files, but I assume that they either need it or give better reports
> if they have it.
.gcno files are created during compilation and contain info about a source file.
These files will be created by a cross compiler, so that's fine.
During a run of a program a .gcda file is created. It contains information about
number of execution of edges. These files are dumped during at_exit by an instrumented
application. And the content is stored to a disk (.gcda extension).
So what difficulties do you have with that please?
Martin
>
> I want people to be able to ascertain things like
>
> . this file has excellent coverage
>
> . this file has horrible coverage
>
> . this pull request affected these lines in these files, and
> when the test suite was run these affected lines were covered,
> but these other affected lines were not covered.
>
> . this push will affect these lines in these files, has my testing
> covered them?
>
> I'm sure I left something out. But, hopefully, you now have a
> clearer idea of what I'm trying to achieve. Questions? Feel
> free to ask.
>
> I don't as yet have management buy in on this...
>
next prev parent reply other threads:[~2019-06-18 15:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-17 12:46 David Taylor
2019-06-17 13:56 ` Richard Biener
2019-06-17 15:02 ` David.Taylor
2019-06-18 8:40 ` Richard Biener
2019-06-18 8:56 ` Martin Liška
2019-06-18 13:31 ` David.Taylor
2019-06-18 15:19 ` Martin Liška [this message]
2019-06-18 21:51 ` David.Taylor
2019-06-19 7:19 ` Martin Liška
2019-06-19 17:11 ` David.Taylor
2019-06-20 9:11 ` Martin Liška
2019-06-20 13:00 ` David.Taylor
2019-06-20 13:02 ` Thomas Koenig
2019-06-20 13:11 ` David.Taylor
2019-06-20 13:06 ` Martin Liška
2019-06-20 13:31 ` David.Taylor
2019-06-20 13:48 ` Martin Liška
2019-06-20 16:06 ` David.Taylor
2019-06-24 15:59 ` David.Taylor
-- strict thread matches above, loose matches on Subject: below --
2019-06-12 20:16 David.Taylor
2019-06-13 8:23 ` Richard Biener
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=381c2d23-5975-64c4-a13f-898624bb3c3e@suse.cz \
--to=mliska@suse.cz \
--cc=David.Taylor@dell.com \
--cc=gcc@gcc.gnu.org \
--cc=richard.guenther@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).