qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
	"Yanan Wang" <wangyanan55@huawei.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Mahmoud Mandour" <ma.mandourr@gmail.com>,
	"Alexandre Iooss" <erdnaxe@crans.org>,
	"Eduardo Habkost" <eduardo@habkost.net>
Subject: Re: [PATCH v5 08/12] tests/plugin/bb: migrate to new per_vcpu API
Date: Fri, 1 Mar 2024 14:47:22 +0400	[thread overview]
Message-ID: <4f7c818f-d887-4505-a0ba-9a45b17d2e63@linaro.org> (raw)
In-Reply-To: <87h6hq5ju8.fsf@draig.linaro.org>

On 3/1/24 2:26 PM, Alex Bennée wrote:
> Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
> 
>> On 2/29/24 6:21 PM, Alex Bennée wrote:
>>> Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
>>>
>>>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
>>> I did notice there is a discrepancy between what libisns and libb
>>> report. The libb looks like an overcount so I wonder if there are some
>>> instructions we are not picking up but I can't see where that would be.
>>>     ➜  ./qemu-hppa -plugin ./tests/plugin/libinsn.so -plugin
>>> ./tests/plugin/libbb.so,inline=true -d plugin
>>> ./tests/tcg/hppa-linux-user/sha512
>>>     1..10
>>>     ok 1 - do_test(&tests[i])
>>>     ok 2 - do_test(&tests[i])
>>>     ok 3 - do_test(&tests[i])
>>>     ok 4 - do_test(&tests[i])
>>>     ok 5 - do_test(&tests[i])
>>>     ok 6 - do_test(&tests[i])
>>>     ok 7 - do_test(&tests[i])
>>>     ok 8 - do_test(&tests[i])
>>>     ok 9 - do_test(&tests[i])
>>>     ok 10 - do_test(&tests[i])
>>>     CPU0: bb's: 54282, insns: 775697
>>>     Total: bb's: 54282, insns: 775697
>>>     cpu 0 insns: 774827
>>>     total insns: 774827
>>> Although weirdly maybe only an hppa thing. Richard?
>>>
>>
>> Do you observe the exact same number if you run only one of the plugin?
>>
>> bb count number of instructions in an executed block, while insn
>> effectively count every instructions ran.
>> Maybe there is hppa specifity that makes some tb exit in the middle,
>> thus executing less instructions than expected from bb count.
> 
> Almost certainly - I just wasn't sure what would do that on straight
> line code. Probably some funky aspect of HPPA I'm not aware off ;-)
> 
>>
>> I don't know how to reproduce this test. Did you run it from a
>> specific docker env?
> 
> If you have docker enabled the "make check-tcg" will build and use a
> container to build the test cases. If you are on debian you just need:
> 
>      apt install gcc-hppa-linux-gnu libc6-dev-hppa-cross
> 
> and re-run configure.
> 

Thanks.

The difference observed predates this series, so there should definitely 
be something specific to this arch.

>>
>>>     ➜  ./qemu-aarch64 -plugin ./tests/plugin/libinsn.so -plugin ./tests/plugin/libbb.so,inline=true -d plugin  ./tests/tcg/aarch64-linux-user/sha512
>>>     1..10
>>>     ok 1 - do_test(&tests[i])
>>>     ok 2 - do_test(&tests[i])
>>>     ok 3 - do_test(&tests[i])
>>>     ok 4 - do_test(&tests[i])
>>>     ok 5 - do_test(&tests[i])
>>>     ok 6 - do_test(&tests[i])
>>>     ok 7 - do_test(&tests[i])
>>>     ok 8 - do_test(&tests[i])
>>>     ok 9 - do_test(&tests[i])
>>>     ok 10 - do_test(&tests[i])
>>>     CPU0: bb's: 41513, insns: 302671
>>>     Total: bb's: 41513, insns: 302671
>>>     cpu 0 insns: 302671
>>>     total insns: 302671
>>> Anyway:
>>> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
>>>
> 

  reply	other threads:[~2024-03-01 10:48 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-26  9:14 [PATCH v5 00/12] TCG Plugin inline operation enhancement Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 01/12] plugins: scoreboard API Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 02/12] plugins: define qemu_plugin_u64 Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 03/12] plugins: implement inline operation relative to cpu_index Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 04/12] plugins: add inline operation per vcpu Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 05/12] tests/plugin: add test plugin for inline operations Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 06/12] tests/plugin/mem: migrate to new per_vcpu API Pierrick Bouvier
2024-02-27  9:35   ` Luc Michel
2024-02-27 10:56     ` Pierrick Bouvier
2024-02-27 14:27       ` Luc Michel
2024-02-28 22:08     ` Alex Bennée
2024-02-29  5:19       ` Pierrick Bouvier
2024-02-29  7:08         ` Alex Bennée
2024-02-29  7:12           ` Pierrick Bouvier
2024-02-29 13:46             ` Alex Bennée
2024-03-01  9:41               ` Pierrick Bouvier
2024-02-26  9:14 ` [PATCH v5 07/12] tests/plugin/insn: " Pierrick Bouvier
2024-02-27  9:50   ` Luc Michel
2024-02-26  9:14 ` [PATCH v5 08/12] tests/plugin/bb: " Pierrick Bouvier
2024-02-27 10:02   ` Luc Michel
2024-02-29 14:21   ` Alex Bennée
2024-03-01  9:58     ` Pierrick Bouvier
2024-03-01 10:26       ` Alex Bennée
2024-03-01 10:47         ` Pierrick Bouvier [this message]
2024-02-26  9:14 ` [PATCH v5 09/12] contrib/plugins/hotblocks: " Pierrick Bouvier
2024-02-27 10:54   ` Luc Michel
2024-02-27 11:09     ` Pierrick Bouvier
2024-02-27 14:26       ` Luc Michel
2024-02-28  8:04         ` Pierrick Bouvier
2024-02-29 14:33         ` Alex Bennée
2024-03-01 13:21           ` Luc Michel
2024-02-26  9:14 ` [PATCH v5 10/12] contrib/plugins/howvec: " Pierrick Bouvier
2024-02-29 14:35   ` Alex Bennée
2024-02-29 14:40   ` Alex Bennée
2024-02-26  9:14 ` [PATCH v5 11/12] plugins: remove non per_vcpu inline operation from API Pierrick Bouvier
2024-02-29 14:41   ` Alex Bennée
2024-02-26  9:14 ` [PATCH v5 12/12] plugins: cleanup codepath for previous inline operation Pierrick Bouvier
2024-02-29 14:42   ` Alex Bennée

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=4f7c818f-d887-4505-a0ba-9a45b17d2e63@linaro.org \
    --to=pierrick.bouvier@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=eduardo@habkost.net \
    --cc=erdnaxe@crans.org \
    --cc=ma.mandourr@gmail.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=wangyanan55@huawei.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 NNTP newsgroup(s).