Skip to content

Commit 51d63b4

Browse files
committed
fixed dtrace static probes for systems other than Linux.
1 parent b60f53f commit 51d63b4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

dtrace/ngx_lua_provider.d

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,48 @@ provider nginx_lua {
44
/* lua_State *L */
55
probe http__lua__register__preload__package(void *L, u_char *pkg);
66

7-
probe http__lua__req__socket__consume__preread(ngx_http_request_t *r,
7+
probe http__lua__req__socket__consume__preread(void *r,
88
u_char *data, size_t len);
99

1010
/* lua_State *parent, lua_State *child */
11-
probe http__lua__user__coroutine__create(ngx_http_request_t *r,
11+
probe http__lua__user__coroutine__create(void *r,
1212
void *parent, void *child);
1313

1414
/* lua_State *parent, lua_State *child */
15-
probe http__lua__user__coroutine__resume(ngx_http_request_t *r,
15+
probe http__lua__user__coroutine__resume(void *r,
1616
void *parent, void *child);
1717

1818
/* lua_State *parent, lua_State *child */
19-
probe http__lua__user__coroutine__yield(ngx_http_request_t *r,
19+
probe http__lua__user__coroutine__yield(void *r,
2020
void *parent, void *child);
2121

2222
/* lua_State *L */
23-
probe http__lua__thread__yield(ngx_http_request_t *r, void *L);
23+
probe http__lua__thread__yield(void *r, void *L);
2424

2525
/* ngx_http_lua_socket_tcp_upstream_t *u */
26-
probe http__lua__socket__tcp__send__start(ngx_http_request_t *r,
26+
probe http__lua__socket__tcp__send__start(void *r,
2727
void *u, u_char *data, size_t len);
2828

2929
/* ngx_http_lua_socket_tcp_upstream_t *u */
30-
probe http__lua__socket__tcp__receive__done(ngx_http_request_t *r,
30+
probe http__lua__socket__tcp__receive__done(void *r,
3131
void *u, u_char *data, size_t len);
3232

3333
/* ngx_http_lua_socket_tcp_upstream_t *u */
3434
probe http__lua__socket__tcp__setkeepalive__buf__unread(
35-
ngx_http_request_t *r, void *u, u_char *data, size_t len);
35+
void *r, void *u, u_char *data, size_t len);
3636

3737
/* lua_State *creator, lua_State *newthread */
38-
probe http__lua__user__thread__spawn(ngx_http_request_t *r,
38+
probe http__lua__user__thread__spawn(void *r,
3939
void *creator, void *newthread);
4040

4141
/* lua_State *thread, ngx_http_lua_ctx_t *ctx */
42-
probe http__lua__thread__delete(ngx_http_request_t *r, void *thread, void *ctx);
42+
probe http__lua__thread__delete(void *r, void *thread, void *ctx);
4343

4444
/* lua_State *thread */
45-
probe http__lua__run__posted__thread(ngx_http_request_t *r, void *thread,
45+
probe http__lua__run__posted__thread(void *r, void *thread,
4646
int status);
4747

48-
probe http__lua__coroutine__done(ngx_http_request_t *r, void *co,
48+
probe http__lua__coroutine__done(void *r, void *co,
4949
int success);
5050

5151
/* lua_State *parent, lua_State *child */

0 commit comments

Comments
 (0)