From eceec5219440868c01d5461e016f555bc86a5e2f Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 9 Sep 2024 12:02:41 +0200 Subject: [PATCH] Store TID and PID in thread metadata --- src/rt/ovni.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rt/ovni.c b/src/rt/ovni.c index 92a3b98..0cec34d 100644 --- a/src/rt/ovni.c +++ b/src/rt/ovni.c @@ -530,6 +530,12 @@ thread_metadata_populate(void) if (json_object_dotset_string(meta, "ovni.lib.commit", OVNI_GIT_COMMIT) != 0) die("json_object_dotset_string failed"); + + if (json_object_dotset_number(meta, "ovni.tid", (double) rthread.tid) != 0) + die("json_object_dotset_number failed"); + + if (json_object_dotset_number(meta, "ovni.pid", (double) rproc.pid) != 0) + die("json_object_dotset_number failed"); } static void