masaori335 commented on a change in pull request #8179:
URL: https://github.com/apache/trafficserver/pull/8179#discussion_r804269600
##########
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);
+}
+
+const void *
+Event::get_location() const
Review comment:
Right. It's just the buddy of `set_location` for now.
A possible use case is printing the location on debug log instead of using
`add2line` command.
--
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]