Skip to content

Commit 5cd6ab5

Browse files
Vladimir Stefanovicbradfitz
Vladimir Stefanovic
authored andcommitted
runtime/pprof/internal/protopprof: fix TestTranslateCPUProfileWithSamples test for mips
Change-Id: I01168a7530e18dd1098d467d0c8a330f727ba91f Reviewed-on: https://go-review.googlesource.com/33281 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 05dc6b2 commit 5cd6ab5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runtime/pprof/internal/protopprof/protopprof_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ func createProfileWithTwoSamples(t *testing.T, periodMs uintptr, count1 uintptr,
4343
// Mock the sample header produced by cpu profiler. Write a sample
4444
// period of 2000 microseconds, followed by no samples.
4545
buf := new(bytes.Buffer)
46-
words := []uint64{0, 3, 0, uint64(periodMs), 0, uint64(count1), 2,
47-
uint64(address1), uint64(address1 + 2),
48-
uint64(count2), 2, uint64(address2), uint64(address2 + 2),
49-
0, uint64(1), 0}
46+
words := []uintptr{0, 3, 0, uintptr(periodMs), 0, uintptr(count1), 2,
47+
uintptr(address1), uintptr(address1 + 2),
48+
uintptr(count2), 2, uintptr(address2), uintptr(address2 + 2),
49+
0, 1, 0}
5050
for _, n := range words {
5151
var err error
5252
switch unsafe.Sizeof(int(0)) {

0 commit comments

Comments
 (0)