You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/siebenmann/go-kstat

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/siebenmann/go-kstat

v0.0.0-20210513183136-173c9b0a9973
Source
Go
Version published
Created
Source

Go-kstat provides a Go API for the kstat kernel statistics system on Solaris, Illumos, OmniOS, and other Solaris derived systems. For general information on kstats, see the kstat(1) and kstat(3kstat) manpages. For more documentation on the details of the package, see doc.go, kstat_solaris.go, types_solaris_amd64.go, and raw_solaris.go.

The API supports access to 'named' kstat statistics, IO statistics, and the most common and useful sorts of 'raw' kstat statistics (unix:0:sysinfo, unix:0:vminfo, unix:0:var, and mnt:*:mntinfo). Other raw kstat statistics are not explicitly supported, but the API provides some escape hatches for access to custom raw statistics.

This is a cgo-based package so it can't be cross compiled like a regular Go package. It may also have bugs with memory management, since it interacts with the Solaris kstat library and holds references to memory that's been dynamically allocated in C.

See kstat-godoc.txt for a text dump of the full godoc for the package. Unfortunately Go tool limitations appear to make it impossible to see full package documentation on anything except a Solaris machine (including https://godoc.org/, sadly).

Bug reports and other contributions are highly welcome.

Original Author:

Chris Siebenmann https://github.com/siebenmann/go-kstat https://utcc.utoronto.ca/~cks/space/blog/

(and elsewhere)

Copyright: BSD-3-Clause, see LICENSE (This is the copyright used by Go and projects copying its license.)

FAQs

Package last updated on 13 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.