diff options
| author | Rhys Hiltner <rhys@justin.tv> | 2021-08-13 08:51:46 -0700 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2021-09-27 18:58:20 +0000 |
| commit | f9e90f7e7401b7222ea10420140dc43687e4017f (patch) | |
| tree | e51340bd926fdcab69e2e966646815d40001bf55 /src/runtime/os_aix.go | |
| parent | 3d795ea798edf0f9da4d2e33e15a58e59aa42e83 (diff) | |
| download | go-f9e90f7e7401b7222ea10420140dc43687e4017f.tar.xz | |
runtime: allow per-OS changes to unix profiler
Updates #35057
Change-Id: I56ea8f4750022847f0866c85e237a2cea40e0ff7
Reviewed-on: https://go-review.googlesource.com/c/go/+/342053
Run-TryBot: Rhys Hiltner <rhys@justin.tv>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/os_aix.go')
| -rw-r--r-- | src/runtime/os_aix.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/os_aix.go b/src/runtime/os_aix.go index 478dde2fc3..54e0cfbb8d 100644 --- a/src/runtime/os_aix.go +++ b/src/runtime/os_aix.go @@ -323,6 +323,19 @@ func sigdelset(mask *sigset, i int) { (*mask)[(i-1)/64] &^= 1 << ((uint32(i) - 1) & 63) } +func setProcessCPUProfiler(hz int32) { + setProcessCPUProfilerTimer(hz) +} + +func setThreadCPUProfiler(hz int32) { + setThreadCPUProfilerHz(hz) +} + +//go:nosplit +func validSIGPROF(mp *m, c *sigctxt) bool { + return true +} + const ( _CLOCK_REALTIME = 9 _CLOCK_MONOTONIC = 10 |
