/src/opensips/mem/shm_mem.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Shared memory functions |
3 | | * |
4 | | * Copyright (C) 2001-2003 FhG Fokus |
5 | | * Copyright (C) 2019 OpenSIPS Solutions |
6 | | * |
7 | | * This file is part of opensips, a free SIP server. |
8 | | * |
9 | | * opensips is free software; you can redistribute it and/or modify |
10 | | * it under the terms of the GNU General Public License as published by |
11 | | * the Free Software Foundation; either version 2 of the License, or |
12 | | * (at your option) any later version |
13 | | * |
14 | | * opensips is distributed in the hope that it will be useful, |
15 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | * GNU General Public License for more details. |
18 | | * |
19 | | * You should have received a copy of the GNU General Public License |
20 | | * along with this program; if not, write to the Free Software |
21 | | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
22 | | */ |
23 | | |
24 | | |
25 | | #include "../statistics.h" |
26 | | #include "../error.h" |
27 | | |
28 | | #ifndef shm_mem_h |
29 | | #define shm_mem_h |
30 | | |
31 | | #include <stdlib.h> |
32 | | #include <string.h> |
33 | | #include <errno.h> |
34 | | #include <sys/types.h> |
35 | | #include <sys/ipc.h> |
36 | | |
37 | | |
38 | | #ifndef SHM_MMAP |
39 | | |
40 | | #include <sys/shm.h> |
41 | | |
42 | | #endif |
43 | | |
44 | | #include <sys/sem.h> |
45 | | #include <string.h> |
46 | | #include <errno.h> |
47 | | |
48 | | #include "../dprint.h" |
49 | | #include "../globals.h" |
50 | | #include "../lock_ops.h" /* we don't include locking.h on purpose */ |
51 | | #include "mem_funcs.h" |
52 | | #include "common.h" |
53 | | |
54 | | #include "../mi/mi.h" |
55 | | |
56 | | #ifdef SHM_EXTRA_STATS |
57 | | #include "module_info.h" |
58 | | #include "mem_stats.h" |
59 | | |
60 | | #ifdef INLINE_ALLOC |
61 | | #if defined F_MALLOC |
62 | | #define shm_stats_core_init fm_stats_core_init |
63 | | #define shm_stats_get_index fm_stats_get_index |
64 | | #define shm_stats_set_index fm_stats_set_index |
65 | | #define shm_frag_overhead FM_FRAG_OVERHEAD |
66 | | #define shm_frag_file fm_frag_file |
67 | | #define shm_frag_func fm_frag_func |
68 | | #define shm_frag_line fm_frag_line |
69 | | #elif defined Q_MALLOC |
70 | | #define shm_stats_core_init qm_stats_core_init |
71 | | #define shm_stats_get_index qm_stats_get_index |
72 | | #define shm_stats_set_index qm_stats_set_index |
73 | | #define shm_frag_overhead QM_FRAG_OVERHEAD |
74 | | #define shm_frag_file qm_frag_file |
75 | | #define shm_frag_func qm_frag_func |
76 | | #define shm_frag_line qm_frag_line |
77 | | #elif defined HP_MALLOC |
78 | | #define shm_stats_core_init hp_stats_core_init |
79 | | #define shm_stats_get_index hp_stats_get_index |
80 | | #define shm_stats_set_index hp_stats_set_index |
81 | | #define shm_frag_overhead HP_FRAG_OVERHEAD |
82 | | #define shm_frag_file hp_frag_file |
83 | | #define shm_frag_func hp_frag_func |
84 | | #define shm_frag_line hp_frag_line |
85 | | #endif |
86 | | #else |
87 | | extern void (*shm_stats_core_init)(void *blk, int core_index); |
88 | | extern unsigned long (*shm_stats_get_index)(void *ptr); |
89 | | extern void (*shm_stats_set_index)(void *ptr, unsigned long idx); |
90 | | extern int shm_frag_overhead; |
91 | | extern const char *(*shm_frag_file)(void *p); |
92 | | extern const char *(*shm_frag_func)(void *p); |
93 | | extern unsigned long (*shm_frag_line)(void *p); |
94 | | #endif |
95 | | #endif |
96 | | |
97 | | #ifdef INLINE_ALLOC |
98 | | #ifdef F_MALLOC |
99 | | #define shm_frag_size fm_frag_size |
100 | | #elif defined Q_MALLOC |
101 | | #define shm_frag_size qm_frag_size |
102 | | #elif defined HP_MALLOC |
103 | | #define shm_frag_size hp_frag_size |
104 | | #elif defined F_PARALLEL_MALLOC |
105 | | #define shm_frag_size parallel_frag_size |
106 | | #endif |
107 | | #else |
108 | | extern unsigned long (*shm_frag_size)(void *p); |
109 | | #endif |
110 | | |
111 | | int set_shm_mm(const char *mm_name); |
112 | | |
113 | | #ifndef INLINE_ALLOC |
114 | | #ifdef DBG_MALLOC |
115 | | extern void *(*gen_shm_malloc)(void *blk, unsigned long size, |
116 | | const char *file, const char *func, unsigned int line); |
117 | | extern void *(*gen_shm_malloc_unsafe)(void *blk, unsigned long size, |
118 | | const char *file, const char *func, unsigned int line); |
119 | | extern void *(*gen_shm_realloc)(void *blk, void *p, unsigned long size, |
120 | | const char *file, const char *func, unsigned int line); |
121 | | extern void *(*gen_shm_realloc_unsafe)(void *blk, void *p, unsigned long size, |
122 | | const char *file, const char *func, unsigned int line); |
123 | | extern void (*gen_shm_free)(void *blk, void *p, |
124 | | const char *file, const char *func, unsigned int line); |
125 | | extern void (*gen_shm_free_unsafe)(void *blk, void *p, |
126 | | const char *file, const char *func, unsigned int line); |
127 | | #else |
128 | | extern void *(*gen_shm_malloc)(void *blk, unsigned long size); |
129 | | extern void *(*gen_shm_malloc_unsafe)(void *blk, unsigned long size); |
130 | | extern void *(*gen_shm_realloc)(void *blk, void *p, unsigned long size); |
131 | | extern void *(*gen_shm_realloc_unsafe)(void *blk, void *p, unsigned long size); |
132 | | extern void (*gen_shm_free)(void *blk, void *p); |
133 | | extern void (*gen_shm_free_unsafe)(void *blk, void *p); |
134 | | #endif |
135 | | extern void (*gen_shm_info)(void *blk, struct mem_info *info); |
136 | | extern void (*gen_shm_status)(void *blk); |
137 | | extern unsigned long (*gen_shm_get_size)(void *blk); |
138 | | extern unsigned long (*gen_shm_get_used)(void *blk); |
139 | | extern unsigned long (*gen_shm_get_rused)(void *blk); |
140 | | extern unsigned long (*gen_shm_get_mused)(void *blk); |
141 | | extern unsigned long (*gen_shm_get_free)(void *blk); |
142 | | extern unsigned long (*gen_shm_get_frags)(void *blk); |
143 | | #endif |
144 | | |
145 | | #ifdef INLINE_ALLOC |
146 | | #ifdef F_MALLOC |
147 | | #define SHM_MALLOC fm_malloc |
148 | | #define SHM_MALLOC_UNSAFE fm_malloc |
149 | | #define SHM_REALLOC fm_realloc |
150 | | #define SHM_REALLOC_UNSAFE fm_realloc |
151 | | #define SHM_FREE fm_free |
152 | | #define SHM_FREE_UNSAFE fm_free |
153 | | #define SHM_INFO fm_info |
154 | | #define SHM_STATUS fm_status |
155 | | #define SHM_GET_SIZE fm_get_size |
156 | | #define SHM_GET_USED fm_get_used |
157 | | #define SHM_GET_RUSED fm_get_real_used |
158 | | #define SHM_GET_MUSED fm_get_max_real_used |
159 | | #define SHM_GET_FREE fm_get_free |
160 | | #define SHM_GET_FRAGS fm_get_frags |
161 | | #elif defined Q_MALLOC |
162 | | #define SHM_MALLOC qm_malloc |
163 | | #define SHM_MALLOC_UNSAFE qm_malloc |
164 | | #define SHM_REALLOC qm_realloc |
165 | | #define SHM_REALLOC_UNSAFE qm_realloc |
166 | | #define SHM_FREE qm_free |
167 | | #define SHM_FREE_UNSAFE qm_free |
168 | | #define SHM_INFO qm_info |
169 | | #define SHM_STATUS qm_status |
170 | | #define SHM_GET_SIZE qm_get_size |
171 | | #define SHM_GET_USED qm_get_used |
172 | | #define SHM_GET_RUSED qm_get_real_used |
173 | | #define SHM_GET_MUSED qm_get_max_real_used |
174 | | #define SHM_GET_FREE qm_get_free |
175 | | #define SHM_GET_FRAGS qm_get_frags |
176 | | #elif defined HP_MALLOC |
177 | | #define SHM_MALLOC hp_shm_malloc |
178 | | #define SHM_MALLOC_UNSAFE hp_shm_malloc_unsafe |
179 | | #define SHM_REALLOC hp_shm_realloc |
180 | | #define SHM_REALLOC_UNSAFE hp_shm_realloc_unsafe |
181 | | #define SHM_FREE hp_shm_free |
182 | | #define SHM_FREE_UNSAFE hp_shm_free_unsafe |
183 | | #define SHM_INFO hp_info |
184 | | #define SHM_STATUS hp_status |
185 | | #define SHM_GET_SIZE hp_shm_get_size |
186 | | #define SHM_GET_USED hp_shm_get_used |
187 | | #define SHM_GET_RUSED hp_shm_get_real_used |
188 | | #define SHM_GET_MUSED hp_shm_get_max_real_used |
189 | | #define SHM_GET_FREE hp_shm_get_free |
190 | | #define SHM_GET_FRAGS hp_shm_get_frags |
191 | | #endif /* F_MALLOC || Q_MALLOC || HP_MALLOC */ |
192 | | #else |
193 | 0 | #define SHM_MALLOC gen_shm_malloc |
194 | 0 | #define SHM_MALLOC_UNSAFE gen_shm_malloc_unsafe |
195 | 0 | #define SHM_REALLOC gen_shm_realloc |
196 | 0 | #define SHM_REALLOC_UNSAFE gen_shm_realloc_unsafe |
197 | 0 | #define SHM_FREE gen_shm_free |
198 | 0 | #define SHM_FREE_UNSAFE gen_shm_free_unsafe |
199 | | #define SHM_INFO gen_shm_info |
200 | 0 | #define SHM_STATUS gen_shm_status |
201 | 0 | #define SHM_GET_SIZE gen_shm_get_size |
202 | 0 | #define SHM_GET_USED gen_shm_get_used |
203 | 0 | #define SHM_GET_RUSED gen_shm_get_rused |
204 | 0 | #define SHM_GET_MUSED gen_shm_get_mused |
205 | 0 | #define SHM_GET_FREE gen_shm_get_free |
206 | 0 | #define SHM_GET_FRAGS gen_shm_get_frags |
207 | | #endif /* INLINE_ALLOC */ |
208 | | |
209 | | #if defined F_MALLOC || defined Q_MALLOC |
210 | | extern gen_lock_t* mem_lock; |
211 | | extern gen_lock_t* rpmem_lock; |
212 | | #endif |
213 | | |
214 | | #ifdef DBG_MALLOC |
215 | | extern gen_lock_t* mem_dbg_lock; |
216 | | #endif |
217 | | |
218 | | #ifdef HP_MALLOC |
219 | | extern gen_lock_t* mem_locks; |
220 | | extern gen_lock_t* rpmem_locks; |
221 | | #endif |
222 | | |
223 | | extern enum osips_mm mem_allocator_shm; |
224 | | |
225 | 0 | #define INVALID_MAP ((void *)-1) |
226 | | int shm_mem_init(); /* calls shm_getmem & shm_mem_init_mallocs */ |
227 | | |
228 | | #ifdef DBG_MALLOC |
229 | | int shm_dbg_mem_init(void); |
230 | | #endif |
231 | | |
232 | | /* |
233 | | * must be called after the statistics engine is initialized |
234 | | * - updates the atomic shm statistics with proper values |
235 | | * - performs memory warming with HP_MALLOC |
236 | | */ |
237 | | int init_shm_post_yyparse(void); |
238 | | void *shm_getmem(int, void *, unsigned long); /* allocates the memory (mmap or sysv shmap) */ |
239 | | void shm_relmem(void *, unsigned long); /* deallocates the memory allocated by shm_getmem() */ |
240 | | void shm_mem_destroy(); |
241 | | |
242 | | |
243 | | #ifdef STATISTICS |
244 | | |
245 | | // threshold percentage checked |
246 | | extern long event_shm_threshold; |
247 | | |
248 | | // determines the last percentage triggered |
249 | | extern long *event_shm_last; |
250 | | |
251 | | // determines if there is a pending event |
252 | | extern int *event_shm_pending; |
253 | | |
254 | | /* indicates the statistics updates should not be done */ |
255 | | #ifdef SHM_EXTRA_STATS |
256 | | extern int mem_skip_stats; |
257 | | #endif |
258 | | |
259 | | // events are used only if SHM and STATISTICS are used |
260 | | void shm_event_raise(long used, long size, long perc); |
261 | | |
262 | | inline static void shm_threshold_check(void) |
263 | 0 | { |
264 | 0 | long shm_perc, used, size; |
265 | |
|
266 | 0 | if (event_shm_threshold == 0 || // threshold not used) |
267 | 0 | !shm_block || !event_shm_last || !event_shm_pending || // shm not init |
268 | 0 | *event_shm_pending ) { // somebody else is raising the event |
269 | | // do not do anything |
270 | 0 | return; |
271 | 0 | } |
272 | | |
273 | | // compute the percentage here to avoid a function call |
274 | 0 | used = SHM_GET_RUSED(shm_block); |
275 | 0 | size = SHM_GET_SIZE(shm_block); |
276 | 0 | shm_perc = used * 100 / size; |
277 | | |
278 | | /* check if the event has to be raised or if it was already notified */ |
279 | 0 | if ((shm_perc < event_shm_threshold && *event_shm_last <= event_shm_threshold) || |
280 | 0 | (shm_perc >= event_shm_threshold && *event_shm_last == shm_perc)) |
281 | 0 | return; |
282 | | |
283 | 0 | shm_event_raise(used, size, shm_perc); |
284 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_threshold_check Unexecuted instantiation: csv.c:shm_threshold_check Unexecuted instantiation: dprint.c:shm_threshold_check Unexecuted instantiation: pt.c:shm_threshold_check Unexecuted instantiation: ut.c:shm_threshold_check Unexecuted instantiation: statistics.c:shm_threshold_check Unexecuted instantiation: route.c:shm_threshold_check Unexecuted instantiation: ipc.c:shm_threshold_check Unexecuted instantiation: core_stats.c:shm_threshold_check Unexecuted instantiation: route_struct.c:shm_threshold_check Unexecuted instantiation: dset.c:shm_threshold_check Unexecuted instantiation: pt_load.c:shm_threshold_check Unexecuted instantiation: sr_module.c:shm_threshold_check Unexecuted instantiation: action.c:shm_threshold_check Unexecuted instantiation: db_insertq.c:shm_threshold_check Unexecuted instantiation: db.c:shm_threshold_check Unexecuted instantiation: proto_tcp.c:shm_threshold_check Unexecuted instantiation: proto_udp.c:shm_threshold_check Unexecuted instantiation: net_tcp_proc.c:shm_threshold_check Unexecuted instantiation: net_tcp.c:shm_threshold_check Unexecuted instantiation: tcp_common.c:shm_threshold_check Unexecuted instantiation: net_udp.c:shm_threshold_check Unexecuted instantiation: tcp_conn_profile.c:shm_threshold_check Unexecuted instantiation: trans_trace.c:shm_threshold_check Unexecuted instantiation: net_tcp_report.c:shm_threshold_check Unexecuted instantiation: shm_mem.c:shm_threshold_check Unexecuted instantiation: rpm_mem.c:shm_threshold_check Unexecuted instantiation: mem.c:shm_threshold_check Unexecuted instantiation: mi.c:shm_threshold_check Unexecuted instantiation: item.c:shm_threshold_check Unexecuted instantiation: msg_parser.c:shm_threshold_check Unexecuted instantiation: parse_uri.c:shm_threshold_check Unexecuted instantiation: parse_fline.c:shm_threshold_check Unexecuted instantiation: parse_hname2.c:shm_threshold_check Unexecuted instantiation: parse_content.c:shm_threshold_check Unexecuted instantiation: hf.c:shm_threshold_check Unexecuted instantiation: parse_to.c:shm_threshold_check Unexecuted instantiation: parse_via.c:shm_threshold_check Unexecuted instantiation: event_interface.c:shm_threshold_check Unexecuted instantiation: evi_params.c:shm_threshold_check Unexecuted instantiation: receive.c:shm_threshold_check Unexecuted instantiation: ip_addr.c:shm_threshold_check Unexecuted instantiation: async.c:shm_threshold_check Unexecuted instantiation: daemonize.c:shm_threshold_check Unexecuted instantiation: timer.c:shm_threshold_check Unexecuted instantiation: trace_api.c:shm_threshold_check Unexecuted instantiation: mod_fix.c:shm_threshold_check Unexecuted instantiation: reactor.c:shm_threshold_check Unexecuted instantiation: strcommon.c:shm_threshold_check Unexecuted instantiation: forward.c:shm_threshold_check Unexecuted instantiation: xlog.c:shm_threshold_check Unexecuted instantiation: blacklists.c:shm_threshold_check Unexecuted instantiation: usr_avp.c:shm_threshold_check Unexecuted instantiation: sdp_ops.c:shm_threshold_check Unexecuted instantiation: resolve.c:shm_threshold_check Unexecuted instantiation: io_wait.c:shm_threshold_check Unexecuted instantiation: transformations.c:shm_threshold_check Unexecuted instantiation: pvar.c:shm_threshold_check Unexecuted instantiation: sr_module_deps.c:shm_threshold_check Unexecuted instantiation: cfg_reload.c:shm_threshold_check Unexecuted instantiation: socket_info.c:shm_threshold_check Unexecuted instantiation: time_rec.c:shm_threshold_check Unexecuted instantiation: map.c:shm_threshold_check Unexecuted instantiation: status_report.c:shm_threshold_check Unexecuted instantiation: pt_scaling.c:shm_threshold_check Unexecuted instantiation: signals.c:shm_threshold_check Unexecuted instantiation: flags.c:shm_threshold_check Unexecuted instantiation: db_id.c:shm_threshold_check Unexecuted instantiation: trans.c:shm_threshold_check Unexecuted instantiation: cJSON.c:shm_threshold_check Unexecuted instantiation: sdp.c:shm_threshold_check Unexecuted instantiation: sdp_helpr_funcs.c:shm_threshold_check Unexecuted instantiation: digest_parser.c:shm_threshold_check Unexecuted instantiation: param_parser.c:shm_threshold_check Unexecuted instantiation: parse_contact.c:shm_threshold_check Unexecuted instantiation: parse_body.c:shm_threshold_check Unexecuted instantiation: parse_security.c:shm_threshold_check Unexecuted instantiation: parse_call_info.c:shm_threshold_check Unexecuted instantiation: parse_event.c:shm_threshold_check Unexecuted instantiation: parse_disposition.c:shm_threshold_check Unexecuted instantiation: parse_authenticate.c:shm_threshold_check Unexecuted instantiation: parser_f.c:shm_threshold_check Unexecuted instantiation: parse_rpid.c:shm_threshold_check Unexecuted instantiation: parse_ppi.c:shm_threshold_check Unexecuted instantiation: parse_fcaps.c:shm_threshold_check Unexecuted instantiation: parse_rr.c:shm_threshold_check Unexecuted instantiation: parse_param.c:shm_threshold_check Unexecuted instantiation: parse_diversion.c:shm_threshold_check Unexecuted instantiation: parse_nameaddr.c:shm_threshold_check Unexecuted instantiation: parse_expires.c:shm_threshold_check Unexecuted instantiation: parse_refer_to.c:shm_threshold_check Unexecuted instantiation: parse_from.c:shm_threshold_check Unexecuted instantiation: parse_pai.c:shm_threshold_check Unexecuted instantiation: evi_transport.c:shm_threshold_check Unexecuted instantiation: msg_translator.c:shm_threshold_check Unexecuted instantiation: md5utils.c:shm_threshold_check Unexecuted instantiation: cfg.tab.c:shm_threshold_check Unexecuted instantiation: modparam.c:shm_threshold_check Unexecuted instantiation: crc.c:shm_threshold_check Unexecuted instantiation: lex.yy.c:shm_threshold_check Unexecuted instantiation: cfg_pp.c:shm_threshold_check Unexecuted instantiation: proxy.c:shm_threshold_check Unexecuted instantiation: shutdown.c:shm_threshold_check Unexecuted instantiation: core_cmds.c:shm_threshold_check Unexecuted instantiation: cachedb.c:shm_threshold_check Unexecuted instantiation: cachedb_id.c:shm_threshold_check |
285 | | #else |
286 | | #define shm_threshold_check() |
287 | | #endif |
288 | | |
289 | | #if defined(HP_MALLOC) || defined(F_PARALLEL_MALLOC) |
290 | | #ifdef INLINE_ALLOC |
291 | | #define shm_lock() |
292 | | #define shm_unlock() |
293 | | #else |
294 | | extern int shm_use_global_lock; |
295 | | #define shm_lock() \ |
296 | 0 | do { \ |
297 | 0 | if (shm_use_global_lock) \ |
298 | 0 | lock_get(mem_lock); \ |
299 | 0 | } while (0) |
300 | | #define shm_unlock() \ |
301 | 0 | do { \ |
302 | 0 | if (shm_use_global_lock) \ |
303 | 0 | lock_release(mem_lock); \ |
304 | 0 | } while (0) |
305 | | #endif |
306 | | extern unsigned long long *shm_hash_usage; |
307 | | #else |
308 | | #define shm_lock() lock_get(mem_lock) |
309 | | #define shm_unlock() lock_release(mem_lock) |
310 | | #endif |
311 | | |
312 | | #ifdef DBG_MALLOC |
313 | | #define shm_dbg_lock() lock_get(mem_dbg_lock) |
314 | | #define shm_dbg_unlock() lock_release(mem_dbg_lock) |
315 | | #endif |
316 | | |
317 | | #ifdef SHM_EXTRA_STATS |
318 | | #define PASTER(_x, _y) _x ## _y |
319 | | #define VAR_STAT(_n) PASTER(_n, _mem_stat) |
320 | | #endif |
321 | | |
322 | | #include "shm_mem_dbg.h" |
323 | | |
324 | | #ifdef DBG_MALLOC |
325 | | |
326 | | #ifdef __SUNPRO_C |
327 | | #define __FUNCTION__ "" /* gcc specific */ |
328 | | #endif |
329 | | |
330 | | inline static void* _shm_dbg_malloc(unsigned long size, |
331 | | const char *file, const char *function, unsigned int line ) |
332 | | { |
333 | | void *p; |
334 | | |
335 | | shm_dbg_lock(); |
336 | | |
337 | | p = SHM_MALLOC(shm_dbg_block, size, file, function, line); |
338 | | |
339 | | shm_dbg_unlock(); |
340 | | |
341 | | return p; |
342 | | } |
343 | | |
344 | | inline static void* _shm_dbg_malloc_unsafe(unsigned long size, |
345 | | const char *file, const char *function, unsigned int line ) |
346 | | { |
347 | | void *p; |
348 | | |
349 | | p = SHM_MALLOC(shm_dbg_block, size, file, function, line); |
350 | | |
351 | | return p; |
352 | | } |
353 | | |
354 | | inline static void* _shm_dbg_realloc(void *ptr, unsigned long size, |
355 | | const char* file, const char* function, unsigned int line ) |
356 | | { |
357 | | void *p; |
358 | | |
359 | | shm_dbg_lock(); |
360 | | |
361 | | p = SHM_REALLOC(shm_dbg_block, ptr, size, file, function, line); |
362 | | |
363 | | shm_dbg_unlock(); |
364 | | |
365 | | return p; |
366 | | } |
367 | | |
368 | | inline static void _shm_dbg_free(void *ptr, |
369 | | const char* file, const char* function, unsigned int line) |
370 | | { |
371 | | shm_dbg_lock(); |
372 | | |
373 | | SHM_FREE(shm_dbg_block, ptr, file, function, line); |
374 | | |
375 | | shm_dbg_unlock(); |
376 | | } |
377 | | |
378 | | #define shm_dbg_malloc_func _shm_dbg_malloc |
379 | | #define shm_dbg_malloc( _size ) _shm_dbg_malloc((_size), \ |
380 | | __FILE__, __FUNCTION__, __LINE__ ) |
381 | | |
382 | | #define shm_dbg_malloc_unsafe_func _shm_dbg_malloc_unsafe |
383 | | #define shm_dbg_malloc_unsafe( _size ) _shm_dbg_malloc_unsafe((_size), \ |
384 | | __FILE__, __FUNCTION__, __LINE__ ) |
385 | | |
386 | | #define shm_dbg_realloc_func _shm_dbg_realloc |
387 | | #define shm_dbg_realloc( _ptr, _size ) _shm_dbg_realloc( (_ptr), (_size), \ |
388 | | __FILE__, __FUNCTION__, __LINE__ ) |
389 | | |
390 | | #define shm_dbg_free_func _shm_dbg_free |
391 | | #define shm_dbg_free( _ptr ) _shm_dbg_free( (_ptr), \ |
392 | | __FILE__, __FUNCTION__, __LINE__ ) |
393 | | |
394 | | #define shm_malloc_func _shm_malloc |
395 | | #define shm_realloc_func _shm_realloc |
396 | | #define shm_free_func _shm_free |
397 | | |
398 | | inline static void* _shm_malloc(unsigned long size, |
399 | | const char *file, const char *function, unsigned int line ) |
400 | | { |
401 | | void *p; |
402 | | |
403 | | shm_lock(); |
404 | | |
405 | | p = SHM_MALLOC(shm_block, size, file, function, line); |
406 | | shm_threshold_check(); |
407 | | |
408 | | shm_unlock(); |
409 | | |
410 | | DBG_SHM_ALLOC(SH_SHM_MALLOC); |
411 | | |
412 | | #ifdef SHM_EXTRA_STATS |
413 | | if (p) { |
414 | | unsigned long size_f = shm_frag_size(p); |
415 | | update_module_stats(size_f, size_f + shm_frag_overhead, 1, VAR_STAT(MOD_NAME)); |
416 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
417 | | } |
418 | | #endif |
419 | | |
420 | | return p; |
421 | | } |
422 | | |
423 | | inline static void* _shm_malloc_unsafe(unsigned long size, |
424 | | const char *file, const char *function, unsigned int line ) |
425 | | { |
426 | | void *p; |
427 | | |
428 | | p = SHM_MALLOC_UNSAFE(shm_block, size, file, function, line); |
429 | | shm_threshold_check(); |
430 | | |
431 | | #ifdef SHM_EXTRA_STATS |
432 | | if (p) { |
433 | | unsigned long size_f = shm_frag_size(p); |
434 | | update_module_stats(size_f, size_f + shm_frag_overhead, 1, VAR_STAT(MOD_NAME)); |
435 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
436 | | } |
437 | | #endif |
438 | | |
439 | | return p; |
440 | | } |
441 | | |
442 | | inline static void* _shm_malloc_bulk(unsigned long size, |
443 | | const char *file, const char *function, unsigned int line ) |
444 | | { |
445 | | void *p; |
446 | | |
447 | | p = SHM_MALLOC(shm_block, size, file, function, line); |
448 | | shm_threshold_check(); |
449 | | |
450 | | DBG_SHM_ALLOC(SH_SHM_MALLOC); |
451 | | |
452 | | #ifdef SHM_EXTRA_STATS |
453 | | if (p) { |
454 | | unsigned long size_f = shm_frag_size(p); |
455 | | update_module_stats(size_f, size_f + shm_frag_overhead, 1, VAR_STAT(MOD_NAME)); |
456 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
457 | | } |
458 | | #endif |
459 | | |
460 | | return p; |
461 | | } |
462 | | |
463 | | inline static void* _shm_realloc(void *ptr, unsigned long size, |
464 | | const char* file, const char* function, unsigned int line ) |
465 | | { |
466 | | void *p; |
467 | | |
468 | | #ifdef SHM_EXTRA_STATS |
469 | | unsigned long origin = 0; |
470 | | if (ptr) { |
471 | | origin = shm_stats_get_index(ptr); |
472 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
473 | | } |
474 | | #endif |
475 | | |
476 | | shm_lock(); |
477 | | |
478 | | p = SHM_REALLOC(shm_block, ptr, size, file, function, line); |
479 | | shm_threshold_check(); |
480 | | |
481 | | shm_unlock(); |
482 | | |
483 | | DBG_SHM_ALLOC(SH_SHM_REALLOC); |
484 | | |
485 | | #ifdef SHM_EXTRA_STATS |
486 | | if (p) { |
487 | | update_module_stats(shm_frag_size(p), shm_frag_size(p) + shm_frag_overhead, |
488 | | 1 , VAR_STAT(MOD_NAME)); |
489 | | if (ptr && origin != VAR_STAT(MOD_NAME)) |
490 | | LM_GEN1(memlog, "memory reallocated from different module than it was allocated, allocated in" |
491 | | "module index %ld, at %s: %s %ld, reallocated in module index %ld, at %s: %s %d \n", |
492 | | origin, shm_frag_file(p), shm_frag_func(p), shm_frag_line(p), VAR_STAT(MOD_NAME), file, function, line); |
493 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
494 | | } |
495 | | #endif |
496 | | |
497 | | return p; |
498 | | } |
499 | | |
500 | | inline static void* _shm_realloc_unsafe(void *ptr, unsigned long size, |
501 | | const char* file, const char* function, unsigned int line ) |
502 | | { |
503 | | void *p; |
504 | | |
505 | | #ifdef SHM_EXTRA_STATS |
506 | | unsigned long origin = 0; |
507 | | if (ptr) { |
508 | | origin = shm_stats_get_index(ptr); |
509 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
510 | | } |
511 | | #endif |
512 | | |
513 | | p = SHM_REALLOC_UNSAFE(shm_block, ptr, size, file, function, line); |
514 | | shm_threshold_check(); |
515 | | |
516 | | #ifdef SHM_EXTRA_STATS |
517 | | if (p) { |
518 | | update_module_stats(shm_frag_size(p), shm_frag_size(p) + shm_frag_overhead, |
519 | | 1 , VAR_STAT(MOD_NAME)); |
520 | | if (ptr && origin != VAR_STAT(MOD_NAME)) |
521 | | LM_GEN1(memlog, "memory reallocated from different module than it was allocated, allocated in" |
522 | | "module index %ld, at %s: %s %ld, reallocated in module index %ld, at %s: %s %d \n", |
523 | | origin, shm_frag_file(p), shm_frag_func(p), shm_frag_line(p), VAR_STAT(MOD_NAME), file, function, line); |
524 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
525 | | } |
526 | | #endif |
527 | | |
528 | | return p; |
529 | | } |
530 | | |
531 | | inline static void _shm_free(void *ptr, |
532 | | const char* file, const char* function, unsigned int line) |
533 | | { |
534 | | int size = -1; |
535 | | |
536 | | shm_lock(); |
537 | | |
538 | | #ifdef SHM_EXTRA_STATS |
539 | | if (shm_stats_get_index(ptr) != VAR_STAT(MOD_NAME)) { |
540 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
541 | | LM_GEN1(memlog, "memory freed from different module than it was allocated, allocated in" |
542 | | "module with index %ld, freed in module index %ld, at %s: %s %d \n", shm_stats_get_index(ptr), VAR_STAT(MOD_NAME), |
543 | | __FILE__, __FUNCTION__, __LINE__); |
544 | | } else { |
545 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, VAR_STAT(MOD_NAME)); |
546 | | } |
547 | | #endif |
548 | | |
549 | | if (ptr) |
550 | | size = shm_frag_size(ptr); |
551 | | |
552 | | SHM_FREE(shm_block, ptr, file, function, line); |
553 | | shm_threshold_check(); |
554 | | |
555 | | shm_unlock(); |
556 | | DBG_SHM_FREE(file, function, line, size); |
557 | | } |
558 | | |
559 | | inline static void _shm_free_unsafe(void *ptr, |
560 | | const char* file, const char* function, unsigned int line ) |
561 | | { |
562 | | |
563 | | #ifdef SHM_EXTRA_STATS |
564 | | if (shm_stats_get_index(ptr) != VAR_STAT(MOD_NAME)) { |
565 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
566 | | LM_GEN1(memlog, "memory freed from different module than it was allocated, allocated in" |
567 | | "module index %ld, at %s: %s %ld, freed in module index %ld, at %s: %s %d \n", |
568 | | shm_stats_get_index(ptr), shm_frag_file(ptr), shm_frag_func(ptr), shm_frag_line(ptr), VAR_STAT(MOD_NAME), |
569 | | file, function, line); |
570 | | } else { |
571 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, VAR_STAT(MOD_NAME)); |
572 | | } |
573 | | #endif |
574 | | |
575 | | SHM_FREE_UNSAFE(shm_block, ptr, file, function, line); |
576 | | shm_threshold_check(); |
577 | | } |
578 | | |
579 | | inline static void _shm_free_bulk(void *ptr, |
580 | | const char* file, const char* function, unsigned int line) |
581 | | { |
582 | | int size; |
583 | | |
584 | | #ifdef SHM_EXTRA_STATS |
585 | | if (shm_stats_get_index(ptr) != VAR_STAT(MOD_NAME)) { |
586 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
587 | | LM_GEN1(memlog, "memory freed from different module than it was allocated, allocated in" |
588 | | "module with index %ld, freed in module index %ld, at %s: %s %d \n", shm_stats_get_index(ptr), VAR_STAT(MOD_NAME), |
589 | | __FILE__, __FUNCTION__, __LINE__); |
590 | | } else { |
591 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, VAR_STAT(MOD_NAME)); |
592 | | } |
593 | | #endif |
594 | | |
595 | | if (ptr) |
596 | | size = shm_frag_size(ptr); |
597 | | |
598 | | SHM_FREE(shm_block, ptr, file, function, line); |
599 | | shm_threshold_check(); |
600 | | |
601 | | DBG_SHM_FREE(file, function, line, size); |
602 | | } |
603 | | |
604 | | #define shm_malloc_func _shm_malloc |
605 | | #define shm_malloc( _size ) _shm_malloc((_size), \ |
606 | | __FILE__, __FUNCTION__, __LINE__ ) |
607 | | |
608 | | #define shm_malloc_unsafe_func _shm_malloc_unsafe |
609 | | #define shm_malloc_unsafe(_size ) _shm_malloc_unsafe((_size), \ |
610 | | __FILE__, __FUNCTION__, __LINE__ ) |
611 | | |
612 | | #define shm_malloc_bulk_func _shm_malloc_bulk |
613 | | #define shm_malloc_bulk(_size ) _shm_malloc_bulk((_size), \ |
614 | | __FILE__, __FUNCTION__, __LINE__ ) |
615 | | |
616 | | #define shm_realloc_func _shm_realloc |
617 | | #define shm_realloc( _ptr, _size ) _shm_realloc( (_ptr), (_size), \ |
618 | | __FILE__, __FUNCTION__, __LINE__ ) |
619 | | |
620 | | #define shm_realloc_func_unsafe _shm_realloc_unsafe |
621 | | #define shm_realloc_unsafe( _ptr, _size ) _shm_realloc_unsafe( (_ptr), (_size), \ |
622 | | __FILE__, __FUNCTION__, __LINE__ ) |
623 | | |
624 | | #define shm_free_func _shm_free |
625 | | #define shm_free( _ptr ) _shm_free( (_ptr), \ |
626 | | __FILE__, __FUNCTION__, __LINE__ ) |
627 | | |
628 | | #define shm_free_unsafe_func _shm_free_unsafe |
629 | | #define shm_free_unsafe( _ptr ) _shm_free_unsafe( (_ptr), \ |
630 | | __FILE__, __FUNCTION__, __LINE__ ) |
631 | | |
632 | | #define shm_free_bulk_func _shm_free_bulk |
633 | | #define shm_free_bulk( _ptr ) _shm_free_bulk( (_ptr), \ |
634 | | __FILE__, __FUNCTION__, __LINE__ ) |
635 | | |
636 | | #else /*DBG_MALLOC*/ |
637 | | |
638 | 0 | #define shm_malloc_func shm_malloc |
639 | | inline static void* shm_malloc(unsigned long size) |
640 | 0 | { |
641 | 0 | void *p; |
642 | |
|
643 | 0 | shm_lock(); |
644 | |
|
645 | 0 | p = SHM_MALLOC(shm_block, size); |
646 | 0 | shm_threshold_check(); |
647 | |
|
648 | 0 | shm_unlock(); |
649 | |
|
650 | | #ifdef SHM_EXTRA_STATS |
651 | | if (p) { |
652 | | unsigned long size_f = shm_frag_size(p); |
653 | | update_module_stats(size_f, size_f + shm_frag_overhead, 1, VAR_STAT(MOD_NAME)); |
654 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
655 | | } |
656 | | #endif |
657 | |
|
658 | 0 | return p; |
659 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_malloc Unexecuted instantiation: csv.c:shm_malloc Unexecuted instantiation: dprint.c:shm_malloc Unexecuted instantiation: pt.c:shm_malloc Unexecuted instantiation: ut.c:shm_malloc Unexecuted instantiation: statistics.c:shm_malloc Unexecuted instantiation: route.c:shm_malloc Unexecuted instantiation: ipc.c:shm_malloc Unexecuted instantiation: core_stats.c:shm_malloc Unexecuted instantiation: route_struct.c:shm_malloc Unexecuted instantiation: dset.c:shm_malloc Unexecuted instantiation: pt_load.c:shm_malloc Unexecuted instantiation: sr_module.c:shm_malloc Unexecuted instantiation: action.c:shm_malloc Unexecuted instantiation: db_insertq.c:shm_malloc Unexecuted instantiation: db.c:shm_malloc Unexecuted instantiation: proto_tcp.c:shm_malloc Unexecuted instantiation: proto_udp.c:shm_malloc Unexecuted instantiation: net_tcp_proc.c:shm_malloc Unexecuted instantiation: net_tcp.c:shm_malloc Unexecuted instantiation: tcp_common.c:shm_malloc Unexecuted instantiation: net_udp.c:shm_malloc Unexecuted instantiation: tcp_conn_profile.c:shm_malloc Unexecuted instantiation: trans_trace.c:shm_malloc Unexecuted instantiation: net_tcp_report.c:shm_malloc Unexecuted instantiation: shm_mem.c:shm_malloc Unexecuted instantiation: rpm_mem.c:shm_malloc Unexecuted instantiation: mem.c:shm_malloc Unexecuted instantiation: mi.c:shm_malloc Unexecuted instantiation: item.c:shm_malloc Unexecuted instantiation: msg_parser.c:shm_malloc Unexecuted instantiation: parse_uri.c:shm_malloc Unexecuted instantiation: parse_fline.c:shm_malloc Unexecuted instantiation: parse_hname2.c:shm_malloc Unexecuted instantiation: parse_content.c:shm_malloc Unexecuted instantiation: hf.c:shm_malloc Unexecuted instantiation: parse_to.c:shm_malloc Unexecuted instantiation: parse_via.c:shm_malloc Unexecuted instantiation: event_interface.c:shm_malloc Unexecuted instantiation: evi_params.c:shm_malloc Unexecuted instantiation: receive.c:shm_malloc Unexecuted instantiation: ip_addr.c:shm_malloc Unexecuted instantiation: async.c:shm_malloc Unexecuted instantiation: daemonize.c:shm_malloc Unexecuted instantiation: timer.c:shm_malloc Unexecuted instantiation: trace_api.c:shm_malloc Unexecuted instantiation: mod_fix.c:shm_malloc Unexecuted instantiation: reactor.c:shm_malloc Unexecuted instantiation: strcommon.c:shm_malloc Unexecuted instantiation: forward.c:shm_malloc Unexecuted instantiation: xlog.c:shm_malloc Unexecuted instantiation: blacklists.c:shm_malloc Unexecuted instantiation: usr_avp.c:shm_malloc Unexecuted instantiation: sdp_ops.c:shm_malloc Unexecuted instantiation: resolve.c:shm_malloc Unexecuted instantiation: io_wait.c:shm_malloc Unexecuted instantiation: transformations.c:shm_malloc Unexecuted instantiation: pvar.c:shm_malloc Unexecuted instantiation: sr_module_deps.c:shm_malloc Unexecuted instantiation: cfg_reload.c:shm_malloc Unexecuted instantiation: socket_info.c:shm_malloc Unexecuted instantiation: time_rec.c:shm_malloc Unexecuted instantiation: map.c:shm_malloc Unexecuted instantiation: status_report.c:shm_malloc Unexecuted instantiation: pt_scaling.c:shm_malloc Unexecuted instantiation: signals.c:shm_malloc Unexecuted instantiation: flags.c:shm_malloc Unexecuted instantiation: db_id.c:shm_malloc Unexecuted instantiation: trans.c:shm_malloc Unexecuted instantiation: cJSON.c:shm_malloc Unexecuted instantiation: sdp.c:shm_malloc Unexecuted instantiation: sdp_helpr_funcs.c:shm_malloc Unexecuted instantiation: digest_parser.c:shm_malloc Unexecuted instantiation: param_parser.c:shm_malloc Unexecuted instantiation: parse_contact.c:shm_malloc Unexecuted instantiation: parse_body.c:shm_malloc Unexecuted instantiation: parse_security.c:shm_malloc Unexecuted instantiation: parse_call_info.c:shm_malloc Unexecuted instantiation: parse_event.c:shm_malloc Unexecuted instantiation: parse_disposition.c:shm_malloc Unexecuted instantiation: parse_authenticate.c:shm_malloc Unexecuted instantiation: parser_f.c:shm_malloc Unexecuted instantiation: parse_rpid.c:shm_malloc Unexecuted instantiation: parse_ppi.c:shm_malloc Unexecuted instantiation: parse_fcaps.c:shm_malloc Unexecuted instantiation: parse_rr.c:shm_malloc Unexecuted instantiation: parse_param.c:shm_malloc Unexecuted instantiation: parse_diversion.c:shm_malloc Unexecuted instantiation: parse_nameaddr.c:shm_malloc Unexecuted instantiation: parse_expires.c:shm_malloc Unexecuted instantiation: parse_refer_to.c:shm_malloc Unexecuted instantiation: parse_from.c:shm_malloc Unexecuted instantiation: parse_pai.c:shm_malloc Unexecuted instantiation: evi_transport.c:shm_malloc Unexecuted instantiation: msg_translator.c:shm_malloc Unexecuted instantiation: md5utils.c:shm_malloc Unexecuted instantiation: cfg.tab.c:shm_malloc Unexecuted instantiation: modparam.c:shm_malloc Unexecuted instantiation: crc.c:shm_malloc Unexecuted instantiation: lex.yy.c:shm_malloc Unexecuted instantiation: cfg_pp.c:shm_malloc Unexecuted instantiation: proxy.c:shm_malloc Unexecuted instantiation: shutdown.c:shm_malloc Unexecuted instantiation: core_cmds.c:shm_malloc Unexecuted instantiation: cachedb.c:shm_malloc Unexecuted instantiation: cachedb_id.c:shm_malloc |
660 | | |
661 | | #define shm_malloc_func_unsafe shm_malloc_unsafe |
662 | | inline static void* shm_malloc_unsafe(unsigned int size) |
663 | 0 | { |
664 | 0 | void *p; |
665 | |
|
666 | 0 | p = SHM_MALLOC_UNSAFE(shm_block, size); |
667 | |
|
668 | 0 | shm_threshold_check(); |
669 | |
|
670 | | #ifdef SHM_EXTRA_STATS |
671 | | if (p) { |
672 | | unsigned long size_f = shm_frag_size(p); |
673 | | update_module_stats(size_f, size_f + shm_frag_overhead, 1, VAR_STAT(MOD_NAME)); |
674 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
675 | | } |
676 | | #endif |
677 | |
|
678 | 0 | return p; |
679 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_malloc_unsafe Unexecuted instantiation: csv.c:shm_malloc_unsafe Unexecuted instantiation: dprint.c:shm_malloc_unsafe Unexecuted instantiation: pt.c:shm_malloc_unsafe Unexecuted instantiation: ut.c:shm_malloc_unsafe Unexecuted instantiation: statistics.c:shm_malloc_unsafe Unexecuted instantiation: route.c:shm_malloc_unsafe Unexecuted instantiation: ipc.c:shm_malloc_unsafe Unexecuted instantiation: core_stats.c:shm_malloc_unsafe Unexecuted instantiation: route_struct.c:shm_malloc_unsafe Unexecuted instantiation: dset.c:shm_malloc_unsafe Unexecuted instantiation: pt_load.c:shm_malloc_unsafe Unexecuted instantiation: sr_module.c:shm_malloc_unsafe Unexecuted instantiation: action.c:shm_malloc_unsafe Unexecuted instantiation: db_insertq.c:shm_malloc_unsafe Unexecuted instantiation: db.c:shm_malloc_unsafe Unexecuted instantiation: proto_tcp.c:shm_malloc_unsafe Unexecuted instantiation: proto_udp.c:shm_malloc_unsafe Unexecuted instantiation: net_tcp_proc.c:shm_malloc_unsafe Unexecuted instantiation: net_tcp.c:shm_malloc_unsafe Unexecuted instantiation: tcp_common.c:shm_malloc_unsafe Unexecuted instantiation: net_udp.c:shm_malloc_unsafe Unexecuted instantiation: tcp_conn_profile.c:shm_malloc_unsafe Unexecuted instantiation: trans_trace.c:shm_malloc_unsafe Unexecuted instantiation: net_tcp_report.c:shm_malloc_unsafe Unexecuted instantiation: shm_mem.c:shm_malloc_unsafe Unexecuted instantiation: rpm_mem.c:shm_malloc_unsafe Unexecuted instantiation: mem.c:shm_malloc_unsafe Unexecuted instantiation: mi.c:shm_malloc_unsafe Unexecuted instantiation: item.c:shm_malloc_unsafe Unexecuted instantiation: msg_parser.c:shm_malloc_unsafe Unexecuted instantiation: parse_uri.c:shm_malloc_unsafe Unexecuted instantiation: parse_fline.c:shm_malloc_unsafe Unexecuted instantiation: parse_hname2.c:shm_malloc_unsafe Unexecuted instantiation: parse_content.c:shm_malloc_unsafe Unexecuted instantiation: hf.c:shm_malloc_unsafe Unexecuted instantiation: parse_to.c:shm_malloc_unsafe Unexecuted instantiation: parse_via.c:shm_malloc_unsafe Unexecuted instantiation: event_interface.c:shm_malloc_unsafe Unexecuted instantiation: evi_params.c:shm_malloc_unsafe Unexecuted instantiation: receive.c:shm_malloc_unsafe Unexecuted instantiation: ip_addr.c:shm_malloc_unsafe Unexecuted instantiation: async.c:shm_malloc_unsafe Unexecuted instantiation: daemonize.c:shm_malloc_unsafe Unexecuted instantiation: timer.c:shm_malloc_unsafe Unexecuted instantiation: trace_api.c:shm_malloc_unsafe Unexecuted instantiation: mod_fix.c:shm_malloc_unsafe Unexecuted instantiation: reactor.c:shm_malloc_unsafe Unexecuted instantiation: strcommon.c:shm_malloc_unsafe Unexecuted instantiation: forward.c:shm_malloc_unsafe Unexecuted instantiation: xlog.c:shm_malloc_unsafe Unexecuted instantiation: blacklists.c:shm_malloc_unsafe Unexecuted instantiation: usr_avp.c:shm_malloc_unsafe Unexecuted instantiation: sdp_ops.c:shm_malloc_unsafe Unexecuted instantiation: resolve.c:shm_malloc_unsafe Unexecuted instantiation: io_wait.c:shm_malloc_unsafe Unexecuted instantiation: transformations.c:shm_malloc_unsafe Unexecuted instantiation: pvar.c:shm_malloc_unsafe Unexecuted instantiation: sr_module_deps.c:shm_malloc_unsafe Unexecuted instantiation: cfg_reload.c:shm_malloc_unsafe Unexecuted instantiation: socket_info.c:shm_malloc_unsafe Unexecuted instantiation: time_rec.c:shm_malloc_unsafe Unexecuted instantiation: map.c:shm_malloc_unsafe Unexecuted instantiation: status_report.c:shm_malloc_unsafe Unexecuted instantiation: pt_scaling.c:shm_malloc_unsafe Unexecuted instantiation: signals.c:shm_malloc_unsafe Unexecuted instantiation: flags.c:shm_malloc_unsafe Unexecuted instantiation: db_id.c:shm_malloc_unsafe Unexecuted instantiation: trans.c:shm_malloc_unsafe Unexecuted instantiation: cJSON.c:shm_malloc_unsafe Unexecuted instantiation: sdp.c:shm_malloc_unsafe Unexecuted instantiation: sdp_helpr_funcs.c:shm_malloc_unsafe Unexecuted instantiation: digest_parser.c:shm_malloc_unsafe Unexecuted instantiation: param_parser.c:shm_malloc_unsafe Unexecuted instantiation: parse_contact.c:shm_malloc_unsafe Unexecuted instantiation: parse_body.c:shm_malloc_unsafe Unexecuted instantiation: parse_security.c:shm_malloc_unsafe Unexecuted instantiation: parse_call_info.c:shm_malloc_unsafe Unexecuted instantiation: parse_event.c:shm_malloc_unsafe Unexecuted instantiation: parse_disposition.c:shm_malloc_unsafe Unexecuted instantiation: parse_authenticate.c:shm_malloc_unsafe Unexecuted instantiation: parser_f.c:shm_malloc_unsafe Unexecuted instantiation: parse_rpid.c:shm_malloc_unsafe Unexecuted instantiation: parse_ppi.c:shm_malloc_unsafe Unexecuted instantiation: parse_fcaps.c:shm_malloc_unsafe Unexecuted instantiation: parse_rr.c:shm_malloc_unsafe Unexecuted instantiation: parse_param.c:shm_malloc_unsafe Unexecuted instantiation: parse_diversion.c:shm_malloc_unsafe Unexecuted instantiation: parse_nameaddr.c:shm_malloc_unsafe Unexecuted instantiation: parse_expires.c:shm_malloc_unsafe Unexecuted instantiation: parse_refer_to.c:shm_malloc_unsafe Unexecuted instantiation: parse_from.c:shm_malloc_unsafe Unexecuted instantiation: parse_pai.c:shm_malloc_unsafe Unexecuted instantiation: evi_transport.c:shm_malloc_unsafe Unexecuted instantiation: msg_translator.c:shm_malloc_unsafe Unexecuted instantiation: md5utils.c:shm_malloc_unsafe Unexecuted instantiation: cfg.tab.c:shm_malloc_unsafe Unexecuted instantiation: modparam.c:shm_malloc_unsafe Unexecuted instantiation: crc.c:shm_malloc_unsafe Unexecuted instantiation: lex.yy.c:shm_malloc_unsafe Unexecuted instantiation: cfg_pp.c:shm_malloc_unsafe Unexecuted instantiation: proxy.c:shm_malloc_unsafe Unexecuted instantiation: shutdown.c:shm_malloc_unsafe Unexecuted instantiation: core_cmds.c:shm_malloc_unsafe Unexecuted instantiation: cachedb.c:shm_malloc_unsafe Unexecuted instantiation: cachedb_id.c:shm_malloc_unsafe |
680 | | |
681 | | #define shm_malloc_bulk_func shm_malloc_bulk |
682 | | inline static void* shm_malloc_bulk(unsigned long size) |
683 | 0 | { |
684 | 0 | void *p; |
685 | 0 |
|
686 | 0 | p = SHM_MALLOC(shm_block, size); |
687 | 0 | shm_threshold_check(); |
688 | 0 |
|
689 | 0 | #ifdef SHM_EXTRA_STATS |
690 | 0 | if (p) { |
691 | 0 | unsigned long size_f = shm_frag_size(p); |
692 | 0 | update_module_stats(size_f, size_f + shm_frag_overhead, 1, VAR_STAT(MOD_NAME)); |
693 | 0 | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
694 | 0 | } |
695 | 0 | #endif |
696 | 0 |
|
697 | 0 | return p; |
698 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_malloc_bulk Unexecuted instantiation: csv.c:shm_malloc_bulk Unexecuted instantiation: dprint.c:shm_malloc_bulk Unexecuted instantiation: pt.c:shm_malloc_bulk Unexecuted instantiation: ut.c:shm_malloc_bulk Unexecuted instantiation: statistics.c:shm_malloc_bulk Unexecuted instantiation: route.c:shm_malloc_bulk Unexecuted instantiation: ipc.c:shm_malloc_bulk Unexecuted instantiation: core_stats.c:shm_malloc_bulk Unexecuted instantiation: route_struct.c:shm_malloc_bulk Unexecuted instantiation: dset.c:shm_malloc_bulk Unexecuted instantiation: pt_load.c:shm_malloc_bulk Unexecuted instantiation: sr_module.c:shm_malloc_bulk Unexecuted instantiation: action.c:shm_malloc_bulk Unexecuted instantiation: db_insertq.c:shm_malloc_bulk Unexecuted instantiation: db.c:shm_malloc_bulk Unexecuted instantiation: proto_tcp.c:shm_malloc_bulk Unexecuted instantiation: proto_udp.c:shm_malloc_bulk Unexecuted instantiation: net_tcp_proc.c:shm_malloc_bulk Unexecuted instantiation: net_tcp.c:shm_malloc_bulk Unexecuted instantiation: tcp_common.c:shm_malloc_bulk Unexecuted instantiation: net_udp.c:shm_malloc_bulk Unexecuted instantiation: tcp_conn_profile.c:shm_malloc_bulk Unexecuted instantiation: trans_trace.c:shm_malloc_bulk Unexecuted instantiation: net_tcp_report.c:shm_malloc_bulk Unexecuted instantiation: shm_mem.c:shm_malloc_bulk Unexecuted instantiation: rpm_mem.c:shm_malloc_bulk Unexecuted instantiation: mem.c:shm_malloc_bulk Unexecuted instantiation: mi.c:shm_malloc_bulk Unexecuted instantiation: item.c:shm_malloc_bulk Unexecuted instantiation: msg_parser.c:shm_malloc_bulk Unexecuted instantiation: parse_uri.c:shm_malloc_bulk Unexecuted instantiation: parse_fline.c:shm_malloc_bulk Unexecuted instantiation: parse_hname2.c:shm_malloc_bulk Unexecuted instantiation: parse_content.c:shm_malloc_bulk Unexecuted instantiation: hf.c:shm_malloc_bulk Unexecuted instantiation: parse_to.c:shm_malloc_bulk Unexecuted instantiation: parse_via.c:shm_malloc_bulk Unexecuted instantiation: event_interface.c:shm_malloc_bulk Unexecuted instantiation: evi_params.c:shm_malloc_bulk Unexecuted instantiation: receive.c:shm_malloc_bulk Unexecuted instantiation: ip_addr.c:shm_malloc_bulk Unexecuted instantiation: async.c:shm_malloc_bulk Unexecuted instantiation: daemonize.c:shm_malloc_bulk Unexecuted instantiation: timer.c:shm_malloc_bulk Unexecuted instantiation: trace_api.c:shm_malloc_bulk Unexecuted instantiation: mod_fix.c:shm_malloc_bulk Unexecuted instantiation: reactor.c:shm_malloc_bulk Unexecuted instantiation: strcommon.c:shm_malloc_bulk Unexecuted instantiation: forward.c:shm_malloc_bulk Unexecuted instantiation: xlog.c:shm_malloc_bulk Unexecuted instantiation: blacklists.c:shm_malloc_bulk Unexecuted instantiation: usr_avp.c:shm_malloc_bulk Unexecuted instantiation: sdp_ops.c:shm_malloc_bulk Unexecuted instantiation: resolve.c:shm_malloc_bulk Unexecuted instantiation: io_wait.c:shm_malloc_bulk Unexecuted instantiation: transformations.c:shm_malloc_bulk Unexecuted instantiation: pvar.c:shm_malloc_bulk Unexecuted instantiation: sr_module_deps.c:shm_malloc_bulk Unexecuted instantiation: cfg_reload.c:shm_malloc_bulk Unexecuted instantiation: socket_info.c:shm_malloc_bulk Unexecuted instantiation: time_rec.c:shm_malloc_bulk Unexecuted instantiation: map.c:shm_malloc_bulk Unexecuted instantiation: status_report.c:shm_malloc_bulk Unexecuted instantiation: pt_scaling.c:shm_malloc_bulk Unexecuted instantiation: signals.c:shm_malloc_bulk Unexecuted instantiation: flags.c:shm_malloc_bulk Unexecuted instantiation: db_id.c:shm_malloc_bulk Unexecuted instantiation: trans.c:shm_malloc_bulk Unexecuted instantiation: cJSON.c:shm_malloc_bulk Unexecuted instantiation: sdp.c:shm_malloc_bulk Unexecuted instantiation: sdp_helpr_funcs.c:shm_malloc_bulk Unexecuted instantiation: digest_parser.c:shm_malloc_bulk Unexecuted instantiation: param_parser.c:shm_malloc_bulk Unexecuted instantiation: parse_contact.c:shm_malloc_bulk Unexecuted instantiation: parse_body.c:shm_malloc_bulk Unexecuted instantiation: parse_security.c:shm_malloc_bulk Unexecuted instantiation: parse_call_info.c:shm_malloc_bulk Unexecuted instantiation: parse_event.c:shm_malloc_bulk Unexecuted instantiation: parse_disposition.c:shm_malloc_bulk Unexecuted instantiation: parse_authenticate.c:shm_malloc_bulk Unexecuted instantiation: parser_f.c:shm_malloc_bulk Unexecuted instantiation: parse_rpid.c:shm_malloc_bulk Unexecuted instantiation: parse_ppi.c:shm_malloc_bulk Unexecuted instantiation: parse_fcaps.c:shm_malloc_bulk Unexecuted instantiation: parse_rr.c:shm_malloc_bulk Unexecuted instantiation: parse_param.c:shm_malloc_bulk Unexecuted instantiation: parse_diversion.c:shm_malloc_bulk Unexecuted instantiation: parse_nameaddr.c:shm_malloc_bulk Unexecuted instantiation: parse_expires.c:shm_malloc_bulk Unexecuted instantiation: parse_refer_to.c:shm_malloc_bulk Unexecuted instantiation: parse_from.c:shm_malloc_bulk Unexecuted instantiation: parse_pai.c:shm_malloc_bulk Unexecuted instantiation: evi_transport.c:shm_malloc_bulk Unexecuted instantiation: msg_translator.c:shm_malloc_bulk Unexecuted instantiation: md5utils.c:shm_malloc_bulk Unexecuted instantiation: cfg.tab.c:shm_malloc_bulk Unexecuted instantiation: modparam.c:shm_malloc_bulk Unexecuted instantiation: crc.c:shm_malloc_bulk Unexecuted instantiation: lex.yy.c:shm_malloc_bulk Unexecuted instantiation: cfg_pp.c:shm_malloc_bulk Unexecuted instantiation: proxy.c:shm_malloc_bulk Unexecuted instantiation: shutdown.c:shm_malloc_bulk Unexecuted instantiation: core_cmds.c:shm_malloc_bulk Unexecuted instantiation: cachedb.c:shm_malloc_bulk Unexecuted instantiation: cachedb_id.c:shm_malloc_bulk |
699 | | |
700 | | #define shm_realloc_func shm_realloc |
701 | | inline static void* shm_realloc(void *ptr, unsigned long size) |
702 | 0 | { |
703 | 0 | void *p; |
704 | |
|
705 | 0 | shm_lock(); |
706 | |
|
707 | | #ifdef SHM_EXTRA_STATS |
708 | | unsigned long origin = 0; |
709 | | if (ptr) { |
710 | | origin = shm_stats_get_index(ptr); |
711 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
712 | | } |
713 | | #endif |
714 | |
|
715 | 0 | p = SHM_REALLOC(shm_block, ptr, size); |
716 | 0 | shm_threshold_check(); |
717 | |
|
718 | 0 | shm_unlock(); |
719 | |
|
720 | | #ifdef SHM_EXTRA_STATS |
721 | | if (p) { |
722 | | update_module_stats(shm_frag_size(p), shm_frag_size(p) + shm_frag_overhead, |
723 | | 1 , VAR_STAT(MOD_NAME)); |
724 | | if (ptr && origin != VAR_STAT(MOD_NAME)) |
725 | | LM_GEN1(memlog, "memory reallocated from different module than it was allocated, allocated in" |
726 | | "module with index %ld, freed in module with index %ld, at %s: %s %d \n", origin, |
727 | | VAR_STAT(MOD_NAME), __FILE__, __FUNCTION__, __LINE__); |
728 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
729 | | } |
730 | | #endif |
731 | |
|
732 | 0 | return p; |
733 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_realloc Unexecuted instantiation: csv.c:shm_realloc Unexecuted instantiation: dprint.c:shm_realloc Unexecuted instantiation: pt.c:shm_realloc Unexecuted instantiation: ut.c:shm_realloc Unexecuted instantiation: statistics.c:shm_realloc Unexecuted instantiation: route.c:shm_realloc Unexecuted instantiation: ipc.c:shm_realloc Unexecuted instantiation: core_stats.c:shm_realloc Unexecuted instantiation: route_struct.c:shm_realloc Unexecuted instantiation: dset.c:shm_realloc Unexecuted instantiation: pt_load.c:shm_realloc Unexecuted instantiation: sr_module.c:shm_realloc Unexecuted instantiation: action.c:shm_realloc Unexecuted instantiation: db_insertq.c:shm_realloc Unexecuted instantiation: db.c:shm_realloc Unexecuted instantiation: proto_tcp.c:shm_realloc Unexecuted instantiation: proto_udp.c:shm_realloc Unexecuted instantiation: net_tcp_proc.c:shm_realloc Unexecuted instantiation: net_tcp.c:shm_realloc Unexecuted instantiation: tcp_common.c:shm_realloc Unexecuted instantiation: net_udp.c:shm_realloc Unexecuted instantiation: tcp_conn_profile.c:shm_realloc Unexecuted instantiation: trans_trace.c:shm_realloc Unexecuted instantiation: net_tcp_report.c:shm_realloc Unexecuted instantiation: shm_mem.c:shm_realloc Unexecuted instantiation: rpm_mem.c:shm_realloc Unexecuted instantiation: mem.c:shm_realloc Unexecuted instantiation: mi.c:shm_realloc Unexecuted instantiation: item.c:shm_realloc Unexecuted instantiation: msg_parser.c:shm_realloc Unexecuted instantiation: parse_uri.c:shm_realloc Unexecuted instantiation: parse_fline.c:shm_realloc Unexecuted instantiation: parse_hname2.c:shm_realloc Unexecuted instantiation: parse_content.c:shm_realloc Unexecuted instantiation: hf.c:shm_realloc Unexecuted instantiation: parse_to.c:shm_realloc Unexecuted instantiation: parse_via.c:shm_realloc Unexecuted instantiation: event_interface.c:shm_realloc Unexecuted instantiation: evi_params.c:shm_realloc Unexecuted instantiation: receive.c:shm_realloc Unexecuted instantiation: ip_addr.c:shm_realloc Unexecuted instantiation: async.c:shm_realloc Unexecuted instantiation: daemonize.c:shm_realloc Unexecuted instantiation: timer.c:shm_realloc Unexecuted instantiation: trace_api.c:shm_realloc Unexecuted instantiation: mod_fix.c:shm_realloc Unexecuted instantiation: reactor.c:shm_realloc Unexecuted instantiation: strcommon.c:shm_realloc Unexecuted instantiation: forward.c:shm_realloc Unexecuted instantiation: xlog.c:shm_realloc Unexecuted instantiation: blacklists.c:shm_realloc Unexecuted instantiation: usr_avp.c:shm_realloc Unexecuted instantiation: sdp_ops.c:shm_realloc Unexecuted instantiation: resolve.c:shm_realloc Unexecuted instantiation: io_wait.c:shm_realloc Unexecuted instantiation: transformations.c:shm_realloc Unexecuted instantiation: pvar.c:shm_realloc Unexecuted instantiation: sr_module_deps.c:shm_realloc Unexecuted instantiation: cfg_reload.c:shm_realloc Unexecuted instantiation: socket_info.c:shm_realloc Unexecuted instantiation: time_rec.c:shm_realloc Unexecuted instantiation: map.c:shm_realloc Unexecuted instantiation: status_report.c:shm_realloc Unexecuted instantiation: pt_scaling.c:shm_realloc Unexecuted instantiation: signals.c:shm_realloc Unexecuted instantiation: flags.c:shm_realloc Unexecuted instantiation: db_id.c:shm_realloc Unexecuted instantiation: trans.c:shm_realloc Unexecuted instantiation: cJSON.c:shm_realloc Unexecuted instantiation: sdp.c:shm_realloc Unexecuted instantiation: sdp_helpr_funcs.c:shm_realloc Unexecuted instantiation: digest_parser.c:shm_realloc Unexecuted instantiation: param_parser.c:shm_realloc Unexecuted instantiation: parse_contact.c:shm_realloc Unexecuted instantiation: parse_body.c:shm_realloc Unexecuted instantiation: parse_security.c:shm_realloc Unexecuted instantiation: parse_call_info.c:shm_realloc Unexecuted instantiation: parse_event.c:shm_realloc Unexecuted instantiation: parse_disposition.c:shm_realloc Unexecuted instantiation: parse_authenticate.c:shm_realloc Unexecuted instantiation: parser_f.c:shm_realloc Unexecuted instantiation: parse_rpid.c:shm_realloc Unexecuted instantiation: parse_ppi.c:shm_realloc Unexecuted instantiation: parse_fcaps.c:shm_realloc Unexecuted instantiation: parse_rr.c:shm_realloc Unexecuted instantiation: parse_param.c:shm_realloc Unexecuted instantiation: parse_diversion.c:shm_realloc Unexecuted instantiation: parse_nameaddr.c:shm_realloc Unexecuted instantiation: parse_expires.c:shm_realloc Unexecuted instantiation: parse_refer_to.c:shm_realloc Unexecuted instantiation: parse_from.c:shm_realloc Unexecuted instantiation: parse_pai.c:shm_realloc Unexecuted instantiation: evi_transport.c:shm_realloc Unexecuted instantiation: msg_translator.c:shm_realloc Unexecuted instantiation: md5utils.c:shm_realloc Unexecuted instantiation: cfg.tab.c:shm_realloc Unexecuted instantiation: modparam.c:shm_realloc Unexecuted instantiation: crc.c:shm_realloc Unexecuted instantiation: lex.yy.c:shm_realloc Unexecuted instantiation: cfg_pp.c:shm_realloc Unexecuted instantiation: proxy.c:shm_realloc Unexecuted instantiation: shutdown.c:shm_realloc Unexecuted instantiation: core_cmds.c:shm_realloc Unexecuted instantiation: cachedb.c:shm_realloc Unexecuted instantiation: cachedb_id.c:shm_realloc |
734 | | |
735 | | #define shm_realloc_func_unsafe shm_realloc_unsafe |
736 | | inline static void* shm_realloc_unsafe(void *ptr, unsigned long size) |
737 | 0 | { |
738 | 0 | void *p; |
739 | |
|
740 | | #ifdef SHM_EXTRA_STATS |
741 | | unsigned long origin = 0; |
742 | | if (ptr) { |
743 | | origin = shm_stats_get_index(ptr); |
744 | | update_module_stats(-shm_frag_size(ptr), -(shm_frag_size(ptr) + shm_frag_overhead), -1, shm_stats_get_index(ptr)); |
745 | | } |
746 | | #endif |
747 | |
|
748 | 0 | p = SHM_REALLOC_UNSAFE(shm_block, ptr, size); |
749 | 0 | shm_threshold_check(); |
750 | |
|
751 | | #ifdef SHM_EXTRA_STATS |
752 | | if (p) { |
753 | | update_module_stats(shm_frag_size(p), shm_frag_size(p) + shm_frag_overhead, |
754 | | 1, VAR_STAT(MOD_NAME)); |
755 | | if (ptr && origin != VAR_STAT(MOD_NAME)) |
756 | | LM_GEN1(memlog, "memory reallocated from different module than it was allocated, allocated in" |
757 | | "module with index %ld, freed in module with index %ld, at %s: %s %d \n", origin, |
758 | | VAR_STAT(MOD_NAME), __FILE__, __FUNCTION__, __LINE__); |
759 | | shm_stats_set_index(p, VAR_STAT(MOD_NAME)); |
760 | | } |
761 | | #endif |
762 | 0 | return p; |
763 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_realloc_unsafe Unexecuted instantiation: csv.c:shm_realloc_unsafe Unexecuted instantiation: dprint.c:shm_realloc_unsafe Unexecuted instantiation: pt.c:shm_realloc_unsafe Unexecuted instantiation: ut.c:shm_realloc_unsafe Unexecuted instantiation: statistics.c:shm_realloc_unsafe Unexecuted instantiation: route.c:shm_realloc_unsafe Unexecuted instantiation: ipc.c:shm_realloc_unsafe Unexecuted instantiation: core_stats.c:shm_realloc_unsafe Unexecuted instantiation: route_struct.c:shm_realloc_unsafe Unexecuted instantiation: dset.c:shm_realloc_unsafe Unexecuted instantiation: pt_load.c:shm_realloc_unsafe Unexecuted instantiation: sr_module.c:shm_realloc_unsafe Unexecuted instantiation: action.c:shm_realloc_unsafe Unexecuted instantiation: db_insertq.c:shm_realloc_unsafe Unexecuted instantiation: db.c:shm_realloc_unsafe Unexecuted instantiation: proto_tcp.c:shm_realloc_unsafe Unexecuted instantiation: proto_udp.c:shm_realloc_unsafe Unexecuted instantiation: net_tcp_proc.c:shm_realloc_unsafe Unexecuted instantiation: net_tcp.c:shm_realloc_unsafe Unexecuted instantiation: tcp_common.c:shm_realloc_unsafe Unexecuted instantiation: net_udp.c:shm_realloc_unsafe Unexecuted instantiation: tcp_conn_profile.c:shm_realloc_unsafe Unexecuted instantiation: trans_trace.c:shm_realloc_unsafe Unexecuted instantiation: net_tcp_report.c:shm_realloc_unsafe Unexecuted instantiation: shm_mem.c:shm_realloc_unsafe Unexecuted instantiation: rpm_mem.c:shm_realloc_unsafe Unexecuted instantiation: mem.c:shm_realloc_unsafe Unexecuted instantiation: mi.c:shm_realloc_unsafe Unexecuted instantiation: item.c:shm_realloc_unsafe Unexecuted instantiation: msg_parser.c:shm_realloc_unsafe Unexecuted instantiation: parse_uri.c:shm_realloc_unsafe Unexecuted instantiation: parse_fline.c:shm_realloc_unsafe Unexecuted instantiation: parse_hname2.c:shm_realloc_unsafe Unexecuted instantiation: parse_content.c:shm_realloc_unsafe Unexecuted instantiation: hf.c:shm_realloc_unsafe Unexecuted instantiation: parse_to.c:shm_realloc_unsafe Unexecuted instantiation: parse_via.c:shm_realloc_unsafe Unexecuted instantiation: event_interface.c:shm_realloc_unsafe Unexecuted instantiation: evi_params.c:shm_realloc_unsafe Unexecuted instantiation: receive.c:shm_realloc_unsafe Unexecuted instantiation: ip_addr.c:shm_realloc_unsafe Unexecuted instantiation: async.c:shm_realloc_unsafe Unexecuted instantiation: daemonize.c:shm_realloc_unsafe Unexecuted instantiation: timer.c:shm_realloc_unsafe Unexecuted instantiation: trace_api.c:shm_realloc_unsafe Unexecuted instantiation: mod_fix.c:shm_realloc_unsafe Unexecuted instantiation: reactor.c:shm_realloc_unsafe Unexecuted instantiation: strcommon.c:shm_realloc_unsafe Unexecuted instantiation: forward.c:shm_realloc_unsafe Unexecuted instantiation: xlog.c:shm_realloc_unsafe Unexecuted instantiation: blacklists.c:shm_realloc_unsafe Unexecuted instantiation: usr_avp.c:shm_realloc_unsafe Unexecuted instantiation: sdp_ops.c:shm_realloc_unsafe Unexecuted instantiation: resolve.c:shm_realloc_unsafe Unexecuted instantiation: io_wait.c:shm_realloc_unsafe Unexecuted instantiation: transformations.c:shm_realloc_unsafe Unexecuted instantiation: pvar.c:shm_realloc_unsafe Unexecuted instantiation: sr_module_deps.c:shm_realloc_unsafe Unexecuted instantiation: cfg_reload.c:shm_realloc_unsafe Unexecuted instantiation: socket_info.c:shm_realloc_unsafe Unexecuted instantiation: time_rec.c:shm_realloc_unsafe Unexecuted instantiation: map.c:shm_realloc_unsafe Unexecuted instantiation: status_report.c:shm_realloc_unsafe Unexecuted instantiation: pt_scaling.c:shm_realloc_unsafe Unexecuted instantiation: signals.c:shm_realloc_unsafe Unexecuted instantiation: flags.c:shm_realloc_unsafe Unexecuted instantiation: db_id.c:shm_realloc_unsafe Unexecuted instantiation: trans.c:shm_realloc_unsafe Unexecuted instantiation: cJSON.c:shm_realloc_unsafe Unexecuted instantiation: sdp.c:shm_realloc_unsafe Unexecuted instantiation: sdp_helpr_funcs.c:shm_realloc_unsafe Unexecuted instantiation: digest_parser.c:shm_realloc_unsafe Unexecuted instantiation: param_parser.c:shm_realloc_unsafe Unexecuted instantiation: parse_contact.c:shm_realloc_unsafe Unexecuted instantiation: parse_body.c:shm_realloc_unsafe Unexecuted instantiation: parse_security.c:shm_realloc_unsafe Unexecuted instantiation: parse_call_info.c:shm_realloc_unsafe Unexecuted instantiation: parse_event.c:shm_realloc_unsafe Unexecuted instantiation: parse_disposition.c:shm_realloc_unsafe Unexecuted instantiation: parse_authenticate.c:shm_realloc_unsafe Unexecuted instantiation: parser_f.c:shm_realloc_unsafe Unexecuted instantiation: parse_rpid.c:shm_realloc_unsafe Unexecuted instantiation: parse_ppi.c:shm_realloc_unsafe Unexecuted instantiation: parse_fcaps.c:shm_realloc_unsafe Unexecuted instantiation: parse_rr.c:shm_realloc_unsafe Unexecuted instantiation: parse_param.c:shm_realloc_unsafe Unexecuted instantiation: parse_diversion.c:shm_realloc_unsafe Unexecuted instantiation: parse_nameaddr.c:shm_realloc_unsafe Unexecuted instantiation: parse_expires.c:shm_realloc_unsafe Unexecuted instantiation: parse_refer_to.c:shm_realloc_unsafe Unexecuted instantiation: parse_from.c:shm_realloc_unsafe Unexecuted instantiation: parse_pai.c:shm_realloc_unsafe Unexecuted instantiation: evi_transport.c:shm_realloc_unsafe Unexecuted instantiation: msg_translator.c:shm_realloc_unsafe Unexecuted instantiation: md5utils.c:shm_realloc_unsafe Unexecuted instantiation: cfg.tab.c:shm_realloc_unsafe Unexecuted instantiation: modparam.c:shm_realloc_unsafe Unexecuted instantiation: crc.c:shm_realloc_unsafe Unexecuted instantiation: lex.yy.c:shm_realloc_unsafe Unexecuted instantiation: cfg_pp.c:shm_realloc_unsafe Unexecuted instantiation: proxy.c:shm_realloc_unsafe Unexecuted instantiation: shutdown.c:shm_realloc_unsafe Unexecuted instantiation: core_cmds.c:shm_realloc_unsafe Unexecuted instantiation: cachedb.c:shm_realloc_unsafe Unexecuted instantiation: cachedb_id.c:shm_realloc_unsafe |
764 | | |
765 | 0 | #define shm_free_func shm_free |
766 | | inline static void shm_free(void *_p) |
767 | 0 | { |
768 | 0 | shm_lock(); |
769 | |
|
770 | | #ifdef SHM_EXTRA_STATS |
771 | | if (shm_stats_get_index(_p) != VAR_STAT(MOD_NAME)) { |
772 | | update_module_stats(-shm_frag_size(_p), -(shm_frag_size(_p) + shm_frag_overhead), -1, shm_stats_get_index(_p)); |
773 | | LM_GEN1(memlog, "memory freed from different module than it was allocated, allocated in" |
774 | | "module with index %ld, freed in module index %ld, at %s: %s %d \n", shm_stats_get_index(_p), VAR_STAT(MOD_NAME), |
775 | | __FILE__, __FUNCTION__, __LINE__); |
776 | | } else { |
777 | | update_module_stats(-shm_frag_size(_p), -(shm_frag_size(_p) + shm_frag_overhead), -1, VAR_STAT(MOD_NAME)); |
778 | | } |
779 | | #endif |
780 | |
|
781 | 0 | SHM_FREE(shm_block, _p); |
782 | 0 | shm_threshold_check(); |
783 | |
|
784 | 0 | shm_unlock(); |
785 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_free Unexecuted instantiation: csv.c:shm_free Unexecuted instantiation: dprint.c:shm_free Unexecuted instantiation: pt.c:shm_free Unexecuted instantiation: ut.c:shm_free Unexecuted instantiation: statistics.c:shm_free Unexecuted instantiation: route.c:shm_free Unexecuted instantiation: ipc.c:shm_free Unexecuted instantiation: core_stats.c:shm_free Unexecuted instantiation: route_struct.c:shm_free Unexecuted instantiation: dset.c:shm_free Unexecuted instantiation: pt_load.c:shm_free Unexecuted instantiation: sr_module.c:shm_free Unexecuted instantiation: action.c:shm_free Unexecuted instantiation: db_insertq.c:shm_free Unexecuted instantiation: db.c:shm_free Unexecuted instantiation: proto_tcp.c:shm_free Unexecuted instantiation: proto_udp.c:shm_free Unexecuted instantiation: net_tcp_proc.c:shm_free Unexecuted instantiation: net_tcp.c:shm_free Unexecuted instantiation: tcp_common.c:shm_free Unexecuted instantiation: net_udp.c:shm_free Unexecuted instantiation: tcp_conn_profile.c:shm_free Unexecuted instantiation: trans_trace.c:shm_free Unexecuted instantiation: net_tcp_report.c:shm_free Unexecuted instantiation: shm_mem.c:shm_free Unexecuted instantiation: rpm_mem.c:shm_free Unexecuted instantiation: mem.c:shm_free Unexecuted instantiation: mi.c:shm_free Unexecuted instantiation: item.c:shm_free Unexecuted instantiation: msg_parser.c:shm_free Unexecuted instantiation: parse_uri.c:shm_free Unexecuted instantiation: parse_fline.c:shm_free Unexecuted instantiation: parse_hname2.c:shm_free Unexecuted instantiation: parse_content.c:shm_free Unexecuted instantiation: hf.c:shm_free Unexecuted instantiation: parse_to.c:shm_free Unexecuted instantiation: parse_via.c:shm_free Unexecuted instantiation: event_interface.c:shm_free Unexecuted instantiation: evi_params.c:shm_free Unexecuted instantiation: receive.c:shm_free Unexecuted instantiation: ip_addr.c:shm_free Unexecuted instantiation: async.c:shm_free Unexecuted instantiation: daemonize.c:shm_free Unexecuted instantiation: timer.c:shm_free Unexecuted instantiation: trace_api.c:shm_free Unexecuted instantiation: mod_fix.c:shm_free Unexecuted instantiation: reactor.c:shm_free Unexecuted instantiation: strcommon.c:shm_free Unexecuted instantiation: forward.c:shm_free Unexecuted instantiation: xlog.c:shm_free Unexecuted instantiation: blacklists.c:shm_free Unexecuted instantiation: usr_avp.c:shm_free Unexecuted instantiation: sdp_ops.c:shm_free Unexecuted instantiation: resolve.c:shm_free Unexecuted instantiation: io_wait.c:shm_free Unexecuted instantiation: transformations.c:shm_free Unexecuted instantiation: pvar.c:shm_free Unexecuted instantiation: sr_module_deps.c:shm_free Unexecuted instantiation: cfg_reload.c:shm_free Unexecuted instantiation: socket_info.c:shm_free Unexecuted instantiation: time_rec.c:shm_free Unexecuted instantiation: map.c:shm_free Unexecuted instantiation: status_report.c:shm_free Unexecuted instantiation: pt_scaling.c:shm_free Unexecuted instantiation: signals.c:shm_free Unexecuted instantiation: flags.c:shm_free Unexecuted instantiation: db_id.c:shm_free Unexecuted instantiation: trans.c:shm_free Unexecuted instantiation: cJSON.c:shm_free Unexecuted instantiation: sdp.c:shm_free Unexecuted instantiation: sdp_helpr_funcs.c:shm_free Unexecuted instantiation: digest_parser.c:shm_free Unexecuted instantiation: param_parser.c:shm_free Unexecuted instantiation: parse_contact.c:shm_free Unexecuted instantiation: parse_body.c:shm_free Unexecuted instantiation: parse_security.c:shm_free Unexecuted instantiation: parse_call_info.c:shm_free Unexecuted instantiation: parse_event.c:shm_free Unexecuted instantiation: parse_disposition.c:shm_free Unexecuted instantiation: parse_authenticate.c:shm_free Unexecuted instantiation: parser_f.c:shm_free Unexecuted instantiation: parse_rpid.c:shm_free Unexecuted instantiation: parse_ppi.c:shm_free Unexecuted instantiation: parse_fcaps.c:shm_free Unexecuted instantiation: parse_rr.c:shm_free Unexecuted instantiation: parse_param.c:shm_free Unexecuted instantiation: parse_diversion.c:shm_free Unexecuted instantiation: parse_nameaddr.c:shm_free Unexecuted instantiation: parse_expires.c:shm_free Unexecuted instantiation: parse_refer_to.c:shm_free Unexecuted instantiation: parse_from.c:shm_free Unexecuted instantiation: parse_pai.c:shm_free Unexecuted instantiation: evi_transport.c:shm_free Unexecuted instantiation: msg_translator.c:shm_free Unexecuted instantiation: md5utils.c:shm_free Unexecuted instantiation: cfg.tab.c:shm_free Unexecuted instantiation: modparam.c:shm_free Unexecuted instantiation: crc.c:shm_free Unexecuted instantiation: lex.yy.c:shm_free Unexecuted instantiation: cfg_pp.c:shm_free Unexecuted instantiation: proxy.c:shm_free Unexecuted instantiation: shutdown.c:shm_free Unexecuted instantiation: core_cmds.c:shm_free Unexecuted instantiation: cachedb.c:shm_free Unexecuted instantiation: cachedb_id.c:shm_free |
786 | | |
787 | | #define shm_free_unsafe_func shm_free_unsafe |
788 | | inline static void shm_free_unsafe(void *_p) |
789 | 0 | { |
790 | | #ifdef SHM_EXTRA_STATS |
791 | | if (shm_stats_get_index(_p) != VAR_STAT(MOD_NAME)) { |
792 | | update_module_stats(-shm_frag_size(_p), -(shm_frag_size(_p) + shm_frag_overhead), -1, shm_stats_get_index(_p)); |
793 | | LM_GEN1(memlog, "memory freed from different module than it was allocated, allocated in" |
794 | | "module with index %ld, freed in module index %ld, at %s: %s %d \n", shm_stats_get_index(_p), VAR_STAT(MOD_NAME), |
795 | | __FILE__, __FUNCTION__, __LINE__); |
796 | | } else { |
797 | | update_module_stats(-shm_frag_size(_p), -(shm_frag_size(_p) + shm_frag_overhead), -1, VAR_STAT(MOD_NAME)); |
798 | | } |
799 | | #endif |
800 | 0 | SHM_FREE_UNSAFE(shm_block, (_p)); \ |
801 | 0 | shm_threshold_check(); \ |
802 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_free_unsafe Unexecuted instantiation: csv.c:shm_free_unsafe Unexecuted instantiation: dprint.c:shm_free_unsafe Unexecuted instantiation: pt.c:shm_free_unsafe Unexecuted instantiation: ut.c:shm_free_unsafe Unexecuted instantiation: statistics.c:shm_free_unsafe Unexecuted instantiation: route.c:shm_free_unsafe Unexecuted instantiation: ipc.c:shm_free_unsafe Unexecuted instantiation: core_stats.c:shm_free_unsafe Unexecuted instantiation: route_struct.c:shm_free_unsafe Unexecuted instantiation: dset.c:shm_free_unsafe Unexecuted instantiation: pt_load.c:shm_free_unsafe Unexecuted instantiation: sr_module.c:shm_free_unsafe Unexecuted instantiation: action.c:shm_free_unsafe Unexecuted instantiation: db_insertq.c:shm_free_unsafe Unexecuted instantiation: db.c:shm_free_unsafe Unexecuted instantiation: proto_tcp.c:shm_free_unsafe Unexecuted instantiation: proto_udp.c:shm_free_unsafe Unexecuted instantiation: net_tcp_proc.c:shm_free_unsafe Unexecuted instantiation: net_tcp.c:shm_free_unsafe Unexecuted instantiation: tcp_common.c:shm_free_unsafe Unexecuted instantiation: net_udp.c:shm_free_unsafe Unexecuted instantiation: tcp_conn_profile.c:shm_free_unsafe Unexecuted instantiation: trans_trace.c:shm_free_unsafe Unexecuted instantiation: net_tcp_report.c:shm_free_unsafe Unexecuted instantiation: shm_mem.c:shm_free_unsafe Unexecuted instantiation: rpm_mem.c:shm_free_unsafe Unexecuted instantiation: mem.c:shm_free_unsafe Unexecuted instantiation: mi.c:shm_free_unsafe Unexecuted instantiation: item.c:shm_free_unsafe Unexecuted instantiation: msg_parser.c:shm_free_unsafe Unexecuted instantiation: parse_uri.c:shm_free_unsafe Unexecuted instantiation: parse_fline.c:shm_free_unsafe Unexecuted instantiation: parse_hname2.c:shm_free_unsafe Unexecuted instantiation: parse_content.c:shm_free_unsafe Unexecuted instantiation: hf.c:shm_free_unsafe Unexecuted instantiation: parse_to.c:shm_free_unsafe Unexecuted instantiation: parse_via.c:shm_free_unsafe Unexecuted instantiation: event_interface.c:shm_free_unsafe Unexecuted instantiation: evi_params.c:shm_free_unsafe Unexecuted instantiation: receive.c:shm_free_unsafe Unexecuted instantiation: ip_addr.c:shm_free_unsafe Unexecuted instantiation: async.c:shm_free_unsafe Unexecuted instantiation: daemonize.c:shm_free_unsafe Unexecuted instantiation: timer.c:shm_free_unsafe Unexecuted instantiation: trace_api.c:shm_free_unsafe Unexecuted instantiation: mod_fix.c:shm_free_unsafe Unexecuted instantiation: reactor.c:shm_free_unsafe Unexecuted instantiation: strcommon.c:shm_free_unsafe Unexecuted instantiation: forward.c:shm_free_unsafe Unexecuted instantiation: xlog.c:shm_free_unsafe Unexecuted instantiation: blacklists.c:shm_free_unsafe Unexecuted instantiation: usr_avp.c:shm_free_unsafe Unexecuted instantiation: sdp_ops.c:shm_free_unsafe Unexecuted instantiation: resolve.c:shm_free_unsafe Unexecuted instantiation: io_wait.c:shm_free_unsafe Unexecuted instantiation: transformations.c:shm_free_unsafe Unexecuted instantiation: pvar.c:shm_free_unsafe Unexecuted instantiation: sr_module_deps.c:shm_free_unsafe Unexecuted instantiation: cfg_reload.c:shm_free_unsafe Unexecuted instantiation: socket_info.c:shm_free_unsafe Unexecuted instantiation: time_rec.c:shm_free_unsafe Unexecuted instantiation: map.c:shm_free_unsafe Unexecuted instantiation: status_report.c:shm_free_unsafe Unexecuted instantiation: pt_scaling.c:shm_free_unsafe Unexecuted instantiation: signals.c:shm_free_unsafe Unexecuted instantiation: flags.c:shm_free_unsafe Unexecuted instantiation: db_id.c:shm_free_unsafe Unexecuted instantiation: trans.c:shm_free_unsafe Unexecuted instantiation: cJSON.c:shm_free_unsafe Unexecuted instantiation: sdp.c:shm_free_unsafe Unexecuted instantiation: sdp_helpr_funcs.c:shm_free_unsafe Unexecuted instantiation: digest_parser.c:shm_free_unsafe Unexecuted instantiation: param_parser.c:shm_free_unsafe Unexecuted instantiation: parse_contact.c:shm_free_unsafe Unexecuted instantiation: parse_body.c:shm_free_unsafe Unexecuted instantiation: parse_security.c:shm_free_unsafe Unexecuted instantiation: parse_call_info.c:shm_free_unsafe Unexecuted instantiation: parse_event.c:shm_free_unsafe Unexecuted instantiation: parse_disposition.c:shm_free_unsafe Unexecuted instantiation: parse_authenticate.c:shm_free_unsafe Unexecuted instantiation: parser_f.c:shm_free_unsafe Unexecuted instantiation: parse_rpid.c:shm_free_unsafe Unexecuted instantiation: parse_ppi.c:shm_free_unsafe Unexecuted instantiation: parse_fcaps.c:shm_free_unsafe Unexecuted instantiation: parse_rr.c:shm_free_unsafe Unexecuted instantiation: parse_param.c:shm_free_unsafe Unexecuted instantiation: parse_diversion.c:shm_free_unsafe Unexecuted instantiation: parse_nameaddr.c:shm_free_unsafe Unexecuted instantiation: parse_expires.c:shm_free_unsafe Unexecuted instantiation: parse_refer_to.c:shm_free_unsafe Unexecuted instantiation: parse_from.c:shm_free_unsafe Unexecuted instantiation: parse_pai.c:shm_free_unsafe Unexecuted instantiation: evi_transport.c:shm_free_unsafe Unexecuted instantiation: msg_translator.c:shm_free_unsafe Unexecuted instantiation: md5utils.c:shm_free_unsafe Unexecuted instantiation: cfg.tab.c:shm_free_unsafe Unexecuted instantiation: modparam.c:shm_free_unsafe Unexecuted instantiation: crc.c:shm_free_unsafe Unexecuted instantiation: lex.yy.c:shm_free_unsafe Unexecuted instantiation: cfg_pp.c:shm_free_unsafe Unexecuted instantiation: proxy.c:shm_free_unsafe Unexecuted instantiation: shutdown.c:shm_free_unsafe Unexecuted instantiation: core_cmds.c:shm_free_unsafe Unexecuted instantiation: cachedb.c:shm_free_unsafe Unexecuted instantiation: cachedb_id.c:shm_free_unsafe |
803 | | |
804 | | #define shm_free_bulk_func shm_free_bulk |
805 | | inline static void shm_free_bulk(void *_p) |
806 | 0 | { |
807 | |
|
808 | | #ifdef SHM_EXTRA_STATS |
809 | | if (shm_stats_get_index(_p) != VAR_STAT(MOD_NAME)) { |
810 | | update_module_stats(-shm_frag_size(_p), -(shm_frag_size(_p) + shm_frag_overhead), -1, shm_stats_get_index(_p)); |
811 | | LM_GEN1(memlog, "memory freed from different module than it was allocated, allocated in" |
812 | | "module with index %ld, freed in module index %ld, at %s: %s %d \n", shm_stats_get_index(_p), VAR_STAT(MOD_NAME), |
813 | | __FILE__, __FUNCTION__, __LINE__); |
814 | | } else { |
815 | | update_module_stats(-shm_frag_size(_p), -(shm_frag_size(_p) + shm_frag_overhead), -1, VAR_STAT(MOD_NAME)); |
816 | | } |
817 | | #endif |
818 | |
|
819 | 0 | SHM_FREE(shm_block, _p); |
820 | 0 | shm_threshold_check(); |
821 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_free_bulk Unexecuted instantiation: csv.c:shm_free_bulk Unexecuted instantiation: dprint.c:shm_free_bulk Unexecuted instantiation: pt.c:shm_free_bulk Unexecuted instantiation: ut.c:shm_free_bulk Unexecuted instantiation: statistics.c:shm_free_bulk Unexecuted instantiation: route.c:shm_free_bulk Unexecuted instantiation: ipc.c:shm_free_bulk Unexecuted instantiation: core_stats.c:shm_free_bulk Unexecuted instantiation: route_struct.c:shm_free_bulk Unexecuted instantiation: dset.c:shm_free_bulk Unexecuted instantiation: pt_load.c:shm_free_bulk Unexecuted instantiation: sr_module.c:shm_free_bulk Unexecuted instantiation: action.c:shm_free_bulk Unexecuted instantiation: db_insertq.c:shm_free_bulk Unexecuted instantiation: db.c:shm_free_bulk Unexecuted instantiation: proto_tcp.c:shm_free_bulk Unexecuted instantiation: proto_udp.c:shm_free_bulk Unexecuted instantiation: net_tcp_proc.c:shm_free_bulk Unexecuted instantiation: net_tcp.c:shm_free_bulk Unexecuted instantiation: tcp_common.c:shm_free_bulk Unexecuted instantiation: net_udp.c:shm_free_bulk Unexecuted instantiation: tcp_conn_profile.c:shm_free_bulk Unexecuted instantiation: trans_trace.c:shm_free_bulk Unexecuted instantiation: net_tcp_report.c:shm_free_bulk Unexecuted instantiation: shm_mem.c:shm_free_bulk Unexecuted instantiation: rpm_mem.c:shm_free_bulk Unexecuted instantiation: mem.c:shm_free_bulk Unexecuted instantiation: mi.c:shm_free_bulk Unexecuted instantiation: item.c:shm_free_bulk Unexecuted instantiation: msg_parser.c:shm_free_bulk Unexecuted instantiation: parse_uri.c:shm_free_bulk Unexecuted instantiation: parse_fline.c:shm_free_bulk Unexecuted instantiation: parse_hname2.c:shm_free_bulk Unexecuted instantiation: parse_content.c:shm_free_bulk Unexecuted instantiation: hf.c:shm_free_bulk Unexecuted instantiation: parse_to.c:shm_free_bulk Unexecuted instantiation: parse_via.c:shm_free_bulk Unexecuted instantiation: event_interface.c:shm_free_bulk Unexecuted instantiation: evi_params.c:shm_free_bulk Unexecuted instantiation: receive.c:shm_free_bulk Unexecuted instantiation: ip_addr.c:shm_free_bulk Unexecuted instantiation: async.c:shm_free_bulk Unexecuted instantiation: daemonize.c:shm_free_bulk Unexecuted instantiation: timer.c:shm_free_bulk Unexecuted instantiation: trace_api.c:shm_free_bulk Unexecuted instantiation: mod_fix.c:shm_free_bulk Unexecuted instantiation: reactor.c:shm_free_bulk Unexecuted instantiation: strcommon.c:shm_free_bulk Unexecuted instantiation: forward.c:shm_free_bulk Unexecuted instantiation: xlog.c:shm_free_bulk Unexecuted instantiation: blacklists.c:shm_free_bulk Unexecuted instantiation: usr_avp.c:shm_free_bulk Unexecuted instantiation: sdp_ops.c:shm_free_bulk Unexecuted instantiation: resolve.c:shm_free_bulk Unexecuted instantiation: io_wait.c:shm_free_bulk Unexecuted instantiation: transformations.c:shm_free_bulk Unexecuted instantiation: pvar.c:shm_free_bulk Unexecuted instantiation: sr_module_deps.c:shm_free_bulk Unexecuted instantiation: cfg_reload.c:shm_free_bulk Unexecuted instantiation: socket_info.c:shm_free_bulk Unexecuted instantiation: time_rec.c:shm_free_bulk Unexecuted instantiation: map.c:shm_free_bulk Unexecuted instantiation: status_report.c:shm_free_bulk Unexecuted instantiation: pt_scaling.c:shm_free_bulk Unexecuted instantiation: signals.c:shm_free_bulk Unexecuted instantiation: flags.c:shm_free_bulk Unexecuted instantiation: db_id.c:shm_free_bulk Unexecuted instantiation: trans.c:shm_free_bulk Unexecuted instantiation: cJSON.c:shm_free_bulk Unexecuted instantiation: sdp.c:shm_free_bulk Unexecuted instantiation: sdp_helpr_funcs.c:shm_free_bulk Unexecuted instantiation: digest_parser.c:shm_free_bulk Unexecuted instantiation: param_parser.c:shm_free_bulk Unexecuted instantiation: parse_contact.c:shm_free_bulk Unexecuted instantiation: parse_body.c:shm_free_bulk Unexecuted instantiation: parse_security.c:shm_free_bulk Unexecuted instantiation: parse_call_info.c:shm_free_bulk Unexecuted instantiation: parse_event.c:shm_free_bulk Unexecuted instantiation: parse_disposition.c:shm_free_bulk Unexecuted instantiation: parse_authenticate.c:shm_free_bulk Unexecuted instantiation: parser_f.c:shm_free_bulk Unexecuted instantiation: parse_rpid.c:shm_free_bulk Unexecuted instantiation: parse_ppi.c:shm_free_bulk Unexecuted instantiation: parse_fcaps.c:shm_free_bulk Unexecuted instantiation: parse_rr.c:shm_free_bulk Unexecuted instantiation: parse_param.c:shm_free_bulk Unexecuted instantiation: parse_diversion.c:shm_free_bulk Unexecuted instantiation: parse_nameaddr.c:shm_free_bulk Unexecuted instantiation: parse_expires.c:shm_free_bulk Unexecuted instantiation: parse_refer_to.c:shm_free_bulk Unexecuted instantiation: parse_from.c:shm_free_bulk Unexecuted instantiation: parse_pai.c:shm_free_bulk Unexecuted instantiation: evi_transport.c:shm_free_bulk Unexecuted instantiation: msg_translator.c:shm_free_bulk Unexecuted instantiation: md5utils.c:shm_free_bulk Unexecuted instantiation: cfg.tab.c:shm_free_bulk Unexecuted instantiation: modparam.c:shm_free_bulk Unexecuted instantiation: crc.c:shm_free_bulk Unexecuted instantiation: lex.yy.c:shm_free_bulk Unexecuted instantiation: cfg_pp.c:shm_free_bulk Unexecuted instantiation: proxy.c:shm_free_bulk Unexecuted instantiation: shutdown.c:shm_free_bulk Unexecuted instantiation: core_cmds.c:shm_free_bulk Unexecuted instantiation: cachedb.c:shm_free_bulk Unexecuted instantiation: cachedb_id.c:shm_free_bulk |
822 | | |
823 | | #endif |
824 | | |
825 | | inline static void shm_status(void) |
826 | 0 | { |
827 | 0 | shm_lock(); |
828 | 0 | SHM_STATUS(shm_block); |
829 | 0 | shm_unlock(); |
830 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_status Unexecuted instantiation: csv.c:shm_status Unexecuted instantiation: dprint.c:shm_status Unexecuted instantiation: pt.c:shm_status Unexecuted instantiation: ut.c:shm_status Unexecuted instantiation: statistics.c:shm_status Unexecuted instantiation: route.c:shm_status Unexecuted instantiation: ipc.c:shm_status Unexecuted instantiation: core_stats.c:shm_status Unexecuted instantiation: route_struct.c:shm_status Unexecuted instantiation: dset.c:shm_status Unexecuted instantiation: pt_load.c:shm_status Unexecuted instantiation: sr_module.c:shm_status Unexecuted instantiation: action.c:shm_status Unexecuted instantiation: db_insertq.c:shm_status Unexecuted instantiation: db.c:shm_status Unexecuted instantiation: proto_tcp.c:shm_status Unexecuted instantiation: proto_udp.c:shm_status Unexecuted instantiation: net_tcp_proc.c:shm_status Unexecuted instantiation: net_tcp.c:shm_status Unexecuted instantiation: tcp_common.c:shm_status Unexecuted instantiation: net_udp.c:shm_status Unexecuted instantiation: tcp_conn_profile.c:shm_status Unexecuted instantiation: trans_trace.c:shm_status Unexecuted instantiation: net_tcp_report.c:shm_status Unexecuted instantiation: shm_mem.c:shm_status Unexecuted instantiation: rpm_mem.c:shm_status Unexecuted instantiation: mem.c:shm_status Unexecuted instantiation: mi.c:shm_status Unexecuted instantiation: item.c:shm_status Unexecuted instantiation: msg_parser.c:shm_status Unexecuted instantiation: parse_uri.c:shm_status Unexecuted instantiation: parse_fline.c:shm_status Unexecuted instantiation: parse_hname2.c:shm_status Unexecuted instantiation: parse_content.c:shm_status Unexecuted instantiation: hf.c:shm_status Unexecuted instantiation: parse_to.c:shm_status Unexecuted instantiation: parse_via.c:shm_status Unexecuted instantiation: event_interface.c:shm_status Unexecuted instantiation: evi_params.c:shm_status Unexecuted instantiation: receive.c:shm_status Unexecuted instantiation: ip_addr.c:shm_status Unexecuted instantiation: async.c:shm_status Unexecuted instantiation: daemonize.c:shm_status Unexecuted instantiation: timer.c:shm_status Unexecuted instantiation: trace_api.c:shm_status Unexecuted instantiation: mod_fix.c:shm_status Unexecuted instantiation: reactor.c:shm_status Unexecuted instantiation: strcommon.c:shm_status Unexecuted instantiation: forward.c:shm_status Unexecuted instantiation: xlog.c:shm_status Unexecuted instantiation: blacklists.c:shm_status Unexecuted instantiation: usr_avp.c:shm_status Unexecuted instantiation: sdp_ops.c:shm_status Unexecuted instantiation: resolve.c:shm_status Unexecuted instantiation: io_wait.c:shm_status Unexecuted instantiation: transformations.c:shm_status Unexecuted instantiation: pvar.c:shm_status Unexecuted instantiation: sr_module_deps.c:shm_status Unexecuted instantiation: cfg_reload.c:shm_status Unexecuted instantiation: socket_info.c:shm_status Unexecuted instantiation: time_rec.c:shm_status Unexecuted instantiation: map.c:shm_status Unexecuted instantiation: status_report.c:shm_status Unexecuted instantiation: pt_scaling.c:shm_status Unexecuted instantiation: signals.c:shm_status Unexecuted instantiation: flags.c:shm_status Unexecuted instantiation: db_id.c:shm_status Unexecuted instantiation: trans.c:shm_status Unexecuted instantiation: cJSON.c:shm_status Unexecuted instantiation: sdp.c:shm_status Unexecuted instantiation: sdp_helpr_funcs.c:shm_status Unexecuted instantiation: digest_parser.c:shm_status Unexecuted instantiation: param_parser.c:shm_status Unexecuted instantiation: parse_contact.c:shm_status Unexecuted instantiation: parse_body.c:shm_status Unexecuted instantiation: parse_security.c:shm_status Unexecuted instantiation: parse_call_info.c:shm_status Unexecuted instantiation: parse_event.c:shm_status Unexecuted instantiation: parse_disposition.c:shm_status Unexecuted instantiation: parse_authenticate.c:shm_status Unexecuted instantiation: parser_f.c:shm_status Unexecuted instantiation: parse_rpid.c:shm_status Unexecuted instantiation: parse_ppi.c:shm_status Unexecuted instantiation: parse_fcaps.c:shm_status Unexecuted instantiation: parse_rr.c:shm_status Unexecuted instantiation: parse_param.c:shm_status Unexecuted instantiation: parse_diversion.c:shm_status Unexecuted instantiation: parse_nameaddr.c:shm_status Unexecuted instantiation: parse_expires.c:shm_status Unexecuted instantiation: parse_refer_to.c:shm_status Unexecuted instantiation: parse_from.c:shm_status Unexecuted instantiation: parse_pai.c:shm_status Unexecuted instantiation: evi_transport.c:shm_status Unexecuted instantiation: msg_translator.c:shm_status Unexecuted instantiation: md5utils.c:shm_status Unexecuted instantiation: cfg.tab.c:shm_status Unexecuted instantiation: modparam.c:shm_status Unexecuted instantiation: crc.c:shm_status Unexecuted instantiation: lex.yy.c:shm_status Unexecuted instantiation: cfg_pp.c:shm_status Unexecuted instantiation: proxy.c:shm_status Unexecuted instantiation: shutdown.c:shm_status Unexecuted instantiation: core_cmds.c:shm_status Unexecuted instantiation: cachedb.c:shm_status Unexecuted instantiation: cachedb_id.c:shm_status |
831 | | |
832 | | |
833 | | inline static void shm_info(struct mem_info* mi) |
834 | 0 | { |
835 | 0 | shm_lock(); |
836 | 0 | SHM_INFO(shm_block, mi); |
837 | 0 | shm_unlock(); |
838 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_info Unexecuted instantiation: csv.c:shm_info Unexecuted instantiation: dprint.c:shm_info Unexecuted instantiation: pt.c:shm_info Unexecuted instantiation: ut.c:shm_info Unexecuted instantiation: statistics.c:shm_info Unexecuted instantiation: route.c:shm_info Unexecuted instantiation: ipc.c:shm_info Unexecuted instantiation: core_stats.c:shm_info Unexecuted instantiation: route_struct.c:shm_info Unexecuted instantiation: dset.c:shm_info Unexecuted instantiation: pt_load.c:shm_info Unexecuted instantiation: sr_module.c:shm_info Unexecuted instantiation: action.c:shm_info Unexecuted instantiation: db_insertq.c:shm_info Unexecuted instantiation: db.c:shm_info Unexecuted instantiation: proto_tcp.c:shm_info Unexecuted instantiation: proto_udp.c:shm_info Unexecuted instantiation: net_tcp_proc.c:shm_info Unexecuted instantiation: net_tcp.c:shm_info Unexecuted instantiation: tcp_common.c:shm_info Unexecuted instantiation: net_udp.c:shm_info Unexecuted instantiation: tcp_conn_profile.c:shm_info Unexecuted instantiation: trans_trace.c:shm_info Unexecuted instantiation: net_tcp_report.c:shm_info Unexecuted instantiation: shm_mem.c:shm_info Unexecuted instantiation: rpm_mem.c:shm_info Unexecuted instantiation: mem.c:shm_info Unexecuted instantiation: mi.c:shm_info Unexecuted instantiation: item.c:shm_info Unexecuted instantiation: msg_parser.c:shm_info Unexecuted instantiation: parse_uri.c:shm_info Unexecuted instantiation: parse_fline.c:shm_info Unexecuted instantiation: parse_hname2.c:shm_info Unexecuted instantiation: parse_content.c:shm_info Unexecuted instantiation: hf.c:shm_info Unexecuted instantiation: parse_to.c:shm_info Unexecuted instantiation: parse_via.c:shm_info Unexecuted instantiation: event_interface.c:shm_info Unexecuted instantiation: evi_params.c:shm_info Unexecuted instantiation: receive.c:shm_info Unexecuted instantiation: ip_addr.c:shm_info Unexecuted instantiation: async.c:shm_info Unexecuted instantiation: daemonize.c:shm_info Unexecuted instantiation: timer.c:shm_info Unexecuted instantiation: trace_api.c:shm_info Unexecuted instantiation: mod_fix.c:shm_info Unexecuted instantiation: reactor.c:shm_info Unexecuted instantiation: strcommon.c:shm_info Unexecuted instantiation: forward.c:shm_info Unexecuted instantiation: xlog.c:shm_info Unexecuted instantiation: blacklists.c:shm_info Unexecuted instantiation: usr_avp.c:shm_info Unexecuted instantiation: sdp_ops.c:shm_info Unexecuted instantiation: resolve.c:shm_info Unexecuted instantiation: io_wait.c:shm_info Unexecuted instantiation: transformations.c:shm_info Unexecuted instantiation: pvar.c:shm_info Unexecuted instantiation: sr_module_deps.c:shm_info Unexecuted instantiation: cfg_reload.c:shm_info Unexecuted instantiation: socket_info.c:shm_info Unexecuted instantiation: time_rec.c:shm_info Unexecuted instantiation: map.c:shm_info Unexecuted instantiation: status_report.c:shm_info Unexecuted instantiation: pt_scaling.c:shm_info Unexecuted instantiation: signals.c:shm_info Unexecuted instantiation: flags.c:shm_info Unexecuted instantiation: db_id.c:shm_info Unexecuted instantiation: trans.c:shm_info Unexecuted instantiation: cJSON.c:shm_info Unexecuted instantiation: sdp.c:shm_info Unexecuted instantiation: sdp_helpr_funcs.c:shm_info Unexecuted instantiation: digest_parser.c:shm_info Unexecuted instantiation: param_parser.c:shm_info Unexecuted instantiation: parse_contact.c:shm_info Unexecuted instantiation: parse_body.c:shm_info Unexecuted instantiation: parse_security.c:shm_info Unexecuted instantiation: parse_call_info.c:shm_info Unexecuted instantiation: parse_event.c:shm_info Unexecuted instantiation: parse_disposition.c:shm_info Unexecuted instantiation: parse_authenticate.c:shm_info Unexecuted instantiation: parser_f.c:shm_info Unexecuted instantiation: parse_rpid.c:shm_info Unexecuted instantiation: parse_ppi.c:shm_info Unexecuted instantiation: parse_fcaps.c:shm_info Unexecuted instantiation: parse_rr.c:shm_info Unexecuted instantiation: parse_param.c:shm_info Unexecuted instantiation: parse_diversion.c:shm_info Unexecuted instantiation: parse_nameaddr.c:shm_info Unexecuted instantiation: parse_expires.c:shm_info Unexecuted instantiation: parse_refer_to.c:shm_info Unexecuted instantiation: parse_from.c:shm_info Unexecuted instantiation: parse_pai.c:shm_info Unexecuted instantiation: evi_transport.c:shm_info Unexecuted instantiation: msg_translator.c:shm_info Unexecuted instantiation: md5utils.c:shm_info Unexecuted instantiation: cfg.tab.c:shm_info Unexecuted instantiation: modparam.c:shm_info Unexecuted instantiation: crc.c:shm_info Unexecuted instantiation: lex.yy.c:shm_info Unexecuted instantiation: cfg_pp.c:shm_info Unexecuted instantiation: proxy.c:shm_info Unexecuted instantiation: shutdown.c:shm_info Unexecuted instantiation: core_cmds.c:shm_info Unexecuted instantiation: cachedb.c:shm_info Unexecuted instantiation: cachedb_id.c:shm_info |
839 | | |
840 | | |
841 | | inline static void shm_force_unlock(void) |
842 | 0 | { |
843 | 0 | if (0 |
844 | 0 | #if defined F_MALLOC || defined Q_MALLOC |
845 | 0 | || mem_lock |
846 | 0 | #endif |
847 | | #ifdef HP_MALLOC |
848 | | || mem_locks |
849 | | #endif |
850 | 0 | ) { |
851 | | #if defined HP_MALLOC && (defined F_MALLOC || defined Q_MALLOC) |
852 | | if (mem_allocator_shm == MM_HP_MALLOC || |
853 | | mem_allocator_shm == MM_HP_MALLOC_DBG) { |
854 | | int i; |
855 | | |
856 | | for (i = 0; i < HP_HASH_SIZE; i++) |
857 | | lock_release(&mem_locks[i]); |
858 | | } else { |
859 | | if (mem_lock) |
860 | | shm_unlock(); |
861 | | } |
862 | | #elif defined HP_MALLOC |
863 | | int i; |
864 | | |
865 | | for (i = 0; i < HP_HASH_SIZE; i++) |
866 | | lock_release(&mem_locks[i]); |
867 | | #else |
868 | 0 | shm_unlock(); |
869 | 0 | #endif |
870 | 0 | } |
871 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_force_unlock Unexecuted instantiation: csv.c:shm_force_unlock Unexecuted instantiation: dprint.c:shm_force_unlock Unexecuted instantiation: pt.c:shm_force_unlock Unexecuted instantiation: ut.c:shm_force_unlock Unexecuted instantiation: statistics.c:shm_force_unlock Unexecuted instantiation: route.c:shm_force_unlock Unexecuted instantiation: ipc.c:shm_force_unlock Unexecuted instantiation: core_stats.c:shm_force_unlock Unexecuted instantiation: route_struct.c:shm_force_unlock Unexecuted instantiation: dset.c:shm_force_unlock Unexecuted instantiation: pt_load.c:shm_force_unlock Unexecuted instantiation: sr_module.c:shm_force_unlock Unexecuted instantiation: action.c:shm_force_unlock Unexecuted instantiation: db_insertq.c:shm_force_unlock Unexecuted instantiation: db.c:shm_force_unlock Unexecuted instantiation: proto_tcp.c:shm_force_unlock Unexecuted instantiation: proto_udp.c:shm_force_unlock Unexecuted instantiation: net_tcp_proc.c:shm_force_unlock Unexecuted instantiation: net_tcp.c:shm_force_unlock Unexecuted instantiation: tcp_common.c:shm_force_unlock Unexecuted instantiation: net_udp.c:shm_force_unlock Unexecuted instantiation: tcp_conn_profile.c:shm_force_unlock Unexecuted instantiation: trans_trace.c:shm_force_unlock Unexecuted instantiation: net_tcp_report.c:shm_force_unlock Unexecuted instantiation: shm_mem.c:shm_force_unlock Unexecuted instantiation: rpm_mem.c:shm_force_unlock Unexecuted instantiation: mem.c:shm_force_unlock Unexecuted instantiation: mi.c:shm_force_unlock Unexecuted instantiation: item.c:shm_force_unlock Unexecuted instantiation: msg_parser.c:shm_force_unlock Unexecuted instantiation: parse_uri.c:shm_force_unlock Unexecuted instantiation: parse_fline.c:shm_force_unlock Unexecuted instantiation: parse_hname2.c:shm_force_unlock Unexecuted instantiation: parse_content.c:shm_force_unlock Unexecuted instantiation: hf.c:shm_force_unlock Unexecuted instantiation: parse_to.c:shm_force_unlock Unexecuted instantiation: parse_via.c:shm_force_unlock Unexecuted instantiation: event_interface.c:shm_force_unlock Unexecuted instantiation: evi_params.c:shm_force_unlock Unexecuted instantiation: receive.c:shm_force_unlock Unexecuted instantiation: ip_addr.c:shm_force_unlock Unexecuted instantiation: async.c:shm_force_unlock Unexecuted instantiation: daemonize.c:shm_force_unlock Unexecuted instantiation: timer.c:shm_force_unlock Unexecuted instantiation: trace_api.c:shm_force_unlock Unexecuted instantiation: mod_fix.c:shm_force_unlock Unexecuted instantiation: reactor.c:shm_force_unlock Unexecuted instantiation: strcommon.c:shm_force_unlock Unexecuted instantiation: forward.c:shm_force_unlock Unexecuted instantiation: xlog.c:shm_force_unlock Unexecuted instantiation: blacklists.c:shm_force_unlock Unexecuted instantiation: usr_avp.c:shm_force_unlock Unexecuted instantiation: sdp_ops.c:shm_force_unlock Unexecuted instantiation: resolve.c:shm_force_unlock Unexecuted instantiation: io_wait.c:shm_force_unlock Unexecuted instantiation: transformations.c:shm_force_unlock Unexecuted instantiation: pvar.c:shm_force_unlock Unexecuted instantiation: sr_module_deps.c:shm_force_unlock Unexecuted instantiation: cfg_reload.c:shm_force_unlock Unexecuted instantiation: socket_info.c:shm_force_unlock Unexecuted instantiation: time_rec.c:shm_force_unlock Unexecuted instantiation: map.c:shm_force_unlock Unexecuted instantiation: status_report.c:shm_force_unlock Unexecuted instantiation: pt_scaling.c:shm_force_unlock Unexecuted instantiation: signals.c:shm_force_unlock Unexecuted instantiation: flags.c:shm_force_unlock Unexecuted instantiation: db_id.c:shm_force_unlock Unexecuted instantiation: trans.c:shm_force_unlock Unexecuted instantiation: cJSON.c:shm_force_unlock Unexecuted instantiation: sdp.c:shm_force_unlock Unexecuted instantiation: sdp_helpr_funcs.c:shm_force_unlock Unexecuted instantiation: digest_parser.c:shm_force_unlock Unexecuted instantiation: param_parser.c:shm_force_unlock Unexecuted instantiation: parse_contact.c:shm_force_unlock Unexecuted instantiation: parse_body.c:shm_force_unlock Unexecuted instantiation: parse_security.c:shm_force_unlock Unexecuted instantiation: parse_call_info.c:shm_force_unlock Unexecuted instantiation: parse_event.c:shm_force_unlock Unexecuted instantiation: parse_disposition.c:shm_force_unlock Unexecuted instantiation: parse_authenticate.c:shm_force_unlock Unexecuted instantiation: parser_f.c:shm_force_unlock Unexecuted instantiation: parse_rpid.c:shm_force_unlock Unexecuted instantiation: parse_ppi.c:shm_force_unlock Unexecuted instantiation: parse_fcaps.c:shm_force_unlock Unexecuted instantiation: parse_rr.c:shm_force_unlock Unexecuted instantiation: parse_param.c:shm_force_unlock Unexecuted instantiation: parse_diversion.c:shm_force_unlock Unexecuted instantiation: parse_nameaddr.c:shm_force_unlock Unexecuted instantiation: parse_expires.c:shm_force_unlock Unexecuted instantiation: parse_refer_to.c:shm_force_unlock Unexecuted instantiation: parse_from.c:shm_force_unlock Unexecuted instantiation: parse_pai.c:shm_force_unlock Unexecuted instantiation: evi_transport.c:shm_force_unlock Unexecuted instantiation: msg_translator.c:shm_force_unlock Unexecuted instantiation: md5utils.c:shm_force_unlock Unexecuted instantiation: cfg.tab.c:shm_force_unlock Unexecuted instantiation: modparam.c:shm_force_unlock Unexecuted instantiation: crc.c:shm_force_unlock Unexecuted instantiation: lex.yy.c:shm_force_unlock Unexecuted instantiation: cfg_pp.c:shm_force_unlock Unexecuted instantiation: proxy.c:shm_force_unlock Unexecuted instantiation: shutdown.c:shm_force_unlock Unexecuted instantiation: core_cmds.c:shm_force_unlock Unexecuted instantiation: cachedb.c:shm_force_unlock Unexecuted instantiation: cachedb_id.c:shm_force_unlock |
872 | | |
873 | | |
874 | | /* |
875 | | * performs a full shared memory pool scan for any corruptions or inconsistencies |
876 | | */ |
877 | | mi_response_t *mi_shm_check(const mi_params_t *params, |
878 | | struct mi_handler *async_hdl); |
879 | | |
880 | | #ifdef STATISTICS |
881 | | extern stat_export_t shm_stats[]; |
882 | | |
883 | 0 | inline static unsigned long shm_get_size(unsigned short foo) { |
884 | 0 | return SHM_GET_SIZE(shm_block); |
885 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_get_size Unexecuted instantiation: csv.c:shm_get_size Unexecuted instantiation: dprint.c:shm_get_size Unexecuted instantiation: pt.c:shm_get_size Unexecuted instantiation: ut.c:shm_get_size Unexecuted instantiation: statistics.c:shm_get_size Unexecuted instantiation: route.c:shm_get_size Unexecuted instantiation: ipc.c:shm_get_size Unexecuted instantiation: core_stats.c:shm_get_size Unexecuted instantiation: route_struct.c:shm_get_size Unexecuted instantiation: dset.c:shm_get_size Unexecuted instantiation: pt_load.c:shm_get_size Unexecuted instantiation: sr_module.c:shm_get_size Unexecuted instantiation: action.c:shm_get_size Unexecuted instantiation: db_insertq.c:shm_get_size Unexecuted instantiation: db.c:shm_get_size Unexecuted instantiation: proto_tcp.c:shm_get_size Unexecuted instantiation: proto_udp.c:shm_get_size Unexecuted instantiation: net_tcp_proc.c:shm_get_size Unexecuted instantiation: net_tcp.c:shm_get_size Unexecuted instantiation: tcp_common.c:shm_get_size Unexecuted instantiation: net_udp.c:shm_get_size Unexecuted instantiation: tcp_conn_profile.c:shm_get_size Unexecuted instantiation: trans_trace.c:shm_get_size Unexecuted instantiation: net_tcp_report.c:shm_get_size Unexecuted instantiation: shm_mem.c:shm_get_size Unexecuted instantiation: rpm_mem.c:shm_get_size Unexecuted instantiation: mem.c:shm_get_size Unexecuted instantiation: mi.c:shm_get_size Unexecuted instantiation: item.c:shm_get_size Unexecuted instantiation: msg_parser.c:shm_get_size Unexecuted instantiation: parse_uri.c:shm_get_size Unexecuted instantiation: parse_fline.c:shm_get_size Unexecuted instantiation: parse_hname2.c:shm_get_size Unexecuted instantiation: parse_content.c:shm_get_size Unexecuted instantiation: hf.c:shm_get_size Unexecuted instantiation: parse_to.c:shm_get_size Unexecuted instantiation: parse_via.c:shm_get_size Unexecuted instantiation: event_interface.c:shm_get_size Unexecuted instantiation: evi_params.c:shm_get_size Unexecuted instantiation: receive.c:shm_get_size Unexecuted instantiation: ip_addr.c:shm_get_size Unexecuted instantiation: async.c:shm_get_size Unexecuted instantiation: daemonize.c:shm_get_size Unexecuted instantiation: timer.c:shm_get_size Unexecuted instantiation: trace_api.c:shm_get_size Unexecuted instantiation: mod_fix.c:shm_get_size Unexecuted instantiation: reactor.c:shm_get_size Unexecuted instantiation: strcommon.c:shm_get_size Unexecuted instantiation: forward.c:shm_get_size Unexecuted instantiation: xlog.c:shm_get_size Unexecuted instantiation: blacklists.c:shm_get_size Unexecuted instantiation: usr_avp.c:shm_get_size Unexecuted instantiation: sdp_ops.c:shm_get_size Unexecuted instantiation: resolve.c:shm_get_size Unexecuted instantiation: io_wait.c:shm_get_size Unexecuted instantiation: transformations.c:shm_get_size Unexecuted instantiation: pvar.c:shm_get_size Unexecuted instantiation: sr_module_deps.c:shm_get_size Unexecuted instantiation: cfg_reload.c:shm_get_size Unexecuted instantiation: socket_info.c:shm_get_size Unexecuted instantiation: time_rec.c:shm_get_size Unexecuted instantiation: map.c:shm_get_size Unexecuted instantiation: status_report.c:shm_get_size Unexecuted instantiation: pt_scaling.c:shm_get_size Unexecuted instantiation: signals.c:shm_get_size Unexecuted instantiation: flags.c:shm_get_size Unexecuted instantiation: db_id.c:shm_get_size Unexecuted instantiation: trans.c:shm_get_size Unexecuted instantiation: cJSON.c:shm_get_size Unexecuted instantiation: sdp.c:shm_get_size Unexecuted instantiation: sdp_helpr_funcs.c:shm_get_size Unexecuted instantiation: digest_parser.c:shm_get_size Unexecuted instantiation: param_parser.c:shm_get_size Unexecuted instantiation: parse_contact.c:shm_get_size Unexecuted instantiation: parse_body.c:shm_get_size Unexecuted instantiation: parse_security.c:shm_get_size Unexecuted instantiation: parse_call_info.c:shm_get_size Unexecuted instantiation: parse_event.c:shm_get_size Unexecuted instantiation: parse_disposition.c:shm_get_size Unexecuted instantiation: parse_authenticate.c:shm_get_size Unexecuted instantiation: parser_f.c:shm_get_size Unexecuted instantiation: parse_rpid.c:shm_get_size Unexecuted instantiation: parse_ppi.c:shm_get_size Unexecuted instantiation: parse_fcaps.c:shm_get_size Unexecuted instantiation: parse_rr.c:shm_get_size Unexecuted instantiation: parse_param.c:shm_get_size Unexecuted instantiation: parse_diversion.c:shm_get_size Unexecuted instantiation: parse_nameaddr.c:shm_get_size Unexecuted instantiation: parse_expires.c:shm_get_size Unexecuted instantiation: parse_refer_to.c:shm_get_size Unexecuted instantiation: parse_from.c:shm_get_size Unexecuted instantiation: parse_pai.c:shm_get_size Unexecuted instantiation: evi_transport.c:shm_get_size Unexecuted instantiation: msg_translator.c:shm_get_size Unexecuted instantiation: md5utils.c:shm_get_size Unexecuted instantiation: cfg.tab.c:shm_get_size Unexecuted instantiation: modparam.c:shm_get_size Unexecuted instantiation: crc.c:shm_get_size Unexecuted instantiation: lex.yy.c:shm_get_size Unexecuted instantiation: cfg_pp.c:shm_get_size Unexecuted instantiation: proxy.c:shm_get_size Unexecuted instantiation: shutdown.c:shm_get_size Unexecuted instantiation: core_cmds.c:shm_get_size Unexecuted instantiation: cachedb.c:shm_get_size Unexecuted instantiation: cachedb_id.c:shm_get_size |
886 | 0 | inline static unsigned long shm_get_used(unsigned short foo) { |
887 | 0 | return SHM_GET_USED(shm_block); |
888 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_get_used Unexecuted instantiation: csv.c:shm_get_used Unexecuted instantiation: dprint.c:shm_get_used Unexecuted instantiation: pt.c:shm_get_used Unexecuted instantiation: ut.c:shm_get_used Unexecuted instantiation: statistics.c:shm_get_used Unexecuted instantiation: route.c:shm_get_used Unexecuted instantiation: ipc.c:shm_get_used Unexecuted instantiation: core_stats.c:shm_get_used Unexecuted instantiation: route_struct.c:shm_get_used Unexecuted instantiation: dset.c:shm_get_used Unexecuted instantiation: pt_load.c:shm_get_used Unexecuted instantiation: sr_module.c:shm_get_used Unexecuted instantiation: action.c:shm_get_used Unexecuted instantiation: db_insertq.c:shm_get_used Unexecuted instantiation: db.c:shm_get_used Unexecuted instantiation: proto_tcp.c:shm_get_used Unexecuted instantiation: proto_udp.c:shm_get_used Unexecuted instantiation: net_tcp_proc.c:shm_get_used Unexecuted instantiation: net_tcp.c:shm_get_used Unexecuted instantiation: tcp_common.c:shm_get_used Unexecuted instantiation: net_udp.c:shm_get_used Unexecuted instantiation: tcp_conn_profile.c:shm_get_used Unexecuted instantiation: trans_trace.c:shm_get_used Unexecuted instantiation: net_tcp_report.c:shm_get_used Unexecuted instantiation: shm_mem.c:shm_get_used Unexecuted instantiation: rpm_mem.c:shm_get_used Unexecuted instantiation: mem.c:shm_get_used Unexecuted instantiation: mi.c:shm_get_used Unexecuted instantiation: item.c:shm_get_used Unexecuted instantiation: msg_parser.c:shm_get_used Unexecuted instantiation: parse_uri.c:shm_get_used Unexecuted instantiation: parse_fline.c:shm_get_used Unexecuted instantiation: parse_hname2.c:shm_get_used Unexecuted instantiation: parse_content.c:shm_get_used Unexecuted instantiation: hf.c:shm_get_used Unexecuted instantiation: parse_to.c:shm_get_used Unexecuted instantiation: parse_via.c:shm_get_used Unexecuted instantiation: event_interface.c:shm_get_used Unexecuted instantiation: evi_params.c:shm_get_used Unexecuted instantiation: receive.c:shm_get_used Unexecuted instantiation: ip_addr.c:shm_get_used Unexecuted instantiation: async.c:shm_get_used Unexecuted instantiation: daemonize.c:shm_get_used Unexecuted instantiation: timer.c:shm_get_used Unexecuted instantiation: trace_api.c:shm_get_used Unexecuted instantiation: mod_fix.c:shm_get_used Unexecuted instantiation: reactor.c:shm_get_used Unexecuted instantiation: strcommon.c:shm_get_used Unexecuted instantiation: forward.c:shm_get_used Unexecuted instantiation: xlog.c:shm_get_used Unexecuted instantiation: blacklists.c:shm_get_used Unexecuted instantiation: usr_avp.c:shm_get_used Unexecuted instantiation: sdp_ops.c:shm_get_used Unexecuted instantiation: resolve.c:shm_get_used Unexecuted instantiation: io_wait.c:shm_get_used Unexecuted instantiation: transformations.c:shm_get_used Unexecuted instantiation: pvar.c:shm_get_used Unexecuted instantiation: sr_module_deps.c:shm_get_used Unexecuted instantiation: cfg_reload.c:shm_get_used Unexecuted instantiation: socket_info.c:shm_get_used Unexecuted instantiation: time_rec.c:shm_get_used Unexecuted instantiation: map.c:shm_get_used Unexecuted instantiation: status_report.c:shm_get_used Unexecuted instantiation: pt_scaling.c:shm_get_used Unexecuted instantiation: signals.c:shm_get_used Unexecuted instantiation: flags.c:shm_get_used Unexecuted instantiation: db_id.c:shm_get_used Unexecuted instantiation: trans.c:shm_get_used Unexecuted instantiation: cJSON.c:shm_get_used Unexecuted instantiation: sdp.c:shm_get_used Unexecuted instantiation: sdp_helpr_funcs.c:shm_get_used Unexecuted instantiation: digest_parser.c:shm_get_used Unexecuted instantiation: param_parser.c:shm_get_used Unexecuted instantiation: parse_contact.c:shm_get_used Unexecuted instantiation: parse_body.c:shm_get_used Unexecuted instantiation: parse_security.c:shm_get_used Unexecuted instantiation: parse_call_info.c:shm_get_used Unexecuted instantiation: parse_event.c:shm_get_used Unexecuted instantiation: parse_disposition.c:shm_get_used Unexecuted instantiation: parse_authenticate.c:shm_get_used Unexecuted instantiation: parser_f.c:shm_get_used Unexecuted instantiation: parse_rpid.c:shm_get_used Unexecuted instantiation: parse_ppi.c:shm_get_used Unexecuted instantiation: parse_fcaps.c:shm_get_used Unexecuted instantiation: parse_rr.c:shm_get_used Unexecuted instantiation: parse_param.c:shm_get_used Unexecuted instantiation: parse_diversion.c:shm_get_used Unexecuted instantiation: parse_nameaddr.c:shm_get_used Unexecuted instantiation: parse_expires.c:shm_get_used Unexecuted instantiation: parse_refer_to.c:shm_get_used Unexecuted instantiation: parse_from.c:shm_get_used Unexecuted instantiation: parse_pai.c:shm_get_used Unexecuted instantiation: evi_transport.c:shm_get_used Unexecuted instantiation: msg_translator.c:shm_get_used Unexecuted instantiation: md5utils.c:shm_get_used Unexecuted instantiation: cfg.tab.c:shm_get_used Unexecuted instantiation: modparam.c:shm_get_used Unexecuted instantiation: crc.c:shm_get_used Unexecuted instantiation: lex.yy.c:shm_get_used Unexecuted instantiation: cfg_pp.c:shm_get_used Unexecuted instantiation: proxy.c:shm_get_used Unexecuted instantiation: shutdown.c:shm_get_used Unexecuted instantiation: core_cmds.c:shm_get_used Unexecuted instantiation: cachedb.c:shm_get_used Unexecuted instantiation: cachedb_id.c:shm_get_used |
889 | 0 | inline static unsigned long shm_get_rused(unsigned short foo) { |
890 | 0 | return SHM_GET_RUSED(shm_block); |
891 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_get_rused Unexecuted instantiation: csv.c:shm_get_rused Unexecuted instantiation: dprint.c:shm_get_rused Unexecuted instantiation: pt.c:shm_get_rused Unexecuted instantiation: ut.c:shm_get_rused Unexecuted instantiation: statistics.c:shm_get_rused Unexecuted instantiation: route.c:shm_get_rused Unexecuted instantiation: ipc.c:shm_get_rused Unexecuted instantiation: core_stats.c:shm_get_rused Unexecuted instantiation: route_struct.c:shm_get_rused Unexecuted instantiation: dset.c:shm_get_rused Unexecuted instantiation: pt_load.c:shm_get_rused Unexecuted instantiation: sr_module.c:shm_get_rused Unexecuted instantiation: action.c:shm_get_rused Unexecuted instantiation: db_insertq.c:shm_get_rused Unexecuted instantiation: db.c:shm_get_rused Unexecuted instantiation: proto_tcp.c:shm_get_rused Unexecuted instantiation: proto_udp.c:shm_get_rused Unexecuted instantiation: net_tcp_proc.c:shm_get_rused Unexecuted instantiation: net_tcp.c:shm_get_rused Unexecuted instantiation: tcp_common.c:shm_get_rused Unexecuted instantiation: net_udp.c:shm_get_rused Unexecuted instantiation: tcp_conn_profile.c:shm_get_rused Unexecuted instantiation: trans_trace.c:shm_get_rused Unexecuted instantiation: net_tcp_report.c:shm_get_rused Unexecuted instantiation: shm_mem.c:shm_get_rused Unexecuted instantiation: rpm_mem.c:shm_get_rused Unexecuted instantiation: mem.c:shm_get_rused Unexecuted instantiation: mi.c:shm_get_rused Unexecuted instantiation: item.c:shm_get_rused Unexecuted instantiation: msg_parser.c:shm_get_rused Unexecuted instantiation: parse_uri.c:shm_get_rused Unexecuted instantiation: parse_fline.c:shm_get_rused Unexecuted instantiation: parse_hname2.c:shm_get_rused Unexecuted instantiation: parse_content.c:shm_get_rused Unexecuted instantiation: hf.c:shm_get_rused Unexecuted instantiation: parse_to.c:shm_get_rused Unexecuted instantiation: parse_via.c:shm_get_rused Unexecuted instantiation: event_interface.c:shm_get_rused Unexecuted instantiation: evi_params.c:shm_get_rused Unexecuted instantiation: receive.c:shm_get_rused Unexecuted instantiation: ip_addr.c:shm_get_rused Unexecuted instantiation: async.c:shm_get_rused Unexecuted instantiation: daemonize.c:shm_get_rused Unexecuted instantiation: timer.c:shm_get_rused Unexecuted instantiation: trace_api.c:shm_get_rused Unexecuted instantiation: mod_fix.c:shm_get_rused Unexecuted instantiation: reactor.c:shm_get_rused Unexecuted instantiation: strcommon.c:shm_get_rused Unexecuted instantiation: forward.c:shm_get_rused Unexecuted instantiation: xlog.c:shm_get_rused Unexecuted instantiation: blacklists.c:shm_get_rused Unexecuted instantiation: usr_avp.c:shm_get_rused Unexecuted instantiation: sdp_ops.c:shm_get_rused Unexecuted instantiation: resolve.c:shm_get_rused Unexecuted instantiation: io_wait.c:shm_get_rused Unexecuted instantiation: transformations.c:shm_get_rused Unexecuted instantiation: pvar.c:shm_get_rused Unexecuted instantiation: sr_module_deps.c:shm_get_rused Unexecuted instantiation: cfg_reload.c:shm_get_rused Unexecuted instantiation: socket_info.c:shm_get_rused Unexecuted instantiation: time_rec.c:shm_get_rused Unexecuted instantiation: map.c:shm_get_rused Unexecuted instantiation: status_report.c:shm_get_rused Unexecuted instantiation: pt_scaling.c:shm_get_rused Unexecuted instantiation: signals.c:shm_get_rused Unexecuted instantiation: flags.c:shm_get_rused Unexecuted instantiation: db_id.c:shm_get_rused Unexecuted instantiation: trans.c:shm_get_rused Unexecuted instantiation: cJSON.c:shm_get_rused Unexecuted instantiation: sdp.c:shm_get_rused Unexecuted instantiation: sdp_helpr_funcs.c:shm_get_rused Unexecuted instantiation: digest_parser.c:shm_get_rused Unexecuted instantiation: param_parser.c:shm_get_rused Unexecuted instantiation: parse_contact.c:shm_get_rused Unexecuted instantiation: parse_body.c:shm_get_rused Unexecuted instantiation: parse_security.c:shm_get_rused Unexecuted instantiation: parse_call_info.c:shm_get_rused Unexecuted instantiation: parse_event.c:shm_get_rused Unexecuted instantiation: parse_disposition.c:shm_get_rused Unexecuted instantiation: parse_authenticate.c:shm_get_rused Unexecuted instantiation: parser_f.c:shm_get_rused Unexecuted instantiation: parse_rpid.c:shm_get_rused Unexecuted instantiation: parse_ppi.c:shm_get_rused Unexecuted instantiation: parse_fcaps.c:shm_get_rused Unexecuted instantiation: parse_rr.c:shm_get_rused Unexecuted instantiation: parse_param.c:shm_get_rused Unexecuted instantiation: parse_diversion.c:shm_get_rused Unexecuted instantiation: parse_nameaddr.c:shm_get_rused Unexecuted instantiation: parse_expires.c:shm_get_rused Unexecuted instantiation: parse_refer_to.c:shm_get_rused Unexecuted instantiation: parse_from.c:shm_get_rused Unexecuted instantiation: parse_pai.c:shm_get_rused Unexecuted instantiation: evi_transport.c:shm_get_rused Unexecuted instantiation: msg_translator.c:shm_get_rused Unexecuted instantiation: md5utils.c:shm_get_rused Unexecuted instantiation: cfg.tab.c:shm_get_rused Unexecuted instantiation: modparam.c:shm_get_rused Unexecuted instantiation: crc.c:shm_get_rused Unexecuted instantiation: lex.yy.c:shm_get_rused Unexecuted instantiation: cfg_pp.c:shm_get_rused Unexecuted instantiation: proxy.c:shm_get_rused Unexecuted instantiation: shutdown.c:shm_get_rused Unexecuted instantiation: core_cmds.c:shm_get_rused Unexecuted instantiation: cachedb.c:shm_get_rused Unexecuted instantiation: cachedb_id.c:shm_get_rused |
892 | 0 | inline static unsigned long shm_get_mused(unsigned short foo) { |
893 | 0 | return SHM_GET_MUSED(shm_block); |
894 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_get_mused Unexecuted instantiation: csv.c:shm_get_mused Unexecuted instantiation: dprint.c:shm_get_mused Unexecuted instantiation: pt.c:shm_get_mused Unexecuted instantiation: ut.c:shm_get_mused Unexecuted instantiation: statistics.c:shm_get_mused Unexecuted instantiation: route.c:shm_get_mused Unexecuted instantiation: ipc.c:shm_get_mused Unexecuted instantiation: core_stats.c:shm_get_mused Unexecuted instantiation: route_struct.c:shm_get_mused Unexecuted instantiation: dset.c:shm_get_mused Unexecuted instantiation: pt_load.c:shm_get_mused Unexecuted instantiation: sr_module.c:shm_get_mused Unexecuted instantiation: action.c:shm_get_mused Unexecuted instantiation: db_insertq.c:shm_get_mused Unexecuted instantiation: db.c:shm_get_mused Unexecuted instantiation: proto_tcp.c:shm_get_mused Unexecuted instantiation: proto_udp.c:shm_get_mused Unexecuted instantiation: net_tcp_proc.c:shm_get_mused Unexecuted instantiation: net_tcp.c:shm_get_mused Unexecuted instantiation: tcp_common.c:shm_get_mused Unexecuted instantiation: net_udp.c:shm_get_mused Unexecuted instantiation: tcp_conn_profile.c:shm_get_mused Unexecuted instantiation: trans_trace.c:shm_get_mused Unexecuted instantiation: net_tcp_report.c:shm_get_mused Unexecuted instantiation: shm_mem.c:shm_get_mused Unexecuted instantiation: rpm_mem.c:shm_get_mused Unexecuted instantiation: mem.c:shm_get_mused Unexecuted instantiation: mi.c:shm_get_mused Unexecuted instantiation: item.c:shm_get_mused Unexecuted instantiation: msg_parser.c:shm_get_mused Unexecuted instantiation: parse_uri.c:shm_get_mused Unexecuted instantiation: parse_fline.c:shm_get_mused Unexecuted instantiation: parse_hname2.c:shm_get_mused Unexecuted instantiation: parse_content.c:shm_get_mused Unexecuted instantiation: hf.c:shm_get_mused Unexecuted instantiation: parse_to.c:shm_get_mused Unexecuted instantiation: parse_via.c:shm_get_mused Unexecuted instantiation: event_interface.c:shm_get_mused Unexecuted instantiation: evi_params.c:shm_get_mused Unexecuted instantiation: receive.c:shm_get_mused Unexecuted instantiation: ip_addr.c:shm_get_mused Unexecuted instantiation: async.c:shm_get_mused Unexecuted instantiation: daemonize.c:shm_get_mused Unexecuted instantiation: timer.c:shm_get_mused Unexecuted instantiation: trace_api.c:shm_get_mused Unexecuted instantiation: mod_fix.c:shm_get_mused Unexecuted instantiation: reactor.c:shm_get_mused Unexecuted instantiation: strcommon.c:shm_get_mused Unexecuted instantiation: forward.c:shm_get_mused Unexecuted instantiation: xlog.c:shm_get_mused Unexecuted instantiation: blacklists.c:shm_get_mused Unexecuted instantiation: usr_avp.c:shm_get_mused Unexecuted instantiation: sdp_ops.c:shm_get_mused Unexecuted instantiation: resolve.c:shm_get_mused Unexecuted instantiation: io_wait.c:shm_get_mused Unexecuted instantiation: transformations.c:shm_get_mused Unexecuted instantiation: pvar.c:shm_get_mused Unexecuted instantiation: sr_module_deps.c:shm_get_mused Unexecuted instantiation: cfg_reload.c:shm_get_mused Unexecuted instantiation: socket_info.c:shm_get_mused Unexecuted instantiation: time_rec.c:shm_get_mused Unexecuted instantiation: map.c:shm_get_mused Unexecuted instantiation: status_report.c:shm_get_mused Unexecuted instantiation: pt_scaling.c:shm_get_mused Unexecuted instantiation: signals.c:shm_get_mused Unexecuted instantiation: flags.c:shm_get_mused Unexecuted instantiation: db_id.c:shm_get_mused Unexecuted instantiation: trans.c:shm_get_mused Unexecuted instantiation: cJSON.c:shm_get_mused Unexecuted instantiation: sdp.c:shm_get_mused Unexecuted instantiation: sdp_helpr_funcs.c:shm_get_mused Unexecuted instantiation: digest_parser.c:shm_get_mused Unexecuted instantiation: param_parser.c:shm_get_mused Unexecuted instantiation: parse_contact.c:shm_get_mused Unexecuted instantiation: parse_body.c:shm_get_mused Unexecuted instantiation: parse_security.c:shm_get_mused Unexecuted instantiation: parse_call_info.c:shm_get_mused Unexecuted instantiation: parse_event.c:shm_get_mused Unexecuted instantiation: parse_disposition.c:shm_get_mused Unexecuted instantiation: parse_authenticate.c:shm_get_mused Unexecuted instantiation: parser_f.c:shm_get_mused Unexecuted instantiation: parse_rpid.c:shm_get_mused Unexecuted instantiation: parse_ppi.c:shm_get_mused Unexecuted instantiation: parse_fcaps.c:shm_get_mused Unexecuted instantiation: parse_rr.c:shm_get_mused Unexecuted instantiation: parse_param.c:shm_get_mused Unexecuted instantiation: parse_diversion.c:shm_get_mused Unexecuted instantiation: parse_nameaddr.c:shm_get_mused Unexecuted instantiation: parse_expires.c:shm_get_mused Unexecuted instantiation: parse_refer_to.c:shm_get_mused Unexecuted instantiation: parse_from.c:shm_get_mused Unexecuted instantiation: parse_pai.c:shm_get_mused Unexecuted instantiation: evi_transport.c:shm_get_mused Unexecuted instantiation: msg_translator.c:shm_get_mused Unexecuted instantiation: md5utils.c:shm_get_mused Unexecuted instantiation: cfg.tab.c:shm_get_mused Unexecuted instantiation: modparam.c:shm_get_mused Unexecuted instantiation: crc.c:shm_get_mused Unexecuted instantiation: lex.yy.c:shm_get_mused Unexecuted instantiation: cfg_pp.c:shm_get_mused Unexecuted instantiation: proxy.c:shm_get_mused Unexecuted instantiation: shutdown.c:shm_get_mused Unexecuted instantiation: core_cmds.c:shm_get_mused Unexecuted instantiation: cachedb.c:shm_get_mused Unexecuted instantiation: cachedb_id.c:shm_get_mused |
895 | 0 | inline static unsigned long shm_get_free(unsigned short foo) { |
896 | 0 | return SHM_GET_FREE(shm_block); |
897 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_get_free Unexecuted instantiation: csv.c:shm_get_free Unexecuted instantiation: dprint.c:shm_get_free Unexecuted instantiation: pt.c:shm_get_free Unexecuted instantiation: ut.c:shm_get_free Unexecuted instantiation: statistics.c:shm_get_free Unexecuted instantiation: route.c:shm_get_free Unexecuted instantiation: ipc.c:shm_get_free Unexecuted instantiation: core_stats.c:shm_get_free Unexecuted instantiation: route_struct.c:shm_get_free Unexecuted instantiation: dset.c:shm_get_free Unexecuted instantiation: pt_load.c:shm_get_free Unexecuted instantiation: sr_module.c:shm_get_free Unexecuted instantiation: action.c:shm_get_free Unexecuted instantiation: db_insertq.c:shm_get_free Unexecuted instantiation: db.c:shm_get_free Unexecuted instantiation: proto_tcp.c:shm_get_free Unexecuted instantiation: proto_udp.c:shm_get_free Unexecuted instantiation: net_tcp_proc.c:shm_get_free Unexecuted instantiation: net_tcp.c:shm_get_free Unexecuted instantiation: tcp_common.c:shm_get_free Unexecuted instantiation: net_udp.c:shm_get_free Unexecuted instantiation: tcp_conn_profile.c:shm_get_free Unexecuted instantiation: trans_trace.c:shm_get_free Unexecuted instantiation: net_tcp_report.c:shm_get_free Unexecuted instantiation: shm_mem.c:shm_get_free Unexecuted instantiation: rpm_mem.c:shm_get_free Unexecuted instantiation: mem.c:shm_get_free Unexecuted instantiation: mi.c:shm_get_free Unexecuted instantiation: item.c:shm_get_free Unexecuted instantiation: msg_parser.c:shm_get_free Unexecuted instantiation: parse_uri.c:shm_get_free Unexecuted instantiation: parse_fline.c:shm_get_free Unexecuted instantiation: parse_hname2.c:shm_get_free Unexecuted instantiation: parse_content.c:shm_get_free Unexecuted instantiation: hf.c:shm_get_free Unexecuted instantiation: parse_to.c:shm_get_free Unexecuted instantiation: parse_via.c:shm_get_free Unexecuted instantiation: event_interface.c:shm_get_free Unexecuted instantiation: evi_params.c:shm_get_free Unexecuted instantiation: receive.c:shm_get_free Unexecuted instantiation: ip_addr.c:shm_get_free Unexecuted instantiation: async.c:shm_get_free Unexecuted instantiation: daemonize.c:shm_get_free Unexecuted instantiation: timer.c:shm_get_free Unexecuted instantiation: trace_api.c:shm_get_free Unexecuted instantiation: mod_fix.c:shm_get_free Unexecuted instantiation: reactor.c:shm_get_free Unexecuted instantiation: strcommon.c:shm_get_free Unexecuted instantiation: forward.c:shm_get_free Unexecuted instantiation: xlog.c:shm_get_free Unexecuted instantiation: blacklists.c:shm_get_free Unexecuted instantiation: usr_avp.c:shm_get_free Unexecuted instantiation: sdp_ops.c:shm_get_free Unexecuted instantiation: resolve.c:shm_get_free Unexecuted instantiation: io_wait.c:shm_get_free Unexecuted instantiation: transformations.c:shm_get_free Unexecuted instantiation: pvar.c:shm_get_free Unexecuted instantiation: sr_module_deps.c:shm_get_free Unexecuted instantiation: cfg_reload.c:shm_get_free Unexecuted instantiation: socket_info.c:shm_get_free Unexecuted instantiation: time_rec.c:shm_get_free Unexecuted instantiation: map.c:shm_get_free Unexecuted instantiation: status_report.c:shm_get_free Unexecuted instantiation: pt_scaling.c:shm_get_free Unexecuted instantiation: signals.c:shm_get_free Unexecuted instantiation: flags.c:shm_get_free Unexecuted instantiation: db_id.c:shm_get_free Unexecuted instantiation: trans.c:shm_get_free Unexecuted instantiation: cJSON.c:shm_get_free Unexecuted instantiation: sdp.c:shm_get_free Unexecuted instantiation: sdp_helpr_funcs.c:shm_get_free Unexecuted instantiation: digest_parser.c:shm_get_free Unexecuted instantiation: param_parser.c:shm_get_free Unexecuted instantiation: parse_contact.c:shm_get_free Unexecuted instantiation: parse_body.c:shm_get_free Unexecuted instantiation: parse_security.c:shm_get_free Unexecuted instantiation: parse_call_info.c:shm_get_free Unexecuted instantiation: parse_event.c:shm_get_free Unexecuted instantiation: parse_disposition.c:shm_get_free Unexecuted instantiation: parse_authenticate.c:shm_get_free Unexecuted instantiation: parser_f.c:shm_get_free Unexecuted instantiation: parse_rpid.c:shm_get_free Unexecuted instantiation: parse_ppi.c:shm_get_free Unexecuted instantiation: parse_fcaps.c:shm_get_free Unexecuted instantiation: parse_rr.c:shm_get_free Unexecuted instantiation: parse_param.c:shm_get_free Unexecuted instantiation: parse_diversion.c:shm_get_free Unexecuted instantiation: parse_nameaddr.c:shm_get_free Unexecuted instantiation: parse_expires.c:shm_get_free Unexecuted instantiation: parse_refer_to.c:shm_get_free Unexecuted instantiation: parse_from.c:shm_get_free Unexecuted instantiation: parse_pai.c:shm_get_free Unexecuted instantiation: evi_transport.c:shm_get_free Unexecuted instantiation: msg_translator.c:shm_get_free Unexecuted instantiation: md5utils.c:shm_get_free Unexecuted instantiation: cfg.tab.c:shm_get_free Unexecuted instantiation: modparam.c:shm_get_free Unexecuted instantiation: crc.c:shm_get_free Unexecuted instantiation: lex.yy.c:shm_get_free Unexecuted instantiation: cfg_pp.c:shm_get_free Unexecuted instantiation: proxy.c:shm_get_free Unexecuted instantiation: shutdown.c:shm_get_free Unexecuted instantiation: core_cmds.c:shm_get_free Unexecuted instantiation: cachedb.c:shm_get_free Unexecuted instantiation: cachedb_id.c:shm_get_free |
898 | 0 | inline static unsigned long shm_get_frags(unsigned short foo) { |
899 | 0 | return SHM_GET_FRAGS(shm_block); |
900 | 0 | } Unexecuted instantiation: fuzz_csv_parser.c:shm_get_frags Unexecuted instantiation: csv.c:shm_get_frags Unexecuted instantiation: dprint.c:shm_get_frags Unexecuted instantiation: pt.c:shm_get_frags Unexecuted instantiation: ut.c:shm_get_frags Unexecuted instantiation: statistics.c:shm_get_frags Unexecuted instantiation: route.c:shm_get_frags Unexecuted instantiation: ipc.c:shm_get_frags Unexecuted instantiation: core_stats.c:shm_get_frags Unexecuted instantiation: route_struct.c:shm_get_frags Unexecuted instantiation: dset.c:shm_get_frags Unexecuted instantiation: pt_load.c:shm_get_frags Unexecuted instantiation: sr_module.c:shm_get_frags Unexecuted instantiation: action.c:shm_get_frags Unexecuted instantiation: db_insertq.c:shm_get_frags Unexecuted instantiation: db.c:shm_get_frags Unexecuted instantiation: proto_tcp.c:shm_get_frags Unexecuted instantiation: proto_udp.c:shm_get_frags Unexecuted instantiation: net_tcp_proc.c:shm_get_frags Unexecuted instantiation: net_tcp.c:shm_get_frags Unexecuted instantiation: tcp_common.c:shm_get_frags Unexecuted instantiation: net_udp.c:shm_get_frags Unexecuted instantiation: tcp_conn_profile.c:shm_get_frags Unexecuted instantiation: trans_trace.c:shm_get_frags Unexecuted instantiation: net_tcp_report.c:shm_get_frags Unexecuted instantiation: shm_mem.c:shm_get_frags Unexecuted instantiation: rpm_mem.c:shm_get_frags Unexecuted instantiation: mem.c:shm_get_frags Unexecuted instantiation: mi.c:shm_get_frags Unexecuted instantiation: item.c:shm_get_frags Unexecuted instantiation: msg_parser.c:shm_get_frags Unexecuted instantiation: parse_uri.c:shm_get_frags Unexecuted instantiation: parse_fline.c:shm_get_frags Unexecuted instantiation: parse_hname2.c:shm_get_frags Unexecuted instantiation: parse_content.c:shm_get_frags Unexecuted instantiation: hf.c:shm_get_frags Unexecuted instantiation: parse_to.c:shm_get_frags Unexecuted instantiation: parse_via.c:shm_get_frags Unexecuted instantiation: event_interface.c:shm_get_frags Unexecuted instantiation: evi_params.c:shm_get_frags Unexecuted instantiation: receive.c:shm_get_frags Unexecuted instantiation: ip_addr.c:shm_get_frags Unexecuted instantiation: async.c:shm_get_frags Unexecuted instantiation: daemonize.c:shm_get_frags Unexecuted instantiation: timer.c:shm_get_frags Unexecuted instantiation: trace_api.c:shm_get_frags Unexecuted instantiation: mod_fix.c:shm_get_frags Unexecuted instantiation: reactor.c:shm_get_frags Unexecuted instantiation: strcommon.c:shm_get_frags Unexecuted instantiation: forward.c:shm_get_frags Unexecuted instantiation: xlog.c:shm_get_frags Unexecuted instantiation: blacklists.c:shm_get_frags Unexecuted instantiation: usr_avp.c:shm_get_frags Unexecuted instantiation: sdp_ops.c:shm_get_frags Unexecuted instantiation: resolve.c:shm_get_frags Unexecuted instantiation: io_wait.c:shm_get_frags Unexecuted instantiation: transformations.c:shm_get_frags Unexecuted instantiation: pvar.c:shm_get_frags Unexecuted instantiation: sr_module_deps.c:shm_get_frags Unexecuted instantiation: cfg_reload.c:shm_get_frags Unexecuted instantiation: socket_info.c:shm_get_frags Unexecuted instantiation: time_rec.c:shm_get_frags Unexecuted instantiation: map.c:shm_get_frags Unexecuted instantiation: status_report.c:shm_get_frags Unexecuted instantiation: pt_scaling.c:shm_get_frags Unexecuted instantiation: signals.c:shm_get_frags Unexecuted instantiation: flags.c:shm_get_frags Unexecuted instantiation: db_id.c:shm_get_frags Unexecuted instantiation: trans.c:shm_get_frags Unexecuted instantiation: cJSON.c:shm_get_frags Unexecuted instantiation: sdp.c:shm_get_frags Unexecuted instantiation: sdp_helpr_funcs.c:shm_get_frags Unexecuted instantiation: digest_parser.c:shm_get_frags Unexecuted instantiation: param_parser.c:shm_get_frags Unexecuted instantiation: parse_contact.c:shm_get_frags Unexecuted instantiation: parse_body.c:shm_get_frags Unexecuted instantiation: parse_security.c:shm_get_frags Unexecuted instantiation: parse_call_info.c:shm_get_frags Unexecuted instantiation: parse_event.c:shm_get_frags Unexecuted instantiation: parse_disposition.c:shm_get_frags Unexecuted instantiation: parse_authenticate.c:shm_get_frags Unexecuted instantiation: parser_f.c:shm_get_frags Unexecuted instantiation: parse_rpid.c:shm_get_frags Unexecuted instantiation: parse_ppi.c:shm_get_frags Unexecuted instantiation: parse_fcaps.c:shm_get_frags Unexecuted instantiation: parse_rr.c:shm_get_frags Unexecuted instantiation: parse_param.c:shm_get_frags Unexecuted instantiation: parse_diversion.c:shm_get_frags Unexecuted instantiation: parse_nameaddr.c:shm_get_frags Unexecuted instantiation: parse_expires.c:shm_get_frags Unexecuted instantiation: parse_refer_to.c:shm_get_frags Unexecuted instantiation: parse_from.c:shm_get_frags Unexecuted instantiation: parse_pai.c:shm_get_frags Unexecuted instantiation: evi_transport.c:shm_get_frags Unexecuted instantiation: msg_translator.c:shm_get_frags Unexecuted instantiation: md5utils.c:shm_get_frags Unexecuted instantiation: cfg.tab.c:shm_get_frags Unexecuted instantiation: modparam.c:shm_get_frags Unexecuted instantiation: crc.c:shm_get_frags Unexecuted instantiation: lex.yy.c:shm_get_frags Unexecuted instantiation: cfg_pp.c:shm_get_frags Unexecuted instantiation: proxy.c:shm_get_frags Unexecuted instantiation: shutdown.c:shm_get_frags Unexecuted instantiation: core_cmds.c:shm_get_frags Unexecuted instantiation: cachedb.c:shm_get_frags Unexecuted instantiation: cachedb_id.c:shm_get_frags |
901 | | #endif /*STATISTICS*/ |
902 | | |
903 | | #endif |
904 | | |