rob05c commented on a change in pull request #8179:
URL: https://github.com/apache/trafficserver/pull/8179#discussion_r804211783



##########
File path: iocore/eventsystem/UnixEvent.cc
##########
@@ -104,3 +106,19 @@ Event::schedule_every(ink_hrtime aperiod, int 
acallback_event)
     ethread->EventQueueExternal.enqueue_local(this);
   }
 }
+
+#ifdef ENABLE_EVENT_TRACKER
+
+void
+Event::set_location()
+{
+  _location = ink_backtrace(3);

Review comment:
       > the 3rd frame of the call stack
   Yeah, the whole "3" thing is awkward, but that's pretty common when looking 
back on the stack. It seems fragile, but it's also unlikely to change. Meh.

##########
File path: iocore/eventsystem/UnixEvent.cc
##########
@@ -104,3 +106,19 @@ Event::schedule_every(ink_hrtime aperiod, int 
acallback_event)
     ethread->EventQueueExternal.enqueue_local(this);
   }
 }
+
+#ifdef ENABLE_EVENT_TRACKER
+
+void
+Event::set_location()
+{
+  _location = ink_backtrace(3);

Review comment:
       > the 3rd frame of the call stack
   
   Yeah, the whole "3" thing is awkward, but that's pretty common when looking 
back on the stack. It seems fragile, but it's also unlikely to change. Meh.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to