> 
> It seems that you already have a wrapper script (qemu-risv64.sh). You can
> replace it and read command line from $@, which contains the command
> passed to it.

> >> In the case of llvm-test-suite, you can set TEST_SUITE_RUN_UNDER to a
> >> wrapper adding a specific plugin, its options, and generating the log
> >> filename as expected.
> >
> > We cant set TEST_SUITE_RUN_UNDER="qemu-riscv64 --plugin
> /xxx/libxxx.so -L xxx".
> > We have no any information about binary under test even binary name.
> > We can get binary name in plugin using qemu_plugin_path_to_binary, but
> can't solve the issue mentioned in commit msg.
> >
> 
> If you pass a script instead, calling the same command, you can get access to
> command line by reading the content of $@.
> 

Thanks. 
I think this can work.
Add a arg to plugin and pass the parsed $@ to it.

Regards,
Demin

Reply via email to