Skip to content

Add USDT probe publishing ABI offsets for external profilers.#260

Open
gnurizen wants to merge 1 commit into
openresty:v2.1-agentzhfrom
gnurizen:usdt-offsets
Open

Add USDT probe publishing ABI offsets for external profilers.#260
gnurizen wants to merge 1 commit into
openresty:v2.1-agentzhfrom
gnurizen:usdt-offsets

Conversation

@gnurizen
Copy link
Copy Markdown

STAP_PROBE4 in lj_state_newstate emits offsetof(global_State, cur_L),
GG_G2DISP, GG_G2J + offsetof(jit_State, trace), and CFRAME_SIZE_JIT
in .note.stapsdt. Profilers read these statically instead of
disassembling lj_dispatch_update et al.

Enable with make XCFLAGS=-DLUAJIT_USE_SDT. Off by default; gated
on LJ_HASJIT.

STAP_PROBE4 in lj_state_newstate emits offsetof(global_State, cur_L),
GG_G2DISP, GG_G2J + offsetof(jit_State, trace), and CFRAME_SIZE_JIT
in .note.stapsdt. Profilers read these statically instead of
disassembling lj_dispatch_update et al.

Enable with `make XCFLAGS=-DLUAJIT_USE_SDT`. Off by default; gated
on LJ_HASJIT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant