@@ -195,9 +195,9 @@ static inline nruserfn_t* nr_php_wraprec_lookup_get(zend_function* zf) {
195195 || nr_strstr (func_name , "pre_post_update" ))) {
196196 nrl_verbosedebug (
197197 NRL_FRAMEWORK ,
198- "[NR WP LOOKUP PHP8] Function %s on thread %p: RUN_TIME_CACHE=%p, "
198+ "[%s:%d NR WP LOOKUP PHP8] Function %s on thread %p: RUN_TIME_CACHE=%p, "
199199 "wraprec=%p, magic=%s" ,
200- func_name ? func_name : "<NULL>" , (void * )pthread_self (),
200+ __func__ , __LINE__ , func_name ? func_name : "<NULL>" , (void * )pthread_self (),
201201 (void * )RUN_TIME_CACHE (& zf -> op_array ), (void * )wraprec ,
202202 wraprec ? (wraprec -> magic == NR_USERFN_T_MAGIC ? "VALID" : "INVALID" )
203203 : "N/A" );
@@ -237,8 +237,8 @@ static inline void nr_php_wraprec_lookup_set(nruserfn_t* wr,
237237 if (func_name && (nr_strstr (func_name , "bbp_" ) || nr_strstr (func_name , "pre_post_update" ))) {
238238 nrl_verbosedebug (
239239 NRL_FRAMEWORK ,
240- "[NR WP SET] Storing %s on thread %p: wraprec=%p in hashmap=%p (elements before=%zu)" ,
241- func_name ? func_name : "<NULL>" ,
240+ "[%s:%d NR WP SET] Storing %s on thread %p: wraprec=%p in hashmap=%p (elements before=%zu)" ,
241+ __func__ , __LINE__ , func_name ? func_name : "<NULL>" ,
242242 (void * )pthread_self (),
243243 (void * )wr ,
244244 (void * )user_function_wrappers ,
@@ -255,8 +255,8 @@ static inline void nr_php_wraprec_lookup_set(nruserfn_t* wr,
255255 if (func_name && (nr_strstr (func_name , "bbp_" ) || nr_strstr (func_name , "pre_post_update" ))) {
256256 nrl_verbosedebug (
257257 NRL_FRAMEWORK ,
258- "[NR WP SET] Stored %s: hashmap now has %zu elements" ,
259- func_name ? func_name : "<NULL>" ,
258+ "[%s:%d NR WP SET] Stored %s: hashmap now has %zu elements" ,
259+ __func__ , __LINE__ , func_name ? func_name : "<NULL>" ,
260260 user_function_wrappers ? user_function_wrappers -> elements : 0 );
261261 }
262262 nr_free (func_name );
@@ -273,8 +273,8 @@ static inline nruserfn_t* nr_php_wraprec_lookup_get(zend_function* zf) {
273273 if (func_name && (nr_strstr (func_name , "bbp_" ) || nr_strstr (func_name , "pre_post_update" ))) {
274274 nrl_verbosedebug (
275275 NRL_FRAMEWORK ,
276- "[NR WP LOOKUP] Function %s on thread %p: wraprec %s (hashmap=%p, elements=%zu)" ,
277- func_name ? func_name : "<NULL>" ,
276+ "[%s:%d NR WP LOOKUP] Function %s on thread %p: wraprec %s (hashmap=%p, elements=%zu)" ,
277+ __func__ , __LINE__ , func_name ? func_name : "<NULL>" ,
278278 (void * )pthread_self (),
279279 wraprec ? "FOUND" : "NOT FOUND" ,
280280 (void * )user_function_wrappers ,
@@ -304,7 +304,8 @@ void nr_php_init_user_instrumentation(void) {
304304 = nr_php_wraprec_hashmap_create_buckets (1024 , reset_wraprec );
305305 nrl_verbosedebug (
306306 NRL_INSTRUMENT ,
307- "[NR HASHMAP] Initialized wraprec hashmap=%p on thread %p" ,
307+ "[%s:%d NR HASHMAP] Initialized wraprec hashmap=%p on thread %p" ,
308+ __func__ , __LINE__ ,
308309 (void * )user_function_wrappers ,
309310 (void * )pthread_self ());
310311}
0 commit comments