{"id":1077,"date":"2013-12-11T10:31:13","date_gmt":"2013-12-11T02:31:13","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=1077"},"modified":"2013-12-11T10:31:13","modified_gmt":"2013-12-11T02:31:13","slug":"cdt%e8%b0%83%e8%af%95%e4%b8%ad%e7%9a%84%e8%bf%bd%e8%b8%aa%e7%82%b9%e5%92%8c%e6%96%ad%e7%82%b9%e6%9c%89%e4%bb%80%e4%b9%88%e5%8c%ba%e5%88%ab%e3%80%82","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=1077","title":{"rendered":"CDT\u8c03\u8bd5\u4e2d\u7684\u8ffd\u8e2a\u70b9\u548c\u65ad\u70b9\u6709\u4ec0\u4e48\u533a\u522b\u3002"},"content":{"rendered":"<p style=\"margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\">\u8ffd\u8e2a\u70b9\uff08Tracepoint\uff09\u88ab\u5f53\u6210\u65ad\u70b9(breakpoint)\u7684\u4e00\u79cd\uff0c\u4f46\u6709\u4e24\u4e2a\u4e0d\u540c\u70b9\u9700\u8981\u6ce8\u610f\uff1a<\/p>\n<p style=\"margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\">1. \u5f53\u4e00\u4e2a\u8ffd\u8e2a\u70b9\u5728\u4e00\u4e2a\u8c03\u8bd5\u4f1a\u8bdd\u4e2d\u88ab\u521b\u5efa\u65f6\uff0c\u5b83\u5e76\u4e0d\u79cd\u5165\u5230\u4e8c\u8fdb\u5236\u4ee3\u7801\u4e2d\uff0c\u76f4\u5230\u7528\u6237\u663e\u5f0f\u5730\u5f00\u59cb\u8ffd\u8e2a\u5b9e\u9a8c\u3002\u8fd9\u610f\u5473\u7740\uff0c\u521b\u5efa\/\u4fee\u6539\/\u5220\u9664\u8ffd\u8e2a\u70b9\u5e76\u4e0d\u5f71\u54cd\u7a0b\u5e8f\uff0c\u76f4\u5230\u8ffd\u8e2a\u771f\u6b63\u5f00\u59cb\u3002<\/p>\n<p style=\"margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\">2. \u7b80\u5355\u7684\u521b\u5efa\u4e00\u4e2a\u8ffd\u8e2a\u70b9\u5e76\u4e0d\u662f\u975e\u5e38\u6709\u4ef7\u503c\uff0c\u56e0\u4e3a\u5b83\u9ed8\u8ba4\u4e0d\u4f1a\u6536\u96c6\u4efb\u4f55\u4fe1\u606f\u3002\u91cd\u8981\u7684\u662f\uff0c\u628a\u64cd\u4f5c(Actions)\u6dfb\u52a0\u5230Tracepoint\uff0c\u8fd9\u6837tracepoint\u88ab\u89e6\u53d1\u7684\u65f6\u5019\uff0c\u524d\u9762\u81ea\u5b9a\u4e49\u7684Action\u5c31\u5927\u6709\u7528\u5904\u4e86\u3002<\/p>\n<p style=\"margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\">\u6765\u81eaCDT\u5b98\u7f51\u7684\u539f\u6587\uff1a<\/p>\n<p style=\"margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\"><b>Create Tracepoints<\/b><\/p>\n<blockquote>\n<p style=\"margin: 0.4em 0px 10px; line-height: 24px; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\">Tracepoints are handled as a type of breakpoint. There are two differences to note:<\/p>\n<\/blockquote>\n<ol style=\"line-height: 24px; margin: 0.3em 0px 0px 3.2em; padding-right: 0px; padding-left: 0px; list-style-image: none; color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: medium;\">\n<li style=\"margin-bottom: 0.1em; list-style-type: decimal; list-style-image: none !important;\">When a tracepoint is created in a debug session, it is not actually planted in the binary code until the user explicitly starts the tracing experiment. This means that creating\/modifying\/deleting tracepoints does not affect the program until tracing is actually started.<\/li>\n<li style=\"margin-bottom: 0.1em; list-style-type: decimal; list-style-image: none !important;\">Simply creating a Tracepoint has very limited value as it won&#39;t collect any information by default. It is important to add Actions to the Tracepoint to tell it what to do. This will be explained below.<\/li>\n<\/ol>\n<p style=\"margin-bottom: 0.1em; list-style-type: decimal; list-style-image: none !important;\">copyright ykyi.net<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8ffd\u8e2a\u70b9\uff08Tracepoint\uff09\u88ab\u5f53\u6210\u65ad\u70b9(breakpoint)\u7684\u4e00\u79cd\uff0c\u4f46\u6709\u4e24\u4e2a\u4e0d\u540c\u70b9\u9700\u8981\u6ce8\u610f\uff1a 1. \u5f53\u4e00\u4e2a\u8ffd\u8e2a\u70b9\u5728\u4e00\u4e2a\u8c03\u8bd5\u4f1a\u8bdd\u4e2d\u88ab\u521b\u5efa\u65f6\uff0c\u5b83\u5e76\u4e0d\u79cd\u5165\u5230\u4e8c\u8fdb\u5236\u4ee3\u7801\u4e2d\uff0c\u76f4\u5230\u7528\u6237\u663e\u5f0f\u5730\u5f00\u59cb\u8ffd\u8e2a\u5b9e\u9a8c\u3002\u8fd9\u610f\u5473\u7740\uff0c\u521b\u5efa\/\u4fee\u6539\/\u5220\u9664\u8ffd\u8e2a\u70b9\u5e76\u4e0d\u5f71\u54cd\u7a0b\u5e8f\uff0c\u76f4\u5230\u8ffd\u8e2a\u771f\u6b63\u5f00\u59cb\u3002 2. \u7b80\u5355\u7684\u521b\u5efa\u4e00\u4e2a\u8ffd\u8e2a\u70b9\u5e76\u4e0d\u662f\u975e\u5e38\u6709\u4ef7\u503c\uff0c\u56e0\u4e3a\u5b83\u9ed8\u8ba4\u4e0d\u4f1a\u6536\u96c6\u4efb\u4f55\u4fe1\u606f\u3002\u91cd\u8981\u7684\u662f\uff0c\u628a\u64cd\u4f5c(Actions)\u6dfb\u52a0\u5230Tracepoint\uff0c\u8fd9\u6837tracepoint\u88ab\u89e6\u53d1\u7684\u65f6\u5019\uff0c\u524d\u9762\u81ea\u5b9a\u4e49\u7684Action\u5c31\u5927\u6709\u7528\u5904\u4e86\u3002 \u6765\u81eaCDT\u5b98\u7f51\u7684\u539f\u6587\uff1a Create Tracepoints Tracepoints are handled as a type of breakpoint. There are two differences to note: When a tracepoint is created in a debug session, it is not actually planted in the binary code until the user explicitly starts the tracing experiment. This means that creating\/modifying\/deleting tracepoints does not &hellip; <a href=\"https:\/\/ykyi.net\/?p=1077\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CDT\u8c03\u8bd5\u4e2d\u7684\u8ffd\u8e2a\u70b9\u548c\u65ad\u70b9\u6709\u4ec0\u4e48\u533a\u522b\u3002&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,30],"class_list":["post-1077","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-debug","tag-eclipse"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1077"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1077\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}