Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-118518: Use the raw syscall directly for gettid#118592

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 1 commit intopython:mainfrompablogsal:gettid
May 5, 2024

Conversation

pablogsal
Copy link
Member

@pablogsalpablogsal commentedMay 5, 2024
edited by bedevere-appbot
Loading

@pablogsal
Copy link
MemberAuthor

!buildbot AMD64 RHEL8

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@pablogsal for commita08d6b4 🤖

The command will test the builders whose names match following regular expression:AMD64 RHEL8

The builders matched are:

  • AMD64 RHEL8 LTO PR
  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 RHEL8 FIPS No Builtin Hashes PR
  • AMD64 RHEL8 PR
  • AMD64 RHEL8 Refleaks PR
  • AMD64 RHEL8 LTO + PGO PR

@pablogsalpablogsalenabled auto-merge (squash)May 5, 2024 10:26
@pablogsalpablogsal merged commitaeb36c5 intopython:mainMay 5, 2024
@pablogsalpablogsal deleted the gettid branchMay 5, 2024 12:37
@@ -575,7 +576,7 @@ static void perf_map_jit_write_entry(void *state, const void *code_addr,
ev.base.size = sizeof(ev) + (name_length+1) + size;
ev.base.time_stamp = get_current_monotonic_ticks();
ev.process_id = getpid();
ev.thread_id =gettid();
ev.thread_id =syscall(SYS_gettid);

Choose a reason for hiding this comment

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

Perhaps it would make sense to leverage the existing thread API, e.g.PyThread_get_thread_native_id()?

Copy link
MemberAuthor

@pablogsalpablogsalMay 6, 2024
edited
Loading

Choose a reason for hiding this comment

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

I did that first but that has a check first for!initialized that callsPyThread_init_thread and that was causing problems when fork happens.

ericsnowcurrently reacted with thumbs up emoji
SonicField pushed a commit to SonicField/cpython that referenced this pull requestMay 8, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ericsnowcurrentlyericsnowcurrentlyericsnowcurrently left review comments

@brandtbucherbrandtbucherAwaiting requested review from brandtbucher

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@pablogsal@bedevere-bot@ericsnowcurrently

[8]ページ先頭

©2009-2025 Movatter.jp