Permalink
Browse files

updated run.stp.

  • Loading branch information...
1 parent 9b4e650 commit d93ebde8c8027a47c00803d8c4a9e8663a74712a @agentzh committed Jul 25, 2012
Showing with 12 additions and 2 deletions.
  1. +12 −2 run.stp
View
14 run.stp
@@ -9,14 +9,24 @@ probe process("./test").mark("blah")
print("blah...\n")
}
-probe process("./test").mark("request__start")
+probe process("./test").mark("request-start")
{
raddr = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->raddr)
laddr = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->laddr)
id = @cast($arg1, "ngx_http_dtrace_request_s")->id
uri = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->uri)
args = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->args)
- printf("done: %s -> %s (id %d, %s?%s)\n", raddr, laddr, id, uri, args)
+ printf("start: %s -> %s (id %d, %s?%s)\n", raddr, laddr, id, uri, args)
//printf("args: %s", user_string(@cast(&$dt_r, "ngx_http_dtrace_request_t")->args))
}
+probe process("./test").mark("request-done")
+{
+ raddr = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->raddr)
+ laddr = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->laddr)
+ id = @cast($arg1, "ngx_http_dtrace_request_s")->id
+ uri = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->uri)
+ args = user_string(@cast($arg1, "ngx_http_dtrace_request_s")->args)
+ printf("done: %s -> %s (id %d, %s?%s)\n", raddr, laddr, id, uri, args)
+}
+

0 comments on commit d93ebde

Please sign in to comment.