Permalink
Browse files

fixed dtrace static probes for systems other than Linux.

  • Loading branch information...
1 parent b60f53f commit 51d63b41c3fbcc23d92357580bcee64355e35858 @agentzh agentzh committed May 2, 2016
Showing with 12 additions and 12 deletions.
  1. +12 −12 dtrace/ngx_lua_provider.d
@@ -4,48 +4,48 @@ provider nginx_lua {
/* lua_State *L */
probe http__lua__register__preload__package(void *L, u_char *pkg);
- probe http__lua__req__socket__consume__preread(ngx_http_request_t *r,
+ probe http__lua__req__socket__consume__preread(void *r,
u_char *data, size_t len);
/* lua_State *parent, lua_State *child */
- probe http__lua__user__coroutine__create(ngx_http_request_t *r,
+ probe http__lua__user__coroutine__create(void *r,
void *parent, void *child);
/* lua_State *parent, lua_State *child */
- probe http__lua__user__coroutine__resume(ngx_http_request_t *r,
+ probe http__lua__user__coroutine__resume(void *r,
void *parent, void *child);
/* lua_State *parent, lua_State *child */
- probe http__lua__user__coroutine__yield(ngx_http_request_t *r,
+ probe http__lua__user__coroutine__yield(void *r,
void *parent, void *child);
/* lua_State *L */
- probe http__lua__thread__yield(ngx_http_request_t *r, void *L);
+ probe http__lua__thread__yield(void *r, void *L);
/* ngx_http_lua_socket_tcp_upstream_t *u */
- probe http__lua__socket__tcp__send__start(ngx_http_request_t *r,
+ probe http__lua__socket__tcp__send__start(void *r,
void *u, u_char *data, size_t len);
/* ngx_http_lua_socket_tcp_upstream_t *u */
- probe http__lua__socket__tcp__receive__done(ngx_http_request_t *r,
+ probe http__lua__socket__tcp__receive__done(void *r,
void *u, u_char *data, size_t len);
/* ngx_http_lua_socket_tcp_upstream_t *u */
probe http__lua__socket__tcp__setkeepalive__buf__unread(
- ngx_http_request_t *r, void *u, u_char *data, size_t len);
+ void *r, void *u, u_char *data, size_t len);
/* lua_State *creator, lua_State *newthread */
- probe http__lua__user__thread__spawn(ngx_http_request_t *r,
+ probe http__lua__user__thread__spawn(void *r,
void *creator, void *newthread);
/* lua_State *thread, ngx_http_lua_ctx_t *ctx */
- probe http__lua__thread__delete(ngx_http_request_t *r, void *thread, void *ctx);
+ probe http__lua__thread__delete(void *r, void *thread, void *ctx);
/* lua_State *thread */
- probe http__lua__run__posted__thread(ngx_http_request_t *r, void *thread,
+ probe http__lua__run__posted__thread(void *r, void *thread,
int status);
- probe http__lua__coroutine__done(ngx_http_request_t *r, void *co,
+ probe http__lua__coroutine__done(void *r, void *co,
int success);
/* lua_State *parent, lua_State *child */

0 comments on commit 51d63b4

Please sign in to comment.