Skip to content

Commit 9e5a697

Browse files
committed
Fix comments
1 parent 67135e7 commit 9e5a697

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

support/ebpf/python_tracer.ebpf.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,7 @@ static EBPF_INLINE ErrorCode get_PyFrame(const PyProcInfo *pyinfo, void **frame)
253253
#define PYTHON_NATIVE_LOOP_ITERS 9
254254

255255
// step_python processes one Python frame and updates *unwinder to indicate
256-
// what should happen next: PROG_UNWIND_NATIVE to unwind a native boundary
257-
// frame, PROG_UNWIND_PYTHON to tail-call back (more frames but budget
258-
// exhausted), or PROG_UNWIND_STOP when all Python frames are done.
256+
// what should happen next
259257
static EBPF_INLINE ErrorCode
260258
step_python(PerCPURecord *record, const PyProcInfo *pyinfo, void **py_frame, int *unwinder)
261259
{
@@ -270,15 +268,13 @@ step_python(PerCPURecord *record, const PyProcInfo *pyinfo, void **py_frame, int
270268
} else if (!*py_frame) {
271269
*unwinder = PROG_UNWIND_STOP;
272270
} else {
273-
// More Python frames but loop budget will be exhausted; tail call to self.
274271
*unwinder = PROG_UNWIND_PYTHON;
275272
}
276273
return ERR_OK;
277274
}
278275

279276
// step_native processes one native frame at an interpreter boundary and
280-
// updates *unwinder: PROG_UNWIND_PYTHON when we've crossed back into Python,
281-
// or whatever get_next_unwinder_after_native_frame returns otherwise.
277+
// updates *unwinder
282278
static EBPF_INLINE ErrorCode step_native(PerCPURecord *record, int *unwinder)
283279
{
284280
Trace *trace = &record->trace;

0 commit comments

Comments
 (0)