Skip to content

Commit 9cce3f9

Browse files
committed
expose SymbolCache from Session interface
1 parent a70610b commit 9cce3f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ebpf/session.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ type Session interface {
6363
Update(SessionOptions) error
6464
UpdateTargets(args sd.TargetsOptions)
6565
DebugInfo() interface{}
66+
SymbolCache() *symtab.SymbolCache
6667
}
6768

6869
type SessionDebugInfo struct {
@@ -281,6 +282,10 @@ func (s *session) CollectProfiles(cb pprof.CollectProfilesCallback) error {
281282
return nil
282283
}
283284

285+
func (s *session) SymbolCache() *symtab.SymbolCache {
286+
return s.symCache
287+
}
288+
284289
func (s *session) DebugInfo() interface{} {
285290
pv, _ := os.ReadFile("/proc/version")
286291
s.mutex.Lock()

0 commit comments

Comments
 (0)