Mercurial > hg > nginx-site
comparison xml/en/docs/nginx_dtrace_pid_provider.xml @ 2746:438e5c551d67
Fixed name of the ngx_http_request_t structure in DTrace article.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 01 Jul 2021 11:27:14 +0300 |
parents | f024ac0ec5c7 |
children | cfdc1ba95196 |
comparison
equal
deleted
inserted
replaced
2745:febebaf5e52f | 2746:438e5c551d67 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Debugging nginx with DTrace pid provider" | 9 <article name="Debugging nginx with DTrace pid provider" |
10 link="/en/docs/nginx_dtrace_pid_provider.html" | 10 link="/en/docs/nginx_dtrace_pid_provider.html" |
11 lang="en" | 11 lang="en" |
12 rev="3" | 12 rev="4" |
13 toc="no"> | 13 toc="no"> |
14 | 14 |
15 <section> | 15 <section> |
16 | 16 |
17 <para> | 17 <para> |
72 | 72 |
73 </para> | 73 </para> |
74 | 74 |
75 <para> | 75 <para> |
76 It should be noted that in the example above DTrace requires some knowledge | 76 It should be noted that in the example above DTrace requires some knowledge |
77 about the <literal>ngx_http_process_request</literal> structure. | 77 about the <literal>ngx_http_request_t</literal> structure. |
78 Unfortunately while it is possible to use a specific <literal>#include</literal> | 78 Unfortunately while it is possible to use a specific <literal>#include</literal> |
79 directive in the DTrace script and then pass it to a C preprocessor | 79 directive in the DTrace script and then pass it to a C preprocessor |
80 (with the <literal>-C</literal> flag), that doesn’t really work. | 80 (with the <literal>-C</literal> flag), that doesn’t really work. |
81 Due to a lot of cross dependencies, almost all nginx header files | 81 Due to a lot of cross dependencies, almost all nginx header files |
82 have to be included. | 82 have to be included. |
113 These definitions are compact, commonly used and unlikely to be | 113 These definitions are compact, commonly used and unlikely to be |
114 frequently changed. | 114 frequently changed. |
115 </para> | 115 </para> |
116 | 116 |
117 <para> | 117 <para> |
118 Then there’s the <literal>ngx_http_process_request_t</literal> structure that | 118 Then there’s the <literal>ngx_http_request_t</literal> structure that |
119 contains a lot of pointers to other structures. | 119 contains a lot of pointers to other structures. |
120 Because these pointers are really irrelevant to this script, and because they | 120 Because these pointers are really irrelevant to this script, and because they |
121 have the same size, it is possible to just replace them with void pointers. | 121 have the same size, it is possible to just replace them with void pointers. |
122 Instead of changing definitions, it is better to add appropriate typedefs, | 122 Instead of changing definitions, it is better to add appropriate typedefs, |
123 though: | 123 though: |