trace-v3 #7

Open
rarias wants to merge 36 commits from trace-v3 into master
3 changed files with 7 additions and 1 deletions
Showing only changes of commit d83e8f2d68 - Show all commits

View File

@ -31,6 +31,9 @@ extern "C" {
#define OVNI_STREAM_EXT ".obs" #define OVNI_STREAM_EXT ".obs"
/* Version of the ovni model for events */
#define OVNI_MODEL_VERSION "1.1.0"
/* Follow https://semver.org rules for versioning */ /* Follow https://semver.org rules for versioning */
#define OVNI_LIB_VERSION "@PROJECT_VERSION@" #define OVNI_LIB_VERSION "@PROJECT_VERSION@"
#define OVNI_GIT_COMMIT "@OVNI_GIT_COMMIT@" #define OVNI_GIT_COMMIT "@OVNI_GIT_COMMIT@"

View File

@ -13,6 +13,7 @@
#include "model_cpu.h" #include "model_cpu.h"
#include "model_pvt.h" #include "model_pvt.h"
#include "model_thread.h" #include "model_thread.h"
#include "ovni.h"
#include "pv/pcf.h" #include "pv/pcf.h"
#include "pv/prv.h" #include "pv/prv.h"
#include "system.h" #include "system.h"
@ -47,7 +48,7 @@ static struct ev_decl model_evlist[] = {
struct model_spec model_ovni = { struct model_spec model_ovni = {
.name = model_name, .name = model_name,
.version = "1.1.0", .version = OVNI_MODEL_VERSION,
.evlist = model_evlist, .evlist = model_evlist,
.model = model_id, .model = model_id,
.create = model_ovni_create, .create = model_ovni_create,

View File

@ -535,6 +535,8 @@ ovni_thread_init(pid_t tid)
thread_metadata_init(); thread_metadata_init();
rthread.ready = 1; rthread.ready = 1;
ovni_thread_require("ovni", OVNI_MODEL_VERSION);
} }
static void static void