tqchen commented on code in PR #16836:
URL: https://github.com/apache/tvm/pull/16836#discussion_r1549772008


##########
src/runtime/dso_library.cc:
##########
@@ -136,6 +166,50 @@ void DSOLibrary::Load(const std::string& name) {
 
 void* DSOLibrary::GetSymbol_(const char* name) { return dlsym(lib_handle_, 
name); }
 
+void DSOLibrary::ListSymbols_(std::function<void(const char*)> callback) {
+  // Adapted from https://stackoverflow.com/a/62205128
+
+  struct link_map* map = nullptr;
+  dlinfo(lib_handle_, RTLD_DI_LINKMAP, &map);
+
+  Elf64_Sym* symbol_table = nullptr;

Review Comment:
   I am not sure if this will work on windows



-- 
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: commits-unsubscr...@tvm.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to