qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH] plugins: add plugin API to get args passed to binary


From: Demin Han
Subject: RE: [PATCH] plugins: add plugin API to get args passed to binary
Date: Fri, 10 Jan 2025 01:24:48 +0000

Hi,

> -----Original Message-----
> From: Alex Bennée <alex.bennee@linaro.org>
> Sent: 2025年1月9日 19:59
> To: Demin Han <demin.han@starfivetech.com>
> Cc: qemu-devel@nongnu.org; erdnaxe@crans.org; ma.mandourr@gmail.com;
> pierrick.bouvier@linaro.org
> Subject: Re: [PATCH] plugins: add plugin API to get args passed to binary
> 
> "demin.han" <demin.han@starfivetech.com> writes:
> 
> > Why we need args?
> > When plugin outputs log files, only binary path can't distinguish
> > multiple runs if the binary passed with different args.
> > This is bad for CI using plugin.
> 
> New APIs should come with an example use case for testing. However for this
> use case why isn't the plugin using getpid() or gettid() a suitable solution?


We want a meaning and unique name for plugin output. For example
./a arg0 arg1 should have a_arg0_arg1.log
./a arg2 arg3 should have a_arg2_arg3.log
I think getpid() and getid() is not unique

This case can be solved by using a shell wrapper, extract args and pass them to 
plugin suggested by Pierrick Bouvier

Regards,
Demin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]