ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
symbols.h
Go to the documentation of this file.
1
78#pragma once
79
80#include <stdint.h>
81#include <stddef.h>
82#include <stdbool.h>
83
84#include "../common.h"
85
86/* ============================================================================
87 * Symbol Cache Lifecycle
88 * @{
89 */
90
105
118void symbol_cache_cleanup(void);
119
122/* ============================================================================
123 * Symbol Cache Operations
124 * @{
125 */
126
146const char *symbol_cache_lookup(void *addr);
147
166bool symbol_cache_insert(void *addr, const char *symbol);
167
170/* ============================================================================
171 * Symbol Cache Statistics
172 * @{
173 */
174
189void symbol_cache_get_stats(uint64_t *hits_out, uint64_t *misses_out, size_t *entries_out);
190
202void symbol_cache_print_stats(void);
203
206/* ============================================================================
207 * Batch Symbol Resolution
208 * @{
209 */
210
241char **symbol_cache_resolve_batch(void *const *buffer, int size);
242
256void symbol_cache_free_symbols(char **symbols);
257
unsigned long long uint64_t
Definition common.h:59
asciichat_error_t
Error and exit codes - unified status values (0-255)
Definition error_codes.h:46
void symbol_cache_cleanup(void)
Clean up the symbol cache and free all resources.
Definition symbols.c:419
void symbol_cache_get_stats(uint64_t *hits_out, uint64_t *misses_out, size_t *entries_out)
Get cache statistics.
Definition symbols.c:540
bool symbol_cache_insert(void *addr, const char *symbol)
Insert a symbol into the cache.
Definition symbols.c:482
void symbol_cache_print_stats(void)
Print cache statistics to logging system.
Definition symbols.c:554
char ** symbol_cache_resolve_batch(void *const *buffer, int size)
Resolve multiple addresses using addr2line and cache results.
Definition symbols.c:1052
const char * symbol_cache_lookup(void *addr)
Look up a symbol for a given address.
Definition symbols.c:460
asciichat_error_t symbol_cache_init(void)
Initialize the symbol cache.
Definition symbols.c:391
void symbol_cache_free_symbols(char **symbols)
Free symbol array returned by symbol_cache_resolve_batch.
Definition symbols.c:1173