Skip to content

Tags: DataDog/gopsutil

Tags

Verified

This tag was signed with the committer’s verified signature.
pgimalac Pierre Gimalac

Verified

This tag was signed with the committer’s verified signature.
pgimalac Pierre Gimalac

v1.2.2

Toggle v1.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #44 from DataDog/isabelle.sauve/read-version-id

Use VERSION_ID instead of VERSION field for platform version

v1.2.1

Toggle v1.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #43 from DataDog/kserrania/fix-cpu-m1

[macOS M1] Backports from upstream to fix cpu.Info() crashes

Since #40, we can build projects containing this gopsutil fork on macOS M1.

However, using cpu.Info() causes a crash: sysctl hw.cpufrequency doesn't return anything on M1, which makes the following snippet crash:

out, err = invoke.Command(sysctl, "hw.cpufrequency")
	if err != nil {
		return ret, err
	}

	values := strings.Fields(string(out))
	hz, err := strconv.ParseFloat(values[1], 64)
with an index out-of-range error.

This PR:
- backports Lomanic/gopsutil@2ec3560, which uses golang.org/x/sys/unix.Sysctl instead of manual calls to the sysctl binary, preventing the crash
- backports shirou#1192 to not make cpu.Info() return an error when the CPU frequency cannot be found, to prevent the method from erroring on M1.

v1.2.0

Toggle v1.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #40 from DataDog/paulcacheux/generate_types_darwin…

…_amd64

Generate types for darwin/arm64

1.1.0

Toggle 1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #42 from DataDog/usama.saqib/amazon-id-cleanup

when platform is detected to be 'amazon' cleanup os-release ID

v1.1.0

Toggle v1.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #42 from DataDog/usama.saqib/amazon-id-cleanup

when platform is detected to be 'amazon' cleanup os-release ID

1.0.0

Toggle 1.0.0's commit message

0.9.9

Toggle 0.9.9's commit message