Skip to content

Commit 128e856

Browse files
committed
fix jit ci
1 parent 4810510 commit 128e856

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Python/ceval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ static void monitor_throw(PyThreadState *tstate,
275275
_Py_CODEUNIT *instr);
276276

277277
static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
278-
static void dtrace_function_entry(_PyInterpreterFrame *);
279-
static void dtrace_function_return(_PyInterpreterFrame *);
280278
static _PyInterpreterFrame *
281279
_PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
282280
PyObject *locals, Py_ssize_t nargs, PyObject *callargs, PyObject *kwargs, _PyInterpreterFrame *previous);
@@ -825,6 +823,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
825823
DTRACE_FUNCTION_ENTRY();
826824
goto resume_with_error;
827825
}
826+
828827
/* Local "register" variables.
829828
* These are cached values from the frame and code object. */
830829
_Py_CODEUNIT *next_instr;

Python/ceval_macros.h

Lines changed: 5 additions & 0 deletions
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
@@ -290,6 +292,9 @@ GETITEM(PyObject *v, Py_ssize_t i) {
290292
#define CONSTS() _PyFrame_GetCode(frame)->co_consts
291293
#define NAMES() _PyFrame_GetCode(frame)->co_names
292294

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

Tools/jit/template.c

Lines changed: 1 addition & 0 deletions
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)