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

SunOS process and thread support #105403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

SunOS process and thread support #105403

wants to merge 1 commit into from

Conversation

gwr
Copy link
Contributor

@gwr gwr commented Jul 24, 2024

Read binary psinfo for System.Diagnostic.Process on SunOS (Solaris or illumos).
No failures in System.Diagnostic.Process.Tests (but lots of skip)

BTW, I tried rebasing on main from Mon. this week and ran into problems downloading stuff.
Not sure why, but it didn't seem to have anything to do with my changes.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 24, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.

@am11
Copy link
Member

am11 commented Jul 24, 2024

Lets drop the changes which are already submitted in other PRs.

@am11
Copy link
Member

am11 commented Jul 24, 2024

Good start! I've left initial feedback, which I anticipate the maintainers will point out. :)

@am11 am11 added the os-SunOS SunOS, currently not officially supported label Jul 24, 2024
@gwr
Copy link
Contributor Author

gwr commented Jul 24, 2024

Good start! I've left initial feedback, which I anticipate the maintainers will point out. :)

Thanks. I had not yet seen #105207 when I opened this. I think @AustinWise and I should figure out how to get the prerequisite fixes shown there (and here) all integrated, and then I'll rebase the last parts of this onto that.

@gwr
Copy link
Contributor Author

gwr commented Jul 24, 2024

Lets drop the changes which are already submitted in other PRs.

I'd love to, but I do not see a way to do "stacked" PRs, where one PR targets the branch of another PR.
If I drop the prerequisite changes then things break. Suggestions welcome.

@am11
Copy link
Member

am11 commented Jul 24, 2024

Create a local branch feature/illumos-port with all the miscellaneous changes. Then keep this branch only for System.Diagnostics.Port changes. You can git cherry-pick <spaces-separated commit hashes> across the branches.

Copy link
Contributor

@AustinWise AustinWise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C# for reading from procfs and enumerating threads/processes looks good to me.

@gwr
Copy link
Contributor Author

gwr commented Aug 18, 2024

Rebased and squashed

@am11
Copy link
Member

am11 commented Aug 22, 2024

Looks good to me. Thanks for this @gwr! This is one major step to complete the shared framework on illumos-x64 and enabling msbuild/sdk. 👍

@adamsitnik, @jkotas, PTAL.

@am11
Copy link
Member

am11 commented Aug 22, 2024

@gwr fyi, we are not required to rebase for every commit merging in main branch. It's rather a busy repo so GH will likely always show you that your branch is behind by X number of commits. The maintainers can do the rebase if deemed necessary.

Read binary psinfo for System.Diagnostic.Process on SunOS

Thanks for initial prototype help from:
Austin Wise <[email protected]>

Add Try prefix to SunOS Interop functions
Get rid of unsafe for procfs get methods
@gwr
Copy link
Contributor Author

gwr commented Aug 22, 2024

Updated to fix a comment (nit)

@gwr
Copy link
Contributor Author

gwr commented Aug 22, 2024

@gwr fyi, we are not required to rebase for every commit merging in main branch. It's rather a busy repo so GH will likely always show you that your branch is behind by X number of commits. The maintainers can do the rebase if deemed necessary.

OK, thanks. Won't do it too often.

@gwr
Copy link
Contributor Author

gwr commented Aug 22, 2024

Here too; Can anyone tell me what to do about the runtime checks that reported failure?

@jkotas
Copy link
Member

jkotas commented Aug 22, 2024

Can anyone tell me what to do about the runtime checks that reported failure?

Don't worry about them. They are not related to your change.

@gwr
Copy link
Contributor Author

gwr commented Aug 28, 2024

nudge 2

@gwr
Copy link
Contributor Author

gwr commented Sep 12, 2024

nudge 3

@adamsitnik
Copy link
Member

Please excuse me for lack of response, I am busy fixing some last minute bugs for .NET 9. I should be less busy after the RC2 branch snap next week and I hope to be able to review it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Diagnostics.Process community-contribution Indicates that the PR has been added by a community member os-SunOS SunOS, currently not officially supported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants