Mon, 02 Feb 2026 01:17:10 CST | login

Information for build golang-github-hodgesds-perf-utils-0.7.0-2.oc9

ID36853
Package Namegolang-github-hodgesds-perf-utils
Version0.7.0
Release2.oc9
Epoch
DraftFalse
Sourcegit+https://gitee.com/opencloudos-stream/golang-github-hodgesds-perf-utils.git?.#7a1f5d2bf2fe477a2d25d2f847e0d27269f9d37d
SummaryPerf Utilities for Go
Description This package is a go library for interacting with the perf subsystem in Linux. I had trouble finding a golang perf library so I decided to write this by using the linux’s perf as a reference. This library allows you to do things like see how many CPU instructions a function takes (roughly), profile a process for various hardware events, and other interesting things. Note that because the go scheduler can schedule a goroutine across many OS threads it becomes rather difficult to get an exact profile of an invididual goroutine. However, a few tricks can be used; first a call to runtime.LockOSThread to lock the current goroutine to an OS thread. Second a call to unix.SchedSetaffinity, with a CPU set mask set. Note that if the pid argument is set 0 the calling thread is used (the thread that was just locked). Before using this library you should probably read the perf_event_open man page which this library uses heavily. See this kernel guide for a tutorial how to use perf and some of the limitations.
Built bybbrucezhang
State complete
Volume DEFAULT
StartedFri, 13 Jun 2025 01:45:48 CST
CompletedFri, 13 Jun 2025 01:52:55 CST
Taskbuild (dist-oc9-epol, /opencloudos-stream/golang-github-hodgesds-perf-utils.git:.:origin/master)
Extra{'source': {'original_url': 'git+https://gitee.com/opencloudos-stream/golang-github-hodgesds-perf-utils.git?.#origin/master'}}
Tags
epol9-test-compose
RPMs
src
golang-github-hodgesds-perf-utils-0.7.0-2.oc9.src.rpm (info) (download)
noarch
golang-github-hodgesds-perf-utils-devel-0.7.0-2.oc9.noarch.rpm (info) (download)
Logs
x86_64
mock_config.log
mock_output.log
build.log
hw_info.log
dnf.rpm.log
state.log
installed_pkgs.log
dnf.librepo.log
dnf.log
root.log
noarch_rpmdiff.json
aarch64
dnf.log
dnf.librepo.log
dnf.rpm.log
state.log
root.log
hw_info.log
mock_output.log
build.log
installed_pkgs.log
mock_config.log
noarch_rpmdiff.json
loongarch64
state.log
build.log
root.log
hw_info.log
installed_pkgs.log
mock_output.log
noarch_rpmdiff.json
Changelog * Sat Jun 07 2025 bbrucezhang <bbrucezhang@tencent.com> - 0.7.0-2 - Rebuilt for loongarch64 * Fri Sep 06 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.7.0-1 - initial build