[rtems-tools commit] record: Support thread names on 32-bit targets

Sebastian Huber sebh at rtems.org
Tue Aug 27 06:52:37 UTC 2019


Module:    rtems-tools
Branch:    master
Commit:    3c426562a53f58e714f096f5242b6ffb9f7cffd2
Changeset: http://git.rtems.org/rtems-tools/commit/?id=3c426562a53f58e714f096f5242b6ffb9f7cffd2

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Aug 27 08:40:50 2019 +0200

record: Support thread names on 32-bit targets

Update #3665.

---

 trace/record/record-main-lttng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trace/record/record-main-lttng.c b/trace/record/record-main-lttng.c
index bde15c1..3aeafab 100644
--- a/trace/record/record-main-lttng.c
+++ b/trace/record/record-main-lttng.c
@@ -276,7 +276,7 @@ static void add_thread_name(
 
   for (
     i = pcpu->thread_name_index;
-    i < pcpu->thread_name_index + 8;
+    i < pcpu->thread_name_index + ctx->base.data_size;
     ++i
   ) {
     ctx->thread_names[ api_index ][ obj_index ][ i ] = (char) name;




More information about the vc mailing list