Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process information not reported for FreeBSD ARM64 #1533

Closed
1 task done
sdalu opened this issue Oct 2, 2023 · 2 comments · Fixed by #1609
Closed
1 task done

Process information not reported for FreeBSD ARM64 #1533

sdalu opened this issue Oct 2, 2023 · 2 comments · Fixed by #1609

Comments

@sdalu
Copy link

sdalu commented Oct 2, 2023

Describe the bug
Missing (nil) processes information reported on FreeBSD ARM64 system (RPI4)

To Reproduce

package main

import (
	"fmt"
	"os"

	"github.com/shirou/gopsutil/process"
)

func main() {
	currentPid := os.Getpid()
	myself, err := process.NewProcess(int32(currentPid))
	if err != nil {
		panic(err)
	}
	fmt.Println(myself.Name())
	fmt.Println(myself.String())
	fmt.Println(myself.NumThreads())
	fmt.Println(myself.RlimitUsage(true))
	fmt.Println(myself.Status())
}

Obtained results

 <nil>
{"pid":96242}
0 <nil>
[] not implemented yet
 <nil>

Expected behavior
non nil information

Environment (please complete the following information):

  • FreeBSD: [paste the result of freebsd-version -k -r -u and uname -a]
    13.2-RELEASE-p2
    13.2-RELEASE-p2
    13.2-RELEASE-p2
    FreeBSD brain.home.sdalu.com 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 releng/13.2-n254627-4341433a673f GENERIC arm64

Additional context
Initially reported in influxdata/telegraf#13933

@danawoodman
Copy link

We're also facing this issue on a Pi 4 device, is there a know workaround available?

@shirou
Copy link
Owner

shirou commented Mar 12, 2024

@sdalu @danawoodman I have opened #1609 which re-generate struct definition. Could you try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants