Skip to content

Commit b6ba9f3

Browse files
Revert "feat: add Python 3.11/3.12/3.13 support to shared structs"
This reverts commit 1956e66.
1 parent 0789e0e commit b6ba9f3

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

agent/crates/trace-utils/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ pub struct PythonUnwindInfo {
148148
pub tsd_info: TsdInfo,
149149
pub offsets_id: u8,
150150
pub _padding: [u8; 5],
151-
pub none_struct_addr: u64, // _Py_NoneStruct address for Python 3.13+, 0 otherwise
152151
}
153152

154153
#[cfg(feature = "enterprise")]

agent/crates/trace-utils/src/trace_utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ typedef struct {
195195
uint16_t version;
196196
tsd_info_t tsd_info;
197197
uint8_t offsets_id;
198-
uint8_t _padding[5];
199-
uint64_t none_struct_addr;
198+
uint8_t padding[5];
200199
} python_unwind_info_t;
201200
#endif
202201

agent/src/ebpf/kernel/perf_profiler.bpf.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ typedef struct {
160160

161161
void *py_frame_ptr;
162162
__u8 py_offsets_id;
163-
__u16 py_version; // Python version encoded as 0xMMmm (e.g. 3.11 -> 0x030B)
164-
__u64 py_none_struct_addr; // _Py_NoneStruct address (0 if < 3.13)
165163

166164
void *lua_L_ptr;
167165
__u8 lua_is_jit; // 0: Lua 5.x, 1: LuaJIT
@@ -208,8 +206,6 @@ void reset_unwind_state(unwind_state_t * state)
208206

209207
state->py_frame_ptr = NULL;
210208
state->py_offsets_id = 0;
211-
state->py_version = 0;
212-
state->py_none_struct_addr = 0;
213209
state->luajit_frame = NULL;
214210
state->luajit_bot = NULL;
215211
state->luajit_skip_depth = 0;

0 commit comments

Comments
 (0)