-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Add NetBSD support in htop(1) #603
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your implementation to support NetBSD natively for htop.
As there's one bigger change upcoming that affects all current platforms (and thus also all upcoming ones, I took the liberty to remark on the locations where this potentially requires changes to your PR.
@BenBE Thank you for going through the code and giving a detailed feedback, let me go through each of them and try to resolve it. |
@fraggerfox Another point that came up in discussions in the team was the issue of long-term support of the platform. Would you be willing to help mid-/long-term to keep the NetBSD port up-to-date and aid in debugging issues specific to this platform? Or do you know someone who would be willing to take up on this task? |
Yes, I do not mind putting in my time mid-/long-term to support the NetBSD port. Hopefully, I should have more time to commit to maintenance in the coming months. In case of issues / interruptions I can notify the team ahead of time. |
In general I think there's lots of interest in this, and I'm also able to help. We're also in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM.
39136a8
to
7509af3
Compare
ababf2e
to
1ef5706
Compare
1ef5706
to
237e66c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some details still need refinement.
Also may benefit to include ELAPSED
column from #627.
Furthermore PROC_EXE
(via KERN_PROC_PATHNAME
) and CWD
(via KERN_PROC_CWD
) might be nice to have.
adf13a2
to
7c696fe
Compare
9d2d8ac
to
f87c071
Compare
Refer to htop-dev#388 PR for more details.
Additional details regarding ELAPSED column can be found in htop-dev#627.
@fraggerfox Did some commit mashing ;-) No functional changes. |
Looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Source-wise it LGTM. Haven't tested to run this though.
fraggerfox asked me to test his code, but unfortunately htop fails to configure with NetBSD libcurses.
this should be unnecessary, as NetBSD libcurses should be good enough. so, I re-ran configure with after this it appears to work fine, although the output is still less useful than |
Looking through
This looks like when reading the memory stats some details are still missing. Actually there's a second open point (regarding shared memory) … @Niacat Could you have a look at that?
Can you see if the check for kernel threads in |
@Niacat When running the build via the
Regarding the memory usage I mostly referred to For the kernel threads, yes I agree, it pretty much does what the current |
We should probably get this merged and improve things further later. In particular getting it to build with X/Open Curses seems difficult - it is peeking into ncurses-specific structs. |
Could you open issues for the remaining items on your list? What I see is:
|
Avoids issue htop-dev#661.
I opened a couple more tickets for the issues raised.
|
This implementation makes NetBSD use htop(1) without the need of mount_procfs(8).
The implementation has been copied over and modified from the OpenBSD implementation in htop(1).
Make NetBSD no longer masquerade as Linux.