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

Method MustGetPpid

pkg/event/param.go:282–288  ·  view source on GitHub ↗

MustGetPpid returns the parent pid parameter. It panics if an error occurs while trying to get the pid parameter.

()

Source from the content-addressed store, hash-verified

280// MustGetPpid returns the parent pid parameter. It panics if
281// an error occurs while trying to get the pid parameter.
282func (pars Params) MustGetPpid() uint32 {
283 ppid, err := pars.GetPpid()
284 if err != nil {
285 panic(err)
286 }
287 return ppid
288}
289
290func (pars Params) getPid(name string) (uint32, error) {
291 par, err := pars.findParam(name)

Callers 2

StackIDMethod · 0.80
StackPIDMethod · 0.80

Calls 1

GetPpidMethod · 0.95

Tested by

no test coverage detected