aboutsummaryrefslogtreecommitdiff
path: root/Debug
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-02-24 00:17:19 -0800
committerpx4dev <px4@purgatory.org>2013-02-24 00:17:19 -0800
commit2e321f273ca66642f5cae415c069ca4cc3c073ba (patch)
treebd6713749544e8c65a2199b071386ec5696472dc /Debug
parent4ed7e926896aca1bd57aa82944416a4caa579943 (diff)
downloadpx4-firmware-2e321f273ca66642f5cae415c069ca4cc3c073ba.tar.gz
px4-firmware-2e321f273ca66642f5cae415c069ca4cc3c073ba.tar.bz2
px4-firmware-2e321f273ca66642f5cae415c069ca4cc3c073ba.zip
Don't try to print the idle stack usage (we need to fix it up before the code can be adapted to measure it).
Diffstat (limited to 'Debug')
-rw-r--r--Debug/NuttX12
-rw-r--r--Debug/PX42
2 files changed, 9 insertions, 5 deletions
diff --git a/Debug/NuttX b/Debug/NuttX
index 8e6544842..3b95e96b2 100644
--- a/Debug/NuttX
+++ b/Debug/NuttX
@@ -174,11 +174,15 @@ end
define showtaskstack
set $task = (struct _TCB *)$arg0
- set $stack_free = 0
- while ($stack_free < $task->adj_stack_size) && *(uint8_t *)($task->stack_alloc_ptr + $stack_free)
- set $stack_free = $stack_free + 1
+ if $task == &g_idletcb
+ printf "can't measure idle stack\n"
+ else
+ set $stack_free = 0
+ while ($stack_free < $task->adj_stack_size) && *(uint8_t *)($task->stack_alloc_ptr + $stack_free)
+ set $stack_free = $stack_free + 1
+ end
+ printf" stack 0x%08x-0x%08x (%d) %d free\n", $task->stack_alloc_ptr, $task->adj_stack_ptr, $task->adj_stack_size, $stack_free
end
- printf" stack 0x%08x-0x%08x (%d) %d free\n", $task->stack_alloc_ptr, $task->adj_stack_ptr, $task->adj_stack_size, $stack_free
end
#
diff --git a/Debug/PX4 b/Debug/PX4
index 7d5905939..3570dc09a 100644
--- a/Debug/PX4
+++ b/Debug/PX4
@@ -21,7 +21,7 @@ end
define _perf_print
set $hdr = (struct perf_ctr_header *)$arg0
- printf "%p\n", $hdr
+ #printf "%p\n", $hdr
printf "%s: ", $hdr->name
# PC_COUNT
if $hdr->type == 0