MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / Protection

Method Protection

pkg/callstack/callstack.go:132–141  ·  view source on GitHub ↗

Protection resolves the memory protection of the pages within the region that contains the frame return address.

(proc windows.Handle)

Source from the content-addressed store, hash-verified

130// of the pages within the region that contains the
131// frame return address.
132func (f *Frame) Protection(proc windows.Handle) string {
133 if f.Addr.InSystemRange() {
134 return ""
135 }
136 r := va.VirtualQuery(proc, f.Addr.Uint64())
137 if r == nil {
138 return "?"
139 }
140 return r.ProtectMask()
141}
142
143// CallsiteAssembly decodes the callsite trailing/leading
144// bytes depending on the value of the `leading` argument.

Callers 2

ProtectionsMethod · 0.80
callstackMapValuerMethod · 0.80

Calls 4

VirtualQueryFunction · 0.92
InSystemRangeMethod · 0.80
Uint64Method · 0.45
ProtectMaskMethod · 0.45

Tested by

no test coverage detected