@@ -274,14 +274,14 @@ should instead read:
274274Available static markers
275275------------------------
276276
277- .. object :: function__entry(str filename, str funcname, int lineno)
277+ .. object :: function__entry(str filename, str funcname, int lineno, str modulename )
278278
279279 This marker indicates that execution of a Python function has begun.
280280 It is only triggered for pure-Python (bytecode) functions.
281281
282- The filename, function name, and line number are provided back to the
283- tracing script as positional arguments, which must be accessed using
284- ``$arg1 ``, ``$arg2 ``, ``$arg3 ``:
282+ The filename, function name, line number, and module name are provided back
283+ to the tracing script as positional arguments, which must be accessed using
284+ ``$arg1 ``, ``$arg2 ``, ``$arg3 ``, `` $arg4 `` :
285285
286286 * ``$arg1 `` : ``(const char *) `` filename, accessible using ``user_string($arg1) ``
287287
@@ -290,22 +290,24 @@ Available static markers
290290
291291 * ``$arg3 `` : ``int `` line number
292292
293- .. object :: function__return(str filename, str funcname, int lineno)
293+ * ``$arg4 `` : ``(const char *) `` module name
294+
295+ .. object :: function__return(str filename, str funcname, int lineno, str modulename)
294296
295297 This marker is the converse of :c:func: `function__entry `, and indicates that
296298 execution of a Python function has ended (either via ``return ``, or via an
297299 exception). It is only triggered for pure-Python (bytecode) functions.
298300
299301 The arguments are the same as for :c:func: `function__entry `
300302
301- .. object :: cfunction__entry(str modulename , str funcname)
303+ .. object :: cfunction__entry(str filename , str funcname, int lineno, str modulename )
302304
303305 This marker indicates that execution of a built-in or extension function has
304- begun. The module name and function name are provided as C strings. The
305- module name may be empty when the function is not associated with a
306- particular module.
306+ begun. The filename and line number refer to the Python call site, while the
307+ module name and function name identify the C callable. The module name may
308+ be empty when the function is not associated with a particular module.
307309
308- .. object :: cfunction__return(str modulename , str funcname)
310+ .. object :: cfunction__return(str filename , str funcname, int lineno, str modulename )
309311
310312 This marker is the converse of :c:func: `cfunction__entry `, and indicates that
311313 execution of a built-in or extension function has ended. The arguments are
@@ -317,7 +319,9 @@ Available static markers
317319 the equivalent of line-by-line tracing with a Python profiler. It is
318320 not triggered within C functions.
319321
320- The arguments are the same as for :c:func: `function__entry `.
322+ The arguments are the filename, function name, and line number for the
323+ executing frame (the same as the first three arguments to
324+ :c:func: `function__entry `).
321325
322326.. object :: gc__start(int generation)
323327
0 commit comments