Re: [PATCH v2] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-16 Thread Simon Hamelin
On 7/16/24 01:08, Pierrick Bouvier wrote: On 7/15/24 01:09, Simon Hamelin wrote: Hello Pierrick, Could you share a bit more information on the final goal, if possible? Is that used for fuzzing binaries, security analysis, or other things? I'm currently using this plugin for sec

Re: [PATCH v2] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-15 Thread Simon Hamelin
On 7/15/24 10:09, Simon Hamelin wrote: Hello Pierrick, On 7/12/24 19:23, Pierrick Bouvier wrote: Hello Simon, On 7/12/24 00:53, Simon Hamelin wrote: On 7/11/24 12:03, Alex Bennée wrote: +static void exit_emulation(int return_code) +{ +    exit(return_code); +} + +static void

[PATCH v4] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-15 Thread Simon Hamelin
could stop QEMU execution. It could be used for research purposes to launch some code and deterministically stop it and understand where its execution flow went. Co-authored-by: Alexandre Iooss Signed-off-by: Simon Hamelin Signed-off-by: Alexandre Iooss --- v2: - use a scoreboard for counting

Re: [PATCH v2] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-15 Thread Simon Hamelin
Hello Pierrick, On 7/12/24 19:23, Pierrick Bouvier wrote: Hello Simon, On 7/12/24 00:53, Simon Hamelin wrote: On 7/11/24 12:03, Alex Bennée wrote: +static void exit_emulation(int return_code) +{ +    exit(return_code); +} + +static void exit_icount_reached(unsigned int cpu_index, void

[PATCH v3] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-12 Thread Simon Hamelin
could stop QEMU execution. It could be used for research purposes to launch some code and deterministically stop it and understand where its execution flow went. Co-authored-by: Alexandre Iooss Signed-off-by: Simon Hamelin Signed-off-by: Alexandre Iooss --- v2: - use a scoreboard for counting

Re: [PATCH v2] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-12 Thread Simon Hamelin
kle additional exit modes? What is your current use case for this? I'm currently using this plugin to determine where my programm stop after a given number of instructions executed. -- Simon Hamelin

[PATCH v2] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-10 Thread Simon Hamelin
could stop QEMU execution. It could be used for research purposes to launch some code and deterministically stop it and understand where its execution flow went. Co-authored-by: Alexandre Iooss Signed-off-by: Simon Hamelin Signed-off-by: Alexandre Iooss --- v2: - use a scoreboard for counting

[PATCH] plugins/stoptrigger: TCG plugin to stop execution under conditions

2024-07-09 Thread Simon Hamelin
could stop QEMU execution. It could be used for research purposes to launch some code and deterministically stop it and understand where its execution flow went. Co-authored-by: Alexandre Iooss Signed-off-by: Simon Hamelin Signed-off-by: Alexandre Iooss --- contrib/plugins/Makefile | 1