Channel circle › core 14 Debug
14 Debug: core-level functions
The functions that make up the core channel itself.
67 functions
| Signature | Purpose | Source | Scope |
|---|---|---|---|
| static int DbgOp(struct DebugChannel *c, uint32_t op, uint32_t a, uint64_t b) | (no comment) | DebugChannel.c:11 | static |
| static void DbgRd(struct DebugChannel *c, uint32_t *m, uint32_t *a, uint64_t *b) | (no comment) | DebugChannel.c:23 | static |
| struct DebugChannel * OpenDebugChannel(void) | (no comment) | DebugChannel.c:31 | public |
| void CloseDebugChannel(struct DebugChannel *c) | (no comment) | DebugChannel.c:39 | public |
| int main() | (no comment) | DebuggerChannel.c:5 | public |
| static const struct GuruCodeInfo * CodeInfo(uint32_t code) | (no comment) | GuruChannel.c:93 | static |
| const char * GuruCodeName(uint32_t code) | (no comment) | GuruChannel.c:101 | public |
| const char * GuruCodeText(uint32_t code) | (no comment) | GuruChannel.c:107 | public |
| static uint32_t CodeForSignal(int sig) | (no comment) | GuruChannel.c:204 | static |
| static void GuruTrapNow(uint32_t code, uint32_t aux, int sig) | (no comment) | GuruChannel.c:216 | static |
| static void GuruOnSignal(int sig, siginfo_t *si, void *uc) | (no comment) | GuruChannel.c:226 | static |
| static void GuruOnAbortSignal(int sig, siginfo_t *si, void *uc) | Forced abort: only acts while the Guru has switched g_abort_on on and the target thread is inside GuruRunUser. In a critical section the abort is | GuruChannel.c:242 | static |
| static void GuruOnSignal(int sig) | (no comment) | GuruChannel.c:252 | static |
| static void GuruArmThread(void) | UCRT keeps the SIGSEGV/SIGFPE/SIGILL handler table PER THREAD: a new thread starts with SIG_DFL and the signal() calls in GuruInit only armed the thread | GuruChannel.c:267 | static |
| static void GuruCritHook(void) | Runs from MemoryCritLeave (normal context) when an abort was deferred. | GuruChannel.c:278 | static |
| int GuruInit(void) | (no comment) | GuruChannel.c:284 | public |
| void GuruShutdown(void) | (no comment) | GuruChannel.c:325 | public |
| int GuruAddKillHook(const char *name, uint32_t (*fn)(void *, uint32_t), void *arg) | (no comment) | GuruChannel.c:353 | public |
| void GuruRemoveKillHook(uint32_t (*fn)(void *, uint32_t), void *arg) | (no comment) | GuruChannel.c:371 | public |
| void GuruSetMainHooks(void (*kill_main)(void *), int (*start_main)(void *), void *arg) | (no comment) | GuruChannel.c:384 | public |
| void GuruSetPresenter(void (*present)(const struct GuruReport *, const char *)) | (no comment) | GuruChannel.c:394 | public |
| void GuruSetStopTimeoutMs(uint32_t ms) | (no comment) | GuruChannel.c:402 | public |
| void GuruSetAudio(int on) | (no comment) | GuruChannel.c:410 | public |
| static int FormatReport(const struct GuruReport *r, char *out, size_t outsz) | lock held or private copy | GuruChannel.c:420 | static |
| int GuruFormatText(char *out, size_t outsz) | (no comment) | GuruChannel.c:460 | public |
| static void DefaultPresent(const struct GuruReport *r, const char *text) | (no comment) | GuruChannel.c:470 | static |
| int GuruMarchNoteCount(void) | (no comment) | GuruChannel.c:507 | public |
| int GuruMarchNote(int index, uint32_t *hz, uint32_t *ms) | (no comment) | GuruChannel.c:509 | public |
| uint32_t GuruMarchTotalMs(void) | (no comment) | GuruChannel.c:517 | public |
| size_t GuruMarchRender(int16_t *out, size_t max_samples, uint32_t rate) | Square wave, 20 ms attack, 120 ms release (so repeated notes are separate). | GuruChannel.c:526 | public |
| static void MarchCloseAudioLocked(void) | (no comment) | GuruChannel.c:561 | static |
| static void MarchOpenAudioLocked(void) | (no comment) | GuruChannel.c:570 | static |
| void GuruMarchStart(void) | (no comment) | GuruChannel.c:594 | public |
| static void MarchStopImpl(void) | (no comment) | GuruChannel.c:608 | static |
| void GuruMarchStop(void) | (no comment) | GuruChannel.c:618 | public |
| int GuruMarchState(void) | (no comment) | GuruChannel.c:624 | public |
| int GuruMarchAudioOpen(void) | (no comment) | GuruChannel.c:640 | public |
| static void MarchReset(void) | (no comment) | GuruChannel.c:652 | static |
| static int UtRegister(void) | g_lock held. | GuruChannel.c:666 | static |
| static void ForceAbortUsers(uint32_t self_users) | Signal every registered User thread except the caller, until none is left or the grace time is over. Returns after the last attempt. | GuruChannel.c:677 | static |
| static void UserThreadName(char *out, size_t outsz, const char *name) | (no comment) | GuruChannel.c:701 | static |
| static void GuruExecute(uint32_t code, uint32_t aux, uint32_t signo, const char *thread_name, const char *detail, int unused_flag) | Runs in a normal (non-signal) context, after any longjmp. | GuruChannel.c:707 | static |
| int GuruThreadIsUser(void) | (no comment) | GuruChannel.c:814 | public |
| int GuruUserStopRequested(void) | (no comment) | GuruChannel.c:819 | public |
| int GuruUserThreadCount(void) | (no comment) | GuruChannel.c:824 | public |
| static int RunUser(const char *name, void (*fn)(void *), void *arg, int keep_owner) | (no comment) | GuruChannel.c:834 | static |
| int GuruRunUser(const char *name, void (*fn)(void *), void *arg) | (no comment) | GuruChannel.c:922 | public |
| int GuruRunUserKeepOwner(const char *name, void (*fn)(void *), void *arg) | (no comment) | GuruChannel.c:927 | public |
| void Guru(uint32_t code, uint32_t aux, const char *detail) | (no comment) | GuruChannel.c:932 | public |
| int GuruState(void) | (no comment) | GuruChannel.c:948 | public |
| int GuruGetReport(struct GuruReport *out) | (no comment) | GuruChannel.c:958 | public |
| int GuruGetBox(int *x, int *y, int *w, int *h) | (no comment) | GuruChannel.c:968 | public |
| static int WrapText(const char *text, char lines[][GURU_COLS + 1], int max_lines) | Word-wrap text into lines[][GURU_COLS+1]; returns the line count. | GuruChannel.c:986 | static |
| int GuruDrawSDL(struct SDL_Renderer *r, int win_w, int win_h) | (no comment) | GuruChannel.c:1013 | public |
| void GuruDismiss(void) | (no comment) | GuruChannel.c:1059 | public |
| int GuruWindowClick(int x, int y) | (no comment) | GuruChannel.c:1096 | public |
| void GuruReset(void) | (no comment) | GuruChannel.c:1110 | public |
| void GuruMarkHealthy(void) | (no comment) | GuruChannel.c:1126 | public |
| void GuruSetUserEntry(const char *name, void (*fn)(void *), void *arg, int flags) | ---- supervised User entry ---- | GuruChannel.c:1136 | public |
| int GuruStartUser(void) | (no comment) | GuruChannel.c:1149 | public |
| void GuruHealthTick(uint64_t now_ms) | (no comment) | GuruChannel.c:1177 | public |
| int GuruFailureCount(void) | (no comment) | GuruChannel.c:1189 | public |
| int GuruRestartCount(void) | (no comment) | GuruChannel.c:1199 | public |
| static int GuruOp(struct GuruChannel *c, uint32_t op, uint32_t a, uint64_t b) | (no comment) | GuruChannelIO.c:13 | static |
| static void GuruRd(struct GuruChannel *c, uint32_t *m, uint32_t *a, uint64_t *b) | (no comment) | GuruChannelIO.c:19 | static |
| struct GuruChannel * OpenGuruChannel(void) | (no comment) | GuruChannelIO.c:28 | public |
| void CloseGuruChannel(struct GuruChannel *c) | (no comment) | GuruChannelIO.c:37 | public |