RTI Connext Micro
Version 2.4.1.0
Main Page
RTI Connext Micro Documentation
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
rh_sm_log.h
Go to the documentation of this file.
1
/*
2
* FILE: rh_sm_log.h - Reader Log definitions
3
*
4
* (c) Copyright 2008-2014 Real-Time Innovations,
5
*
6
* All rights reserved.
7
*
8
* No duplications, whole or partial, manual or electronic, may be made
9
* without express written permission. Any such copies, or
10
* revisions thereof, must display this notice unaltered.
11
* This code contains trade secrets of Real-Time Innovations, Inc.
12
*
13
* Modification History
14
* --------------------
15
* 16aug2011,tk Created
16
*/
17
/*ce
18
* \file
19
* \brief RH module log codes
20
*/
21
#ifndef rh_sm_log_h
22
#define rh_sm_log_h
23
24
#ifndef osapi_log_h
25
#include "osapi/osapi_log.h"
26
#endif
27
28
/*ce
29
* \defgroup RHLogCodesClass RH
30
* \brief Reader History. ModuleID = 8
31
* \ingroup LoggingModule
32
*/
33
34
/*ce
35
* \brief Failed to delete Reader History due to outstanding, unremoved sample
36
* \ingroup RHLogCodesClass
37
*/
38
#define RHSM_LOG_OUTSTANDING_SAMPLE (RHSM_LOG_BASE + 1)
39
#define RHSM_Log_outstanding_sample(level_) \
40
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_OUTSTANDING_SAMPLE,\
41
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
42
43
/*ce
44
* \brief Failed to create Reader History due to unspecified property Qos
45
* \ingroup RHLogCodesClass
46
*/
47
#define RHSM_LOG_NO_PROPERTY_QOS (RHSM_LOG_BASE + 2)
48
#define RHSM_Log_no_property_qos(level_) \
49
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_NO_PROPERTY_QOS,\
50
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
51
52
/*ce
53
* \brief KEEP_ALL History kind is not supported
54
* \ingroup RHLogCodesClass
55
*/
56
#define RHSM_LOG_KEEP_ALL_HISTORY_NOT_SUPPORTED (RHSM_LOG_BASE + 3)
57
#define RHSM_Log_keep_all_history_not_supported(level_) \
58
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_KEEP_ALL_HISTORY_NOT_SUPPORTED,\
59
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
60
61
/*ce
62
* \brief DataReaderQos.resource_limits.max_samples set too small
63
*
64
* \details DataReaderQos.resource_limits.max_samples too small, must be at least
65
* DataReaderQos.resource_limits.max_instances *
66
* DataReaderQos.resource_limits.max_samples_per_instance
67
* \ingroup RHLogCodesClass
68
*/
69
#define RHSM_LOG_MAX_SAMPLE_TOO_SMALL (RHSM_LOG_BASE + 4)
70
#define RHSM_Log_max_sample_too_small(level_) \
71
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_MAX_SAMPLE_TOO_SMALL,\
72
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
73
74
/*ce
75
* \brief Time-based filtering is not supported
76
* \ingroup RHLogCodesClass
77
*/
78
#define RHSM_LOG_TBF_NOT_SUPPORTED (RHSM_LOG_BASE + 5)
79
#define RHSM_Log_tbf_not_supported(level_) \
80
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_TBF_NOT_SUPPORTED,\
81
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
82
83
/*ce
84
* \brief Failed to allocate a buffer pool for sample info
85
* \ingroup RHLogCodesClass
86
*/
87
#define RHSM_LOG_SAMPLE_INFO_POOL (RHSM_LOG_BASE + 6)
88
#define RHSM_Log_sample_info_pool(level_,size_,count_) \
89
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_SAMPLE_INFO_POOL,\
90
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
91
"size=%d,count=%d",(size_),(count_))
92
93
/*ce
94
* \brief Failed to allocate a buffer pool for sample pointers
95
* \ingroup RHLogCodesClass
96
*/
97
#define RHSM_LOG_SAMPLE_POOL (RHSM_LOG_BASE + 7)
98
#define RHSM_Log_sample_pool(level_,size_,count_) \
99
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_SAMPLE_POOL,\
100
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,2,\
101
"size=%d,count=%d",(size_),(count_))
102
103
/*ce
104
* \brief Failed to get sample buffer.
105
*
106
* \details May have exceeded
107
* DataReaderQos.reader_resource_limits.max_outstanding_reads
108
* \ingroup RHLogCodesClass
109
*/
110
#define RHSM_LOG_SAMPLE_PTR_ARRAY (RHSM_LOG_BASE + 8)
111
#define RHSM_Log_sample_ptr_array(level_) \
112
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_SAMPLE_PTR_ARRAY,\
113
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
114
115
/*ce
116
* \brief Failed to get sample info buffer.
117
*
118
* \details May have exceeded
119
* DataReaderQos.reader_resource_limits.max_outstanding_reads
120
* \ingroup RHLogCodesClass
121
*/
122
#define RHSM_LOG_INFO_ARRAY (RHSM_LOG_BASE + 9)
123
#define RHSM_Log_info_array(level_) \
124
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_INFO_ARRAY,\
125
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
126
127
/*ce
128
* \brief Failed to get time for reception timestamp.
129
*
130
* \ingroup RHLogCodesClass
131
*/
132
#define RHSM_LOG_GET_RECEPTION_TIMESTAMP (RHSM_LOG_BASE + 10)
133
#define RHSM_Log_get_reception_timestamp(level_) \
134
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_GET_RECEPTION_TIMESTAMP,\
135
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
136
137
/*ce
138
* \brief An invalid instance replacement policy was specified.
139
*
140
* \ingroup RHLogCodesClass
141
*/
142
#define RHSM_LOG_INVALID_INSTANCE_REPLACEMENT (RHSM_LOG_BASE + 11)
143
#define RHSM_Log_invalid_instance_replacement(level_,kind_) \
144
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_INVALID_INSTANCE_REPLACEMENT,\
145
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"kind=%d",kind_)
146
147
/*ce
148
* \brief Failed to remove the oldest sample
149
*
150
* \ingroup RHLogCodesClass
151
*/
152
#define RHSM_LOG_FAILED_TO_REMOVE_OLDEST (RHSM_LOG_BASE + 12)
153
#define RHSM_Log_failed_to_remove_oldest(level_) \
154
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_FAILED_TO_REMOVE_OLDEST,\
155
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
156
157
/*ce
158
* \brief Sample pool empty, may have exceeded
159
*
160
* \details
161
*
162
* The sample pool is empty, may have exceeded
163
* DataReaderQos.resource_limits.max_samples
164
*
165
* \ingroup RHLogCodesClass
166
*/
167
#define RHSM_LOG_SAMPLE_POOL_EMPTY (RHSM_LOG_BASE + 13)
168
#define RHSM_Log_sample_pool_empty(level_) \
169
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_SAMPLE_POOL_EMPTY,\
170
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
171
172
/*ce
173
* \brief Failed to prune remote writer entry
174
*
175
* \ingroup RHLogCodesClass
176
*/
177
#define RHSM_LOG_RW_PRUNE_FAILED (RHSM_LOG_BASE + 14)
178
#define RHSM_Log_rw_prune_failed(level_) \
179
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_RW_PRUNE_FAILED,\
180
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
181
182
/*ce
183
* \brief Failed to reserve an entry
184
*
185
* \details
186
*
187
* An entry reservation failed beyond normal resource settings
188
*
189
* \ingroup RHLogCodesClass
190
*/
191
#define RHSM_LOG_ENTRY_RESERVATION_FAILED (RHSM_LOG_BASE + 15)
192
#define RHSM_Log_entry_reservation_failed(level_,reason_) \
193
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_ENTRY_RESERVATION_FAILED,\
194
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,1,"reason=%d",(reason_))
195
196
/*ce
197
* \brief Failed to return a sample
198
*
199
* \ingroup RHLogCodesClass
200
*/
201
#define RHSM_LOG_RETURN_SAMPLE (RHSM_LOG_BASE + 16)
202
#define RHSM_Log_return_sample(level_) \
203
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_RETURN_SAMPLE,\
204
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
205
206
/*ce
207
* \brief Failed to return a sample
208
*
209
* \ingroup RHLogCodesClass
210
*/
211
#define RHSM_LOG_HISTORY_UPDATE (RHSM_LOG_BASE + 17)
212
#define RHSM_Log_history_update(level_) \
213
OSAPI_Log_msg_pN_X2((level_),RHSM_LOG_HISTORY_UPDATE,\
214
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,0)
215
216
#endif
217
RTI Connext Micro Version 2.4.1.0
Copyright © Thu Nov 20 2014
Real-Time Innovations, Inc