Hi,

> -----Original Message-----
> From: Alex Bennée <[email protected]>
> Sent: 2025年1月9日 19:59
> To: Demin Han <[email protected]>
> Cc: [email protected]; [email protected]; [email protected];
> [email protected]
> Subject: Re: [PATCH] plugins: add plugin API to get args passed to binary
> 
> "demin.han" <[email protected]> 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