FinalKernelFrame returns the final kernel space frame.
()
| 253 | |
| 254 | // FinalKernelFrame returns the final kernel space frame. |
| 255 | func (s *Callstack) FinalKernelFrame() *Frame { |
| 256 | if s.IsEmpty() { |
| 257 | return nil |
| 258 | } |
| 259 | return &(*s)[s.Depth()-1] |
| 260 | } |
| 261 | |
| 262 | // Summary returns a sequence of non-repeated module names. |
| 263 | func (s Callstack) Summary() string { |