Skip to content

Commit 87ac00a

Browse files
committed
fix jit ci
1 parent 387c23b commit 87ac00a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Python/ceval.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ static void monitor_throw(PyThreadState *tstate,
276276

277277
static int check_args_iterable(PyThreadState *, PyObject *func, PyObject *vararg);
278278
static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
279-
static void dtrace_function_entry(_PyInterpreterFrame *);
280-
static void dtrace_function_return(_PyInterpreterFrame *);
281279
static _PyInterpreterFrame *
282280
_PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
283281
PyObject *locals, Py_ssize_t nargs, PyObject *callargs, PyObject *kwargs, _PyInterpreterFrame *previous);
@@ -819,6 +817,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
819817
DTRACE_FUNCTION_ENTRY();
820818
goto resume_with_error;
821819
}
820+
822821
/* Local "register" variables.
823822
* These are cached values from the frame and code object. */
824823
_Py_CODEUNIT *next_instr;

Python/ceval_macros.h

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
* the CFG.
4242
*/
4343

44+
#include "pycore_frame.h"
45+
4446
#ifdef WITH_DTRACE
4547
#define OR_DTRACE_LINE | (PyDTrace_LINE_ENABLED() ? 255 : 0)
4648
#else
@@ -289,6 +291,9 @@ GETITEM(PyObject *v, Py_ssize_t i) {
289291
#define CONSTS() _PyFrame_GetCode(frame)->co_consts
290292
#define NAMES() _PyFrame_GetCode(frame)->co_names
291293

294+
static void dtrace_function_entry(_PyInterpreterFrame *);
295+
static void dtrace_function_return(_PyInterpreterFrame *);
296+
292297
#define DTRACE_FUNCTION_EXIT() \
293298
if (PyDTrace_FUNCTION_RETURN_ENABLED()) { \
294299
dtrace_function_return(frame); \

Tools/jit/template.c

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "pycore_sliceobject.h"
1919
#include "pycore_descrobject.h"
2020
#include "pycore_stackref.h"
21+
#include "pydtrace.h"
2122

2223
#include "ceval_macros.h"
2324

0 commit comments

Comments
 (0)