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
104
asciichat_error_t
symbol_cache_init
(
void
);
105
118
void
symbol_cache_cleanup
(
void
);
119
122
/* ============================================================================
123
* Symbol Cache Operations
124
* @{
125
*/
126
146
const
char
*
symbol_cache_lookup
(
void
*addr);
147
166
bool
symbol_cache_insert
(
void
*addr,
const
char
*symbol);
167
170
/* ============================================================================
171
* Symbol Cache Statistics
172
* @{
173
*/
174
189
void
symbol_cache_get_stats
(
uint64_t
*hits_out,
uint64_t
*misses_out,
size_t
*entries_out);
190
202
void
symbol_cache_print_stats
(
void
);
203
206
/* ============================================================================
207
* Batch Symbol Resolution
208
* @{
209
*/
210
241
char
**
symbol_cache_resolve_batch
(
void
*
const
*buffer,
int
size);
242
256
void
symbol_cache_free_symbols
(
char
**symbols);
257
uint64_t
unsigned long long uint64_t
Definition
common.h:59
asciichat_error_t
asciichat_error_t
Error and exit codes - unified status values (0-255)
Definition
error_codes.h:46
symbol_cache_cleanup
void symbol_cache_cleanup(void)
Clean up the symbol cache and free all resources.
Definition
symbols.c:419
symbol_cache_get_stats
void symbol_cache_get_stats(uint64_t *hits_out, uint64_t *misses_out, size_t *entries_out)
Get cache statistics.
Definition
symbols.c:540
symbol_cache_insert
bool symbol_cache_insert(void *addr, const char *symbol)
Insert a symbol into the cache.
Definition
symbols.c:482
symbol_cache_print_stats
void symbol_cache_print_stats(void)
Print cache statistics to logging system.
Definition
symbols.c:554
symbol_cache_resolve_batch
char ** symbol_cache_resolve_batch(void *const *buffer, int size)
Resolve multiple addresses using addr2line and cache results.
Definition
symbols.c:1052
symbol_cache_lookup
const char * symbol_cache_lookup(void *addr)
Look up a symbol for a given address.
Definition
symbols.c:460
symbol_cache_init
asciichat_error_t symbol_cache_init(void)
Initialize the symbol cache.
Definition
symbols.c:391
symbol_cache_free_symbols
void symbol_cache_free_symbols(char **symbols)
Free symbol array returned by symbol_cache_resolve_batch.
Definition
symbols.c:1173
stdbool.h
lib
platform
symbols.h
Generated by
1.9.8