changeset: 8528:4ad8ec96077f
tag: tip
user: Zoran Milinkovic <[email protected]>
date: Mon Jan 23 16:15:43 2017 +0100
summary: base: fix OpenSAF build [#2262]
---
** [tickets:#2262] base: Improve TRACE_ENTER, TRACE_LEAVE macros**
**Status:** fixed
**Milestone:** 5.2.FC
**Created:** Fri Jan 13, 2017 09:35 AM UTC by Hans Nordebäck
**Last Updated:** Mon Jan 23, 2017 12:02 PM UTC
**Owner:** Hans Nordebäck
Improve TRACE_ENTER, TRACE_LEAVE macros for C++ functions. A new class Trace is
introduced to make TRACE_ENTER/TRACE_LEAVE consistent. The Trace destructor
will handle all missing TRACE_LEAVE at runtime (RAII idiom). TRACE_LEAVEs
without a matching TRACE_ENTER are handled at compile time. To identify all
missing TRACE_LEAVE zeroes are written as line number:
Jan 13 10:03:48.925438 osafamfd [491:src/amf/amfd/sg_nored_fsm.cc:0325] >>
susi_success: 1
:
Jan 13 10:03:48.929056 osafamfd [491:src/amf/amfd/sg_nored_fsm.cc:0000] <<
susi_success
The trace2dot tool and e.g. dotty can be used to get a call graph.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets