- **status**: review --> fixed
- **Comment**:

changeset:   8527:7111d57a1590
tag:         tip
parent:      8524:2605957a234b
user:        Hans Nordeback <[email protected]>
date:        Mon Jan 23 08:23:26 2017 +0100
files:       src/amf/amfd/ckpt_dec.cc src/amf/amfd/clm.cc src/amf/amfd/csi.cc 
src/amf/amfd/node.cc src/amf/amfd/nodegroup.cc src/amf/amfd/si_dep.cc 
src/amf/amfnd/pgdb.cc src/amf/amfnd/su.cc src/base/logtrace.c 
src/base/logtrace.h src/imm/agent/imma_init.cc src/imm/agent/imma_om_api.cc 
src/imm/immnd/ImmModel.cc src/imm/immpbed/immpbe_daemon.cc 
src/log/logd/lgs_imm_gcfg.cc src/log/logd/lgs_main.cc src/log/logd/lgs_mbcsv.cc 
src/ntf/ntfd/NtfClient.cc src/smf/smfd/SmfCampaignXmlParser.cc 
src/smf/smfd/SmfUpgradeStep.cc
description:
base: Improve TRACE_ENTER, TRACE_LEAVE macros [#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:** Fri Jan 13, 2017 09:51 AM 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

Reply via email to