ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
symbols.h File Reference

Go to the source code of this file.

Functions

bool symbol_module_is_project (const char *module_name)
 Check whether a module belongs to ascii-chat.
asciichat_error_t symbol_format_source_path (const char *module_name, const char *source_path, char *output, size_t output_size, bool *external, const char *const *owned_dirs)
 Format a source path for a symbolized frame.
asciichat_error_t symbol_cache_init (void)
 Initialize the symbol cache.
void symbol_cache_destroy (void)
 Clean up the symbol cache and free all resources.
const char * symbol_cache_lookup (void *addr)
 Look up a symbol for a given address.
bool symbol_cache_insert (void *addr, const char *symbol)
 Insert a symbol into the cache.
void symbol_cache_get_stats (uint64_t *hits_out, uint64_t *misses_out, size_t *entries_out)
 Get cache statistics.
void symbol_cache_print_stats (void)
 Print cache statistics to logging system.
char ** symbol_cache_resolve_batch (void *const *buffer, int size, const char *const *owned_dirs)
 Resolve multiple addresses using addr2line and cache results.
void symbol_cache_free_symbols (char **symbols)
 Free symbol array returned by symbol_cache_resolve_batch.