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

Function resolve_tp_func_offset_func

src/os/linux/tracepoints.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool resolve_tp_func_offset_func(const IsfSymbols& isf, u64& off_func) {
60 try {
61 off_func = isf.field_offset("tracepoint_func", "func");
62 return true;
63 } catch (...) {
64 off_func = 0;
65 return false; // tracepoint_func.func IS at offset 0
66 }
67}
68
69} // anonymous
70

Callers 1

Calls 1

field_offsetMethod · 0.80

Tested by

no test coverage detected