Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added more providers.

  • Loading branch information...
commit 9b4e650a027e3a02f8eeb978e36acd15dde4b23c 1 parent fc10cb7
@agentzh authored
Showing with 13 additions and 1 deletion.
  1. +6 −1 run.stp
  2. +2 −0  test.c
  3. +5 −0 test_provider.d
View
7 run.stp
@@ -4,7 +4,12 @@ probe begin, end {
print("Tracing. Hit CTRL-C to stop.\n");
}
-probe process("/home/agentzh/git/usdt-sample/test").mark("request__start")
+probe process("./test").mark("blah")
+{
+ print("blah...\n")
+}
+
+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)
View
2  test.c
@@ -14,6 +14,8 @@ int main(void)
dt_r.raddr = "remote";
for (;;) {
+ NGX_CORE_BLAH(789);
+
if (NGX_HTTP_REQUEST_START_ENABLED()) {
NGX_HTTP_REQUEST_START(&dt_r);
}
View
5 test_provider.d
@@ -8,3 +8,8 @@ provider ngx_http {
probe request__done(ngx_http_dtrace_request_t *p) : (ngx_conn_info_t *p, ngx_http_req_info_t *p);
};
+
+provider ngx_core {
+ probe blah(int a) : (int a);
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.