Skip to content

Commit

Permalink
LJ_TRACE updates
Browse files Browse the repository at this point in the history
Due to the luajit parameter `hotexit` the lj_trace_exit function will
only happens the number of times that hotexit happens.

This will also probe the `lj_vm_exit_interp` function to make sure that
all luajit function is in there.

Signed-off-by: Eloy Coto <[email protected]>
  • Loading branch information
eloycoto committed Jul 24, 2019
1 parent ce2af08 commit 5bf5d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/ngx-lj-trace-exits.sxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ probe @pfunc(ngx_http_free_request)
}
}

probe process("$^libluajit_path").function("lj_trace_exit") {
probe process("$^libluajit_path").function("lj_trace_exit"),
process("$^libluajit_path").function("lj_vm_exit_interp") {
if (active_req) {
req_exits[active_req]++
}
Expand Down

0 comments on commit 5bf5d49

Please sign in to comment.