From f11d18b9b1f438b2dc83b92e39d945d5ac654bbd Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 15 Oct 2015 21:05:29 +1100 Subject: Change to use the task implemenation interface. --- linkers/rtld-trace-buffer.ini | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'linkers') diff --git a/linkers/rtld-trace-buffer.ini b/linkers/rtld-trace-buffer.ini index f018410..af9fc31 100644 --- a/linkers/rtld-trace-buffer.ini +++ b/linkers/rtld-trace-buffer.ini @@ -25,6 +25,7 @@ buffer-local = " uint8_t* in;" [trace-buffer-generator-headers] header = "#include " header = "#include " +header = "#include " [trace-buffer-tracers] code = <<Object.id; + return _Thread_Get_executing()->Object.id; } static inline uint32_t __rtld_tbg_executing_status(void) { /* @fixme Add the current CPU for SMP. */ - return (_Thread_Executing->current_priority << 8) | _Thread_Executing->real_priority; + struct Thread_Control* tc = _Thread_Get_executing(); + return (tc->current_priority << 8) | tc->real_priority; } static inline uint32_t __rtld_tbg_executing_state(void) { - return _Thread_Executing->current_state; + return _Thread_Get_executing()->current_state; } static inline bool __rtld_tbg_is_enabled(const uint32_t index) -- cgit v1.2.3