| 42 | } |
| 43 | |
| 44 | VAddr resolve_kernel_sym(const Engine& eng, const char* name) { |
| 45 | if (auto* s = eng.isf().find_symbol(name)) return s->address; // KASLR-resilient |
| 46 | const auto& ks = eng.kallsyms(); |
| 47 | if (ks.ok) for (const auto& s : ks.symbols) if (s.name == name) return s.address; |
| 48 | return 0; |
| 49 | } |
| 50 | |
| 51 | // Wall-clock seconds at boot (UTC), or 0 if not derivable. With it we can |
| 52 | // convert every boot-relative event (process starts, dmesg, eBPF) to absolute |
no test coverage detected