diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-01-03 18:41:44 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-01-10 12:06:51 +0000 |
| commit | b8b0c9f7d8f02415beab09246ddf66b021dfdc06 (patch) | |
| tree | e0d52eaa420ab82c4300f34eede999a9415cfbdc /vm/vmimpl | |
| parent | 22263b07f5df14a974bcb00d286ab178891c0891 (diff) | |
syz-fuzzer: export pprof endpoints
This will let us have a better understanding of what's going on inside a
fuzzed VM.
Diffstat (limited to 'vm/vmimpl')
| -rw-r--r-- | vm/vmimpl/vmimpl.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go index 0a4ada028..8b63ca77e 100644 --- a/vm/vmimpl/vmimpl.go +++ b/vm/vmimpl/vmimpl.go @@ -186,6 +186,9 @@ func Multiplex(cmd *exec.Cmd, merger *OutputMerger, console io.Closer, timeout t return merger.Output, errc, nil } +// On VMs, pprof will be listening to this port. +const PprofPort = 6060 + func RandomPort() int { n, err := rand.Int(rand.Reader, big.NewInt(64<<10-1<<10)) if err != nil { |
