mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 09:39:58 -04:00
Take out the GPU address history of a lost device's report.
The author of the pull request it was ported from closed that request on 2026-11-11 with the words that they give no permission to use its code. The history (NX2NAVI_VA_REPORT, runtime/vk_vaddr.c, the stack walk it used and its notes in the docs and the example settings) goes; the lost device's report keeps the breadcrumbs, the pass marks, the video memory and the driver's fault information. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -1575,22 +1575,6 @@ int plat_module_of(uintptr_t addr, char *name, size_t cap, uintptr_t *base) {
|
||||
return snprintf(name, cap, "%s", n ? n + 1 : d.dli_fname) < (int)cap;
|
||||
}
|
||||
|
||||
typedef struct { uintptr_t *pc; int n, max; } StackWalk;
|
||||
|
||||
static _Unwind_Reason_Code stack_step(struct _Unwind_Context *ctx, void *p) {
|
||||
StackWalk *w = p;
|
||||
uintptr_t ip = _Unwind_GetIP(ctx);
|
||||
if (!ip || w->n == w->max) return _URC_END_OF_STACK;
|
||||
w->pc[w->n++] = ip;
|
||||
return _URC_NO_REASON;
|
||||
}
|
||||
|
||||
int plat_stack(uintptr_t *pc, int max) {
|
||||
StackWalk w = {pc, 0, max};
|
||||
_Unwind_Backtrace(stack_step, &w);
|
||||
return w.n;
|
||||
}
|
||||
|
||||
int plat_exe_path(char *out, size_t cap) {
|
||||
ssize_t n = readlink("/proc/self/exe", out, cap - 1);
|
||||
if (n <= 0 || (size_t)n >= cap - 1) return 0;
|
||||
|
||||
Reference in New Issue
Block a user