{"id":2870,"date":"2012-08-06T16:24:06","date_gmt":"2012-08-06T13:24:06","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2870"},"modified":"2024-09-09T17:09:10","modified_gmt":"2024-09-09T14:09:10","slug":"%d0%bf%d0%be%d0%b4%d0%b4%d0%b5%d1%80%d0%b6%d0%ba%d0%b0-dtrace-%d0%b2-%d0%bf%d1%80%d0%b8%d0%bb%d0%be%d0%b6%d0%b5%d0%bd%d0%b8%d1%8f%d1%85","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2870","title":{"rendered":"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 dtrace \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445"},"content":{"rendered":"<p>\u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u041f\u041e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 <strong>Dtrace<\/strong>.<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434:<\/span><\/strong><\/em> <strong>FreeBSD 9.0 Release amd64<\/strong>, \u044f\u0434\u0440\u043e \u0441\u043e\u0431\u0440\u0430\u043d\u043e \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 <strong>Dtrace<\/strong><\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) mysql<\/span><\/strong><\/p>\n<p>\u041e\u043f\u0446\u0438\u044f\u00a0<strong>-DENABLE_DTRACE=1<\/strong> \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 <strong>5.5.4<\/strong>, \u043d\u043e \u043d\u0430 <strong>FreeBSD<\/strong> \u043e\u043d\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f. \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0443\u0433\u0430\u0442\u044c \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435<\/p>\n<p><code>undefined reference to ____dtrace_mysql<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) php<\/span><\/strong><\/p>\n<p>\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0432\u0435\u0440\u0441\u0438\u0438 <strong>5.4<\/strong>. \u0414\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0434\u0443\u043b\u044c <strong>dtrace<\/strong>:<\/p>\n<p><code>#pear install dtrace<\/code><\/p>\n<p>\u0414\u043b\u044f <strong>FreeBSD<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e\u043d\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u043f\u0446\u0438\u0439. \u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0435 \u043d\u0438\u0436\u0435 <strong>FreeBSD 9.0<\/strong><\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Solaris)<\/span><\/strong><\/em><\/p>\n<p>\u0414\u043b\u044f \u0441\u0442\u0430\u0440\u044b\u0445 (<strong>5.3<\/strong>) \u0432\u0435\u0440\u0441\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>dtrace<\/strong> \u0447\u0435\u0440\u0435\u0437 <strong>pecl<\/strong>:<\/p>\n<p><code>#pecl install dtrace<\/code><\/p>\n<p>\u0438\u043b\u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043c\u043e\u0434\u0443\u043b\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432. \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b <a title=\"\u0437\u0434\u0435\u0441\u044c\" href=\"http:\/\/pecl.php.net\/package\/DTrace\" target=\"_blank\" rel=\"nofollow noopener\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) apache<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 dtrace \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c (<a href=\"http:\/\/prefetch.net\/projects\/apache_modtrace\/index.html\" rel=\"nofollow\">http:\/\/prefetch.net\/projects\/apache_modtrace\/index.html<\/a>), \u043d\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 FreeBSD. \u0415\u0441\u0442\u044c \u0435\u0449\u0451 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 (<a href=\"http:\/\/labs.omniti.com\/labs\/project-dtrace\/browser\/trunk\/apache22\" rel=\"nofollow\">http:\/\/labs.omniti.com\/labs\/project-dtrace\/browser\/trunk\/apache22<\/a>)<\/p>\n<p><strong><span style=\"color: #ff0000;\">4) nginx<\/span><\/strong><\/p>\n<p>\u0412 \u0441\u0430\u043c\u043e\u043c nginx&#8217;e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 <strong>dtrace<\/strong> \u043d\u0435\u0442\u0443, \u0437\u0430\u0442\u043e \u0435\u0441\u0442\u044c <strong>fork nginx&#8217;a \u00a0&#8211;\u00a0nginx-dtrace<\/strong> (<a href=\"https:\/\/github.com\/agentzh\/nginx-dtrace\" rel=\"nofollow\">https:\/\/github.com\/agentzh\/nginx-dtrace<\/a>)<\/p>\n<p><strong><span style=\"color: #ff0000;\">5) postgresql<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0435\u0441\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 <strong>8.4<\/strong>.\u00a0\u0414\u043b\u044f <strong>FreeBSD<\/strong> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e\u043d\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 \u043c\u0435\u043d\u044e \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u043f\u0446\u0438\u0439.<\/p>\n<p><strong><span style=\"color: #ff0000;\">6) perl<\/span><\/strong><\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438\u00a0<strong>5.10.1 \u0432 perl<\/strong> \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <strong>dtrace<\/strong>. \u041d\u043e \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u041e\u0421 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 <strong>dtrace<\/strong>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 &#8220;<strong>-Dusedtrace<\/strong>&#8221; \u043f\u0440\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0422\u043e\u0436\u0435 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439<\/p>\n<p><code>perldtrace.h: No such file or directory<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <a href=\"https:\/\/klarasystems.com\/articles\/dtrace-network-probes\/\">dtrace<\/a> \u0438 <a href=\"https:\/\/klarasystems.com\/articles\/freebsd-performance-observability\/\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u041f\u041e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Dtrace. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: FreeBSD 9.0 Release amd64, \u044f\u0434\u0440\u043e \u0441\u043e\u0431\u0440\u0430\u043d\u043e \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Dtrace<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2870","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2870"}],"version-history":[{"count":17,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2870\/revisions"}],"predecessor-version":[{"id":6443,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2870\/revisions\/6443"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}