public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>,
	"binutils@sourceware.org" <binutils@sourceware.org>
Subject: Re: gprofng testing
Date: Wed, 17 May 2023 14:40:04 +0100	[thread overview]
Message-ID: <4192bd91-64fe-8786-f63d-ba4527653399@redhat.com> (raw)
In-Reply-To: <6fd65fe9-3b9a-7e8f-5b65-c0dfd7b64018@oracle.com>

Hi Vladimir,

>>> The size of experiments can be big.

>> With difficulty.  The size of the experiment files will be an obstacle
>> I expect.  Is it possible to instead provide a source file and have the
>> test compile it first instead ?
> 
> This is exactly what we have now in binutils-gdb.git.
> We compare the time for each function in the application output and the gprofng report.
> The small discrepancy is OK.
> 
> But we cannot check the correctness of the gprofng report, such as the correct alignment of metrics or the order of functions.

Why not ?  How about instead of compiling examples, you start with
assembler sources (possibly based upon compiled source code).  This
would remove any dependencies upon compiler behaviour, code layout
and so on.


>> Assuming that the answer to that question is no, then is it possible
>> to create smaller test cases, or to compress the test files files and
>> then decompress them when they are being used ?
>   Is 2-4 megabyte small ?

No. :-(

> In any case, it was only on large experiments that we saw problems with the synchronization and reallocation of our tables.

Well at least you caught these problems yourselves.


> Is there a big public test suite for gdb (or any other binutils/gcc components) ?

No.

Well unless you consider the various Linux and BSD distributions to testsuites.
After all if you put a broken linker into the build root of a distribution you
quickly get a lot of people complaining at you.  (I speak from experience...)

But basically the answer is that there is currently nowhere that hosts large
tests of any of the GNU tools.  It would be nice to have such a resource, of
course, but I do not see one appearing soon.

Cheers
   Nick



      reply	other threads:[~2023-05-17 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-04 22:32 Vladimir Mezentsev
2023-05-10 11:20 ` Nick Clifton
2023-05-11  0:51   ` Vladimir Mezentsev
2023-05-17 13:40     ` Nick Clifton [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=4192bd91-64fe-8786-f63d-ba4527653399@redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sourceware.org \
    --cc=vladimir.mezentsev@oracle.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).