mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
gh-96143: Allow Linux perf profiler to see Python calls (GH-96123)
⚠️ ⚠️ Note for reviewers, hackers and fellow systems/low-level/compiler engineers ⚠️ ⚠️ If you have a lot of experience with this kind of shenanigans and want to improve the **first** version, **please make a PR against my branch** or **reach out by email** or **suggest code changes directly on GitHub**. If you have any **refinements or optimizations** please, wait until the first version is merged before starting hacking or proposing those so we can keep this PR productive.
This commit is contained in:
parent
0f733fffe8
commit
6d791a9736
24 changed files with 1412 additions and 2 deletions
|
|
@ -606,6 +606,11 @@ PyOS_AfterFork_Child(void)
|
|||
}
|
||||
assert(_PyThreadState_GET() == tstate);
|
||||
|
||||
status = _PyPerfTrampoline_AfterFork_Child();
|
||||
if (_PyStatus_EXCEPTION(status)) {
|
||||
goto fatal_error;
|
||||
}
|
||||
|
||||
run_at_forkers(tstate->interp->after_forkers_child, 0);
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue