commit | 739734461d1c916b6c72a63d7efda2b27edb369f | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Fri Jul 07 13:51:12 2017 +0200 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Fri Jul 07 16:14:08 2017 +0000 |
tree | 4ebea5ccf0a3fd49bc039414aa10f88ff78b1e46 | |
parent | 6faef541c73732f438fb660a212750a9ba9f9362 [diff] |
unix: add perf event ioctl constants on Linux Add the PERF_EVENT_IOC_* constants on Linux which are used to enable/disable/configure perf events. Also add the PERF_IOC_FLAG_GROUP constant which might be using as part of the ioct argument. See section "perf_event ioctl calls" in http://man7.org/linux/man-pages/man2/perf_event_open.2.html Change-Id: I92fb8f6ef5cc53711f00db566d8e277cdf1cd607 Reviewed-on: https://go-review.googlesource.com/47770 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>