-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
GH-98894: Fix function__return
and function__entry
dTrace probe missing after GH-103083
#125019
base: main
Are you sure you want to change the base?
Conversation
After #103083, the sudo bpftrace -e '
usdt:/home/manjusaka/Documents/projects/cpython/python:python:function__return {
printf("filename: %s, funcname:%s, lineno:%d\n",str(arg0),str(arg1),arg2);
}
' -p 291832 And the So I think we should keep the codebase same with the document or we need to update the document if we confirm that we don't need the dtrace feature any more. |
Misc/NEWS.d/next/Core_and_Builtins/2024-10-06-17-46-24.gh-issue-98894.uG2s-h.rst
Outdated
Show resolved
Hide resolved
The build errors:
Something is probably missing somewhere. |
I have noticed this, I'm working on the CI. Thanks for the tips. Draft this PR first |
…e-98894.uG2s-h.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
87ac00a
to
128e856
Compare
IIUC, this means that they will not work with the JIT. Even if the instrumentation points are compiled into the templates, dtrace will not be able to find them. How does dtrace handle jit-in-time compiled code? |
Yes, it's static
The For now, the JIT is still an experimental feature. I think For the future, I think we may need extra dtrace point for JIT module |
How? |
That would be some different dtrace points, I'm not sure we need to discuss it here.
I'm not sure about the JIT roadmap. if here's more than five years before we make the JIT default release, I think it still is worthed adding the dtrace point back. Otherwise, we need to clean up the docs FYI https://docs.python.org/3/howto/instrumentation.html |
@markshannon ping~ |
Also, merging it as it is facilitates backporting. |
@markshannon ping~ |
The JIT will be included in 3.14, but probably off by default. It will almost certainly on by default for 3.15. |
I'm not opposed to having dtrace hooks, but I don't see much value in them unless they
|
OK, I got it. 1 and 3 would not be a big issue, but I need more time about 2. So how about we update https://docs.python.org/3/howto/instrumentation.html and remove the function__return and function__entry part first? |
Fix #98894