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

Function Rip

pkg/util/threadcontext/context.go:91–97  ·  view source on GitHub ↗

Rip returns the address stored in the instruction pointer register.

(pid uint32, addr va.Address)

Source from the content-addressed store, hash-verified

89
90// Rip returns the address stored in the instruction pointer register.
91func Rip(pid uint32, addr va.Address) va.Address {
92 ctx := Decode(pid, addr)
93 if ctx != nil {
94 return va.Address(ctx.Rip)
95 }
96 return 0
97}
98
99// IsParamOfFunc returns true if the CONTEXT
100// structure is supplied as a single parameter

Callers 1

processCallstackMethod · 0.92

Calls 2

AddressTypeAlias · 0.92
DecodeFunction · 0.70

Tested by

no test coverage detected