commit | 2f57af4873d00d535c5c9028850aa2152e6a5566 | [log] [tgz] |
---|---|---|
author | Adam Sindelar <adamsh@google.com> | Mon Apr 09 13:02:03 2018 +0200 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Mon Apr 16 11:22:24 2018 +0000 |
tree | fd631a8eb339128605cd219f8ce69c43c02888e8 | |
parent | 2281fa97ef7b0c26324634d5a22f04babdac8713 [diff] |
unix: add wrapper around perf_event_open on Linux This adds a wrapper around perf_event_open, exported constants and two structs: - perf_event_attr, used to configure the syscall - perf_event_mmap_page to coordinate the kernel's mmap ring buffer Change-Id: Ife7ded8344de9e3eb74441bd51ab9a04c81b4965 Reviewed-on: https://go-review.googlesource.com/105756 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.