Skip to content

Instantly share code, notes, and snippets.

@udzura
Created October 11, 2019 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udzura/b3ded7aa5a830481c30d1c7ee36a2af7 to your computer and use it in GitHub Desktop.
Save udzura/b3ded7aa5a830481c30d1c7ee36a2af7 to your computer and use it in GitHub Desktop.
uprobe:/usr/sbin/nginx:ngx_http_read_request_header /!@start[arg1]/
{
printf("[%ld] Passed: %s (%p)\n", tid, probe, arg1);
@start[arg1] = nsecs
}
uprobe:/usr/sbin/nginx:ngx_http_finalize_connection /@start[arg1]/
{
@reqtime = hist(nsecs - @start[arg1]);
delete(@start[arg1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment