From 7fc1edba20d5f54c9517071a2b999c492a69ee83 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 18 Dec 2014 15:07:59 +1100 Subject: rtems-tld: Add configuration support for libc head tracing. These files allow you to trace malloc, calloc, realloc and free. With a simple script you can see what is allocated and never freed. --- linkers/libc-heap.ini | 25 +++++++++++++++++++++++++ linkers/libc.ini | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100755 linkers/libc-heap.ini create mode 100755 linkers/libc.ini diff --git a/linkers/libc-heap.ini b/linkers/libc-heap.ini new file mode 100755 index 0000000..bb7589a --- /dev/null +++ b/linkers/libc-heap.ini @@ -0,0 +1,25 @@ +; +; RTEMS C Library Trace Configurations +; +[libc-heap] +headers = libc-heap-headers +defines = libc-heap-defines +signatures = libc-heap-signatures + +[libc-heap-all] +trace = malloc +trace = calloc +trace = realloc +trace = free + +[libc-heap-headers] +header = "#include " + +[libc-heap-defines] +; Currently empty + +[libc-heap-signatures] +malloc = void*, size_t +calloc = void*, size_t, size_t +realloc = void*, void*, size_t +free = void, void* diff --git a/linkers/libc.ini b/linkers/libc.ini new file mode 100755 index 0000000..012f82e --- /dev/null +++ b/linkers/libc.ini @@ -0,0 +1,17 @@ +; +; RTEMS C Library Trace Configurations +; +[libc] +headers = libc-headers +defines = libc-defines +; Heap +include = libc-heap.ini +signatures = libc-heap-signatures + +[libc-headers] +header = "#include " +header = "#include " +header = "#include " + +[libc-defines] +; Currently empty -- cgit v1.2.3