Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Disassemble (0.16 sec)

  1. src/cmd/pprof/pprof_test.go

    		t.Skipf("skipping on %s, issue 15255", runtime.GOARCH)
    	}
    
    	// pprof can only disassemble PIE on some platforms.
    	// Skip the ones it can't handle yet.
    	if runtime.GOOS == "android" && runtime.GOARCH == "arm" {
    		t.Skipf("skipping on %s/%s, issue 46639", runtime.GOOS, runtime.GOARCH)
    	}
    }
    
    // TestDisasm verifies that cmd/pprof can successfully disassemble functions.
    //
    // This is a regression test for issue 46636.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/objdump/main.go

    		log.Fatal(err)
    	}
    	defer f.Close()
    
    	dis, err := f.Disasm()
    	if err != nil {
    		log.Fatalf("disassemble %s: %v", flag.Arg(0), err)
    	}
    
    	switch flag.NArg() {
    	default:
    		usage()
    	case 1:
    		// disassembly of entire object
    		dis.Print(os.Stdout, symRE, 0, ^uint64(0), *printCode, *gnuAsm)
    
    	case 3:
    		// disassembly of PC range
    		start, err := strconv.ParseUint(strings.TrimPrefix(flag.Arg(1), "0x"), 16, 64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/binutils/disasm.go

    				return []string{demangled}
    			}
    		}
    	}
    	return nil
    }
    
    // disassemble parses the output of the objdump command and returns
    // the assembly instructions in a slice.
    func disassemble(asm []byte) ([]plugin.Inst, error) {
    	buf := bytes.NewBuffer(asm)
    	function, file, line := "", "", 0
    	var assembly []plugin.Inst
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. src/runtime/unsafepoint_test.go

    	}
    
    	// Get a reference we can use to ask the runtime about
    	// which of its instructions are unsafe preemption points.
    	f := runtime.FuncForPC(reflect.ValueOf(setGlobalPointer).Pointer())
    
    	// Disassemble the test function.
    	// Note that normally "go test runtime" would strip symbols
    	// and prevent this step from working. So there's a hack in
    	// cmd/go/internal/test that exempts runtime tests from
    	// symbol stripping.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 20:24:56 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/html/header.html

          <a title="{{.Help.peek}}" href="./peek" id="peek">Peek</a>
          <a title="{{.Help.list}}" href="./source" id="list">Source</a>
          <a title="{{.Help.disasm}}" href="./disasm" id="disasm">Disassemble</a>
        </div>
      </div>
    
      {{$sampleLen := len .SampleTypes}}
      {{if gt $sampleLen 1}}
      <div id="sample" class="menu-item">
        <div class="menu-name">
          Sample
          <i class="downArrow"></i>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    	b := bu.get()
    	if !b.objdumpFound {
    		return nil, errors.New("cannot disasm: no objdump tool available")
    	}
    	args := []string{"--disassemble", "--demangle", "--no-show-raw-insn",
    		"--line-numbers", fmt.Sprintf("--start-address=%#x", start),
    		fmt.Sprintf("--stop-address=%#x", end)}
    
    	if intelSyntax {
    		if b.isLLVMObjdump {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/amd64/versions_test.go

    // faulting instructions.
    func clobber(t *testing.T, src string, dst *os.File, opcodes map[string]bool) {
    	// Run objdump to get disassembly.
    	var re *regexp.Regexp
    	var disasm io.Reader
    	if false {
    		// TODO: go tool objdump doesn't disassemble the bmi1 instructions
    		// in question correctly. See issue 48584.
    		cmd := testenv.Command(t, "go", "tool", "objdump", src)
    		var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    	}
    }
    
    func (sp *sourcePrinter) expandAddresses(rpt *Report, addrs map[uint64]addrInfo, flat map[uint64]int64) {
    	// We found interesting addresses (ones with non-zero samples) above.
    	// Get covering address ranges and disassemble the ranges.
    	ranges, unprocessed := sp.splitIntoRanges(rpt.prof, addrs, flat)
    	sp.handleUnprocessed(addrs, unprocessed)
    
    	// Trim ranges if there are too many.
    	const maxRanges = 25
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  9. src/cmd/internal/objfile/disasm.go

    		return nil, nil
    	}
    
    	return cf.Lines[line-1], nil
    }
    
    // Print prints a disassembly of the file to w.
    // If filter is non-nil, the disassembly only includes functions with names matching filter.
    // If printCode is true, the disassembly includs corresponding source lines.
    // The disassembly only includes functions that overlap the range [start, end).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  10. src/cmd/objdump/objdump_test.go

    	for _, s := range need {
    		if !strings.Contains(text, s) {
    			t.Errorf("disassembly missing '%s'", s)
    			ok = false
    		}
    	}
    	if goarch == "386" {
    		if strings.Contains(text, "(IP)") {
    			t.Errorf("disassembly contains PC-Relative addressing on 386")
    			ok = false
    		}
    	}
    
    	if !ok || testing.Verbose() {
    		t.Logf("full disassembly:\n%s", text)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top