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

android: add SUPPORTS_PTHREAD_GETNAME_NP definition #12011

Conversation

buildbreaker
Copy link

@buildbreaker buildbreaker commented Jul 9, 2020

Mirroring the PR: #11863

pthread_getname_np is introduced in Android API 26

Introduced here: #11440

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Commit Message: android: add SUPPORTS_PTHREAD_GETNAME_NP definition
Additional Description:
Risk Level: low
Testing: ci
Docs Changes: n/a
Release Notes: n/a
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
Alan Chiu added 2 commits July 9, 2020 14:25
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
goaway
goaway previously approved these changes Jul 9, 2020
@goaway
Copy link
Contributor

goaway commented Jul 9, 2020

@jmarantz think you made the original change, if you don't mind taking a look.

Signed-off-by: Alan Chiu <achiu@lyft.com>
@@ -235,3 +235,15 @@ struct mmsghdr {
unsigned int msg_len;
};
#endif

#ifdef __linux__
#define SUPPORTS_PTHREAD_GETNAME_NP
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest defining it to 1 or 0, rather than defining/not-defining it. That would make it less cumbersome to use in logical expressions at call-sites.

I think that's more consistent with other similar definitions in this file.

@@ -617,6 +617,7 @@ getaddrinfo
getaffinity
gethostname
getifaddrs
getname
Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like this is not needed; maybe it was in an intermediate state of this PR?

If I'm wrong go ahead an put it back.

Copy link
Author

Choose a reason for hiding this comment

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

It's complaining for the comment I wrote which uses pthread_getname_np

Copy link
Contributor

Choose a reason for hiding this comment

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

pretty sure you can wrap the word in back ticks (maybe double back ticks?) to avoid the spell checker, i think thats the preferred way to handle these special words

jmarantz
jmarantz previously approved these changes Jul 10, 2020
Copy link
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

Looks fine generally, except for nits.
@envoyproxy/senior-maintainers

Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
@buildbreaker
Copy link
Author

@jmarantz Thanks for reviewing! I updated the PR with your feedback

Signed-off-by: Alan Chiu <achiu@lyft.com>
jmarantz
jmarantz previously approved these changes Jul 10, 2020
Copy link
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

@envoyproxy/senior-maintainers

snowp
snowp previously requested changes Jul 10, 2020
Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good just one comment on the spelling stuff

@@ -617,6 +617,7 @@ getaddrinfo
getaffinity
gethostname
getifaddrs
getname
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty sure you can wrap the word in back ticks (maybe double back ticks?) to avoid the spell checker, i think thats the preferred way to handle these special words

Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: Alan Chiu <achiu@lyft.com>
jmarantz
jmarantz previously approved these changes Jul 10, 2020
@jmarantz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@buildbreaker
Copy link
Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 12011 in repo envoyproxy/envoy

@jmarantz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…-supports_pthread_getname_np-definition

Signed-off-by: Alan Chiu <achiu@lyft.com>
@junr03
Copy link
Member

junr03 commented Jul 14, 2020

/azp run

@azure-pipelines
Copy link

Pull request contains merge conflicts.

…-supports_pthread_getname_np-definition

Signed-off-by: Alan Chiu <achiu@lyft.com>
@buildbreaker
Copy link
Author

@jmarantz Thank you for the approval again!

@junr03
Copy link
Member

junr03 commented Jul 14, 2020

The build is failing for known issues outside of this PR: #12067 and #12071. I'll merge this

@mattklein123 mattklein123 merged commit d27fd11 into envoyproxy:master Jul 14, 2020
@buildbreaker
Copy link
Author

thank you @junr03 @mattklein123 !

@buildbreaker buildbreaker deleted the add-supports_pthread_getname_np-definition branch July 14, 2020 17:00
scheler pushed a commit to scheler/envoy that referenced this pull request Aug 4, 2020
Signed-off-by: Alan Chiu <achiu@lyft.com>
Signed-off-by: scheler <santosh.cheler@appdynamics.com>
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 this pull request may close these issues.

7 participants