diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-13 16:07:36 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-13 16:07:36 +0100 |
commit | fc0cdca948f16bcf7590e057878fca1d4ce1ed6e (patch) | |
tree | 85702bcba4e49ede4dc8984fa0ca44ac83bc84d7 /src/mds-kbdc/call-stack.h | |
parent | mds-kbdc: compile-layout: use the call-stack (diff) | |
download | mds-fc0cdca948f16bcf7590e057878fca1d4ce1ed6e.tar.gz mds-fc0cdca948f16bcf7590e057878fca1d4ce1ed6e.tar.bz2 mds-fc0cdca948f16bcf7590e057878fca1d4ce1ed6e.tar.xz |
mds-kbdc: dump call-stack
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/call-stack.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mds-kbdc/call-stack.h b/src/mds-kbdc/call-stack.h index aa206b3..3c010cf 100644 --- a/src/mds-kbdc/call-stack.h +++ b/src/mds-kbdc/call-stack.h @@ -25,6 +25,21 @@ /** + * Add “called from here”-notes + */ +#define DUMP_CALL_STACK \ + fail_if (mds_kbdc_call_stack_dump()) + + + +/** + * Add “called from here”-notes + * + * @return Zero on success, -1 on error + */ +int mds_kbdc_call_stack_dump(void); + +/** * Prepare for usage of call-stacks * * @param result The `result` parameter of root procedure that requires the call-stack |