Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for elfgobuildid (0.1 sec)

  1. src/runtime/pprof/elf.go

    )
    
    var (
    	errBadELF    = errors.New("malformed ELF binary")
    	errNoBuildID = errors.New("no NT_GNU_BUILD_ID found in ELF binary")
    )
    
    // elfBuildID returns the GNU build ID of the named ELF binary,
    // without introducing a dependency on debug/elf and its dependencies.
    func elfBuildID(file string) (string, error) {
    	buf := make([]byte, 256)
    	f, err := os.Open(file)
    	if err != nil {
    		return "", err
    	}
    	defer f.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 01:09:18 UTC 2017
    - 2.8K bytes
    - Viewed (0)
Back to top