MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / resolve_kernel_sym

Function resolve_kernel_sym

src/os/linux/timeline.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44VAddr 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

Callers 1

compute_boot_epochFunction · 0.85

Calls 1

find_symbolMethod · 0.80

Tested by

no test coverage detected