github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/symbolizer/symbolizer.go (about)

     1  // Copyright 2025 syzkaller project authors. All rights reserved.
     2  // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  package symbolizer
     5  
     6  import "github.com/google/syzkaller/sys/targets"
     7  
     8  type Frame struct {
     9  	PC     uint64
    10  	Func   string
    11  	File   string
    12  	Line   int
    13  	Inline bool
    14  }
    15  
    16  type Symbolizer interface {
    17  	Symbolize(bin string, pcs ...uint64) ([]Frame, error)
    18  	Close()
    19  }
    20  
    21  func Make(target *targets.Target) Symbolizer {
    22  	return &addr2Line{target: target}
    23  }