ThreadContext is the external interface to all thread state for anything outside of the CPU.
T * addFuncEvent(const Loader::SymbolTable &symtab, const char *lbl, const std::string &desc, Args... args)
Add a function-based event to the given function, to be looked up in the specified symbol table.