From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, "Alexandre Iooss" <erdnaxe@crans.org>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Mahmoud Mandour" <ma.mandourr@gmail.com>,
"Yanan Wang" <wangyanan55@huawei.com>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>
Subject: Re: [PATCH v7 0/6] plugins: access values during a memory read/write
Date: Mon, 9 Sep 2024 14:42:48 -0700 [thread overview]
Message-ID: <58fe9316-bf73-4e38-b162-96a3709ed48a@linaro.org> (raw)
In-Reply-To: <874j6oy3wr.fsf@draig.linaro.org>
On 9/9/24 13:21, Alex Bennée wrote:
> Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
>
>> On 9/9/24 03:00, Alex Bennée wrote:
>>> Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
>>>
>>>> On 9/5/24 08:21, Alex Bennée wrote:
>>>>> Pierrick Bouvier <pierrick.bouvier@linaro.org> writes:
>>>>>
>>>>>> This series allows plugins to know which value is read/written during a memory
>>>>>> access.
>>>>>>
>>>>>> For every memory access, we know copy this value before calling mem callbacks,
>>>>>> and those can query it using new API function:
>>>>>> - qemu_plugin_mem_get_value
>>>>> Queued to patches 1-5 to plugins/next, thanks.
>>>>> You can send the re-spun version of 6 once the review comments have
>>>>> been
>>>>> done.
>>>>>
>>>>
>>>> Thanks Alex,
>>>>
>>>> right now, my try to make check-tcg are blocked with the cross
>>>> containers who don't compile, so I'll wait for this to be resolved.
>>> Which ones?
>>
>> docker-image-debian-mips64el-cross
>> docker-image-debian-mipsel-cross
>> (about broken packages).
>
> I have fixes for mipsel at least when I post my series.
>
>>
>> I saw something mentioning this recently on the mailing list, so not
>> sure what would be our solution to this (ignoring?)
>>
>>>
>>>> I still wonder if having a simple aarch64/x64 test is not enough, and
>>>> covering 99.9% of the bug we could introduce in the future on this.
>>> Have you measured the code coverage of the test?
>>>
>>
>> Nope, but all the code changed is tcg-generic, so testing this on all
>> arch does not bring benefit in terms of coverage.
>
> Would that it were so simple. Quite often which bits of the generic TCG
> code get exercised depends on the guest architecture using it. I'm not
> saying we have to go over and above to enable fiddly architectures but we
> should at least understand if the reason they fail is down to them or
> core code.
I understand your point, and will try to make this work on all arch.
>
>> So by focusing on the "all arch" aspect, we just test tcg
>> implementation itself, instead of the plugins part.
>>
>> The problems we identified so far is compilation flags specific per
>> arch, and specific flags to emit words instruction. It does not seem
>> related to what we really want to test here.
>
> I'm also investigating why arm-softmmu seems to be seeing more accesses
> than it should have from the test.
>
Good!
prev parent reply other threads:[~2024-09-09 21:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 19:47 [PATCH v7 0/6] plugins: access values during a memory read/write Pierrick Bouvier
2024-07-24 19:47 ` [PATCH v7 1/6] plugins: save value during memory accesses Pierrick Bouvier
2024-07-24 19:47 ` [PATCH v7 2/6] plugins: extend API to get latest memory value accessed Pierrick Bouvier
2024-07-24 19:47 ` [PATCH v7 3/6] tests/tcg: add mechanism to run specific tests with plugins Pierrick Bouvier
2024-07-24 19:47 ` [PATCH v7 4/6] tests/tcg: allow to check output of plugins Pierrick Bouvier
2024-07-24 19:47 ` [PATCH v7 5/6] tests/plugin/mem: add option to print memory accesses Pierrick Bouvier
2024-07-24 19:47 ` [PATCH v7 6/6] tests/tcg/multiarch: add test for plugin memory access Pierrick Bouvier
2024-08-29 9:03 ` Alex Bennée
2024-08-30 15:25 ` [RFC PATCH] tests/tcg: add a system test to check memory instrumentation Alex Bennée
2024-08-30 19:17 ` Pierrick Bouvier
2024-08-30 19:08 ` [PATCH v7 6/6] tests/tcg/multiarch: add test for plugin memory access Pierrick Bouvier
2024-09-04 13:19 ` Alex Bennée
2024-09-04 15:41 ` Alex Bennée
2024-09-04 16:28 ` Alex Bennée
2024-09-05 15:21 ` [PATCH v7 0/6] plugins: access values during a memory read/write Alex Bennée
2024-09-07 1:49 ` Pierrick Bouvier
2024-09-09 10:00 ` Alex Bennée
2024-09-09 19:04 ` Pierrick Bouvier
2024-09-09 20:21 ` Alex Bennée
2024-09-09 21:42 ` Pierrick Bouvier [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=58fe9316-bf73-4e38-b162-96a3709ed48a@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 \
--cc=zhao1.liu@intel.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).