|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Helper macros that wrap the ones from ESock. |
|
15 // |
|
16 |
|
17 /** |
|
18 @file |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 #ifndef MBUFGOBBLERLOG_H_ |
|
23 #define MBUFGOBBLERLOG_H_ |
|
24 |
|
25 #include <e32def.h> |
|
26 #include <comms-infras/ss_logext.h> //defines LOG_NODE_CREATE and LOG_NODE_DESTROY |
|
27 |
|
28 #include <cflog.h> //defines __CFLOG_* macros |
|
29 |
|
30 #include "mbufgobblerhelper.h" |
|
31 |
|
32 /* |
|
33 * The component tag |
|
34 * |
|
35 * In commsdbg.ini add line LOG MbufGobblerLayer * to enbale these logs |
|
36 */ |
|
37 _LIT8(KMbufGobblerComponentTag, "MbufGobblerLayer"); |
|
38 |
|
39 #define KMbufGobblerMcprTag KESockMetaConnectionTag |
|
40 _LIT8(KMbufGobblerMcprSubTag, "MbufGobblerMCpr"); |
|
41 |
|
42 #define KMbufGobblerMCprFactoryTag KESockMetaConnectionTag |
|
43 _LIT8(KMbufGobblerMCprFactorySubTag, "MbufGobblerMCprFactory"); |
|
44 |
|
45 #define KMbufGobblerCprFactoryTag KESockConnectionTag |
|
46 _LIT8(KMbufGobblerCprFactorySubTag, "MbufGobblerCprFactory"); |
|
47 |
|
48 #define KMbufGobblerCprTag KESockConnectionTag |
|
49 _LIT8(KMbufGobblerCprSubTag, "MbufGobblerCpr"); |
|
50 |
|
51 #define KMbufGobblerScprFactoryTag KESockSubConnectionTag |
|
52 _LIT8(KMbufGobblerScprFactorySubTag, "MbufGobblerSCprFactory"); |
|
53 |
|
54 #define KMbufGobblerScprTag KESockSubConnectionTag |
|
55 _LIT8(KMbufGobblerScprSubTag, "MbufGobblerSCpr"); |
|
56 |
|
57 #define KMbufGobblerFlowTag KESockFlowTag |
|
58 _LIT8(KMbufGobblerFlowSubTag,"MbufGobblerFlow"); |
|
59 |
|
60 #define KMbufGobblerTierTag KESockTierTag |
|
61 _LIT8(KMbufGobblerTierSubTag,"MbufGobblerTierM"); |
|
62 |
|
63 #define KMbufGobblerTierFactoryTag KESockTierTag |
|
64 _LIT8(KMbufGobblerTierFactorySubTag,"MbufGobblerTierMFactory"); |
|
65 |
|
66 /* |
|
67 * LOG_NODE_CREATE - this logs out to utrace and is needed for SVG viewer |
|
68 * __CFLOG_VAR - this logs to standard comms dbg utils. Must include cflog.mmh in mmp file |
|
69 */ |
|
70 |
|
71 #define MBUFGOBBLER_LOG_NODE_CREATE(subTag, type, nodename, nodeptr) \ |
|
72 LOG_NODE_CREATE(subTag, type); \ |
|
73 MbufGobblerHelper::LogCreateDestroy(subTag, nodename, nodeptr, 1); |
|
74 |
|
75 #define MBUFGOBBLER_LOG_NODE_DESTROY(subTag, type, nodename, nodeptr) \ |
|
76 LOG_NODE_DESTROY(subTag, type); \ |
|
77 MbufGobblerHelper::LogCreateDestroy(subTag, nodename, nodeptr, 0); |
|
78 |
|
79 #define LOGMESSAGE(subtag, nodeclass, nodeptr, sender, recipient, msg) MbufGobblerHelper::LogMessage(subtag, nodeclass, nodeptr, sender, recipient, msg) |
|
80 |
|
81 #define LOG_NODE_INFO(subtag, nodename, node, clientcount) MbufGobblerHelper::PrintClientNodes(subtag, nodename, node, clientcount); |
|
82 |
|
83 #define LOG(subTag, ARGS...) __CFLOG_VAR((KMbufGobblerComponentTag, subTag, ##ARGS)); |
|
84 |
|
85 #endif /* MBUFGOBBLERLOG_H_ */ |