Rodrigo Arias
72b7eb8332
The emulator will now check that all threads are properly finalyzed by calling ovni_thread_free(), as required by the specification. For now only a warning is issued, which is enough to determine the cause of potential emulator panics. The ovni model is now always enabled.
20 lines
377 B
C
20 lines
377 B
C
/* Copyright (c) 2023 Barcelona Supercomputing Center (BSC)
|
|
* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
#include <ovni.h>
|
|
#include "instr.h"
|
|
|
|
/* Emulate a crash in one thread by not calling ovni_thread_free(). We need to
|
|
* call ovni_proc_fini() otherwise the metadata won't appear */
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
instr_start(0, 1);
|
|
|
|
ovni_flush();
|
|
ovni_proc_fini();
|
|
|
|
return 0;
|
|
}
|