diff options
author | Vidushi Vashishth <reachvidu@gmail.com> | 2018-06-02 04:02:59 +0530 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-02 13:53:31 +0200 |
commit | 14a1c0978d4dc1f29f5568efb075524544066874 (patch) | |
tree | 0f82b385845cb5eb3adf352ef6ccee6162ad2ef2 /linkers | |
parent | tester/covoar: Do not load an executable's local symbols. (diff) | |
download | rtems-tools-14a1c0978d4dc1f29f5568efb075524544066874.tar.bz2 |
Updating trace buffer configuration
Diffstat (limited to '')
-rw-r--r-- | linkers/rtld-trace-buffer.ini | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linkers/rtld-trace-buffer.ini b/linkers/rtld-trace-buffer.ini index af9fc31..0d01259 100644 --- a/linkers/rtld-trace-buffer.ini +++ b/linkers/rtld-trace-buffer.ini @@ -26,6 +26,7 @@ buffer-local = " uint8_t* in;" header = "#include <stdint.h>" header = "#include <rtems.h>" header = "#include <rtems/rtems/tasksimpl.h>" +header = "#include <rtems/score/threadimpl.h>" [trace-buffer-tracers] code = <<<CODE @@ -84,8 +85,8 @@ static inline uint32_t __rtld_tbg_executing_id(void) static inline uint32_t __rtld_tbg_executing_status(void) { /* @fixme Add the current CPU for SMP. */ - struct Thread_Control* tc = _Thread_Get_executing(); - return (tc->current_priority << 8) | tc->real_priority; + Thread_Control* tc = _Thread_Get_executing(); + return (_Thread_Get_priority(tc) << 8) | tc->Real_priority.priority; } static inline uint32_t __rtld_tbg_executing_state(void) |