How to Install and Uninstall golang-github-hodgesds-perf-utils-dev Package on Kali Linux

Last updated: May 19,2024

1. Install "golang-github-hodgesds-perf-utils-dev" package

Please follow the instructions below to install golang-github-hodgesds-perf-utils-dev on Kali Linux

$ sudo apt update $ sudo apt install golang-github-hodgesds-perf-utils-dev

2. Uninstall "golang-github-hodgesds-perf-utils-dev" package

This tutorial shows how to uninstall golang-github-hodgesds-perf-utils-dev on Kali Linux:

$ sudo apt remove golang-github-hodgesds-perf-utils-dev $ sudo apt autoclean && sudo apt autoremove

3. Information about the golang-github-hodgesds-perf-utils-dev package on Kali Linux

Package: golang-github-hodgesds-perf-utils-dev
Source: golang-github-hodgesds-perf-utils
Version: 0.5.1-2
Installed-Size: 194
Maintainer: Debian Go Packaging Team
Architecture: all
Depends: dh-golang, golang-github-stretchr-testify-dev (>= 1.3), golang-go.uber-multierr-dev (>= 1), golang-golang-x-sys-dev
Size: 23840
SHA256: de7aea49fa460295c594e5dc8fc9922ce5e16aa2dbdb9d6431cdea0f1c03b35b
SHA1: a19b26b05708613b38ef13f90ec6b2a9d3f6e1d9
MD5sum: 37536bfb4c1cd99a97a232023fed5197
Description: Perf Utilities for Go (library)
This package is a Go library for interacting with the perf subsystem in Linux.
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 individual goroutine. However, a few tricks can be used; first a
call to runtime.LockOSThread (https://golang.org/pkg/runtime/#LockOSThread) to
lock the current goroutine to an OS thread. Second a call to
unix.SchedSetaffinity
(https://godoc.org/golang.org/x/sys/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 the kernel guide https://perf.wiki.kernel.org/index.php/Tutorial for a
tutorial how to use perf and some of the limitations.
.
If you are looking to interact with the perf subsystem directly with
perf_event_open syscall than this library is most likely for you. A large
number of the utility methods in this package should only be used for testing
and/or debugging performance issues. This is due to the nature of the Go
runtime being extremely tricky to profile on the goroutine level, with the
exception of a long running worker goroutine locked to an OS thread.
Eventually this library could be used to implement many of the features of
perf but in pure Go. Currently this library is used in node_exporter
(https://github.com/prometheus/node_exporter) as well as perf_exporter
(https://github.com/hodgesds/perf_exporter), which is a Prometheus exporter
for perf related metrics.
Description-md5:
Multi-Arch: foreign
Homepage: https://github.com/hodgesds/perf-utils
Section: golang
Priority: optional
Filename: pool/main/g/golang-github-hodgesds-perf-utils/golang-github-hodgesds-perf-utils-dev_0.5.1-2_all.deb