{"id":5532,"date":"2020-12-17T10:00:13","date_gmt":"2020-12-17T01:00:13","guid":{"rendered":"https:\/\/hldc.co.jp\/blog\/?p=5532"},"modified":"2025-10-24T14:07:35","modified_gmt":"2025-10-24T05:07:35","slug":"%e5%ae%a2%e5%85%88%e3%81%a7%e3%81%97%e3%81%8b%e7%99%ba%e7%94%9f%e3%81%97%e3%81%aa%e3%81%84%e4%b8%8d%e5%85%b7%e5%90%88%e3%81%a7%e5%9b%b0%e3%81%a3%e3%81%a6%e3%81%be%e3%81%99%e3%83%bb%e3%83%bb-10-2-2-2-4","status":"publish","type":"post","link":"https:\/\/hldc.co.jp\/blog\/2020\/12\/17\/5532\/","title":{"rendered":"Linux\u958b\u767a\u3067\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u30c7\u30d0\u30c3\u30b0\u30b3\u30de\u30f3\u30c9<br>\u3010GDB\/gprof\u306e\u4f7f\u3044\u65b9\u3011"},"content":{"rendered":"\n<p>IoT\u6a5f\u5668\u306e\u666e\u53ca\u304c\u9032\u3093\u3067\u3044\u308b\u6628\u4eca\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u95a2\u9023\u3057\u305f\u6a5f\u80fd\u304c\u5145\u5b9f\u3057\u3066\u3044\u308bLinux\u3092\u642d\u8f09\u3059\u308b\u52d5\u304d\u304c\u52a0\u901f\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3046\u3044\u3063\u305f\u52d5\u304d\u3092\u53d7\u3051\u3001\u3053\u308c\u307e\u3067\u5225\u306eOS\u3084OS\u30ec\u30b9\u3067\u958b\u767a\u3057\u3066\u3044\u305f\u6a5f\u5668\u3082Linux\u3067\u306e\u958b\u767a\u306b\u7f6e\u304d\u63db\u308f\u3063\u305f\u3068\u3044\u3046\u65b9\u304c\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<span class=\"notion-enable-hover\" data-token-index=\"0\">\u3057\u304b\u3057\u3001Linux\u3067\u306e\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u30ce\u30a6\u30cf\u30a6\u304c\u306a\u304f\u60a9\u3093\u3067\u3044\u308b\u65b9\u3082\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/span><!-- notionvc: bce892f3-6b6e-4bfc-9264-70f51ead27d0 -->\u4ee5\u4e0b\u306e\u30b0\u30e9\u30d5\u306f\u4ee5\u524d\u5f0a\u793e\u3067\u958b\u50ac\u3057\u305f\u30bb\u30df\u30ca\u30fc\u53c2\u52a0\u8005\u3092\u5bfe\u8c61\u306b\u3001Linux\u3067\u958b\u767a\u6642\u306e\u30c7\u30d0\u30c3\u30b0\u306e\u73fe\u72b6\u306b\u3064\u3044\u3066\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u53d6\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"615\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-1024x615.png\" alt=\"\" class=\"wp-image-5643\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-1024x615.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-300x180.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-768x461.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-1080x649.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-1280x768.png 1280w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-627x376.png 627w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1-440x264.png 440w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_query-1.png 1653w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u3053\u308c\u3092\u898b\u308b\u3068\u3001Linux\u3067\u306e\u30c7\u30d0\u30c3\u30b0\u306e\u30ce\u30a6\u30cf\u30a6\u304c\u3042\u308b\u3068\u56de\u7b54\u3057\u305f\u65b9\u306f\u5168\u4f53\u306e\u308f\u305a\u304b3%\u3067\u3057\u305f\u3002Linux\u3067\u306e\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9032\u3081\u308b\u3046\u3048\u3067\u30c7\u30d0\u30c3\u30b0\u30b9\u30ad\u30eb\u306e\u4e0d\u8db3\u3092\u611f\u3058\u3066\u3044\u308b\u65b9\u304c\u591a\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<br>\u305d\u3053\u3067\u4eca\u56de\u306f\u3001<span class=\"notion-enable-hover\" data-token-index=\"0\">\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u76f4\u9762\u3059\u308b\u30d0\u30b0\u306e\u7279\u5b9a\u3084\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u554f\u984c\u3068\u3044\u3063\u305f\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u3001<\/span>GDB(\u30c7\u30d0\u30c3\u30ac)\u3084\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u691c\u51fa\u306a\u3069\u3001Linux\u306e\u30c7\u30d0\u30c3\u30b0\u30b3\u30de\u30f3\u30c9\u3084\u30c4\u30fc\u30eb\u3092\u3044\u304f\u3064\u304b\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3001\u305d\u306e\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<span class=\"notion-enable-hover\" data-token-index=\"0\">\u3053\u306e\u8a18\u4e8b\u304c\u3001\u5177\u4f53\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u3001\u5b9f\u884c\u3057\u305f\u3044\u3068\u3044\u3046\u65b9\u306e\u30d2\u30f3\u30c8\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/span><\/p>\n\n\n\n<div class=\"box_border_gray\">\n<h5>CONTENTS<\/h5>\n<ul>\n<li><a href=\"#cont1\">\u30c7\u30d0\u30c3\u30ac &#8211; GDB\u30b3\u30de\u30f3\u30c9\u5fb9\u5e95\u89e3\u8aac<\/a>\n<ul>\n<li><a href=\"#cont1-1\">GDB\u3068\u306f\uff1fLinux\u30c7\u30d0\u30c3\u30b0\u306b\u304a\u3051\u308b\u5f79\u5272<\/a><\/li>\n<li><a href=\"#cont1-2\">GDB\u306e\u4f7f\u3044\u65b9(\u8d77\u52d5\u30fb\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u30fb\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c)<\/a><\/li>\n<li><a href=\"#cont1-3\">GDB\u3092\u4f7f\u3063\u3066\u4e0d\u5177\u5408\u767a\u751f\u7b87\u6240\u3092\u7279\u5b9a\u3059\u308b<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#cont2\">\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9 &#8211; gprof\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3068\u89e3\u6790\u624b\u9806<\/a>\n<ul>\n<li><a href=\"#cont2-1\">gprof\u3068\u306f\uff1f<\/a><\/li>\n<li><a href=\"#cont2-2\">gprof\u3092\u4f7f\u3063\u3066\u51e6\u7406\u6642\u9593\u3092\u89e3\u6790\u3059\u308b<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#cont3\">CPU\u306e\u8ca0\u8377\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u628a\u63e1 &#8211; TOP\u30b3\u30de\u30f3\u30c9\u306e\u6d3b\u7528<\/a><\/li>\n<li><a href=\"#cont4\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u691c\u51fa &#8211; MEMWATCH<\/a>\n<ul>\n<li><a href=\"#cont4-1\">Github\u304b\u3089\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/li>\n<li><a href=\"#cont4-2\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u691c\u51fa\u3059\u308b<\/a><\/li>\n<li><a href=\"#cont4-3\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u306e\u5146\u5019\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#cont5\">\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307e\u3068\u3081\u3066\u89e3\u6790-\u52d5\u7684\u30c6\u30b9\u30c8\u30c4\u30fc\u30ebDT+<\/a>\n<ul>\n<li><a href=\"#cont5-1\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u3068\u30ab\u30fc\u30cd\u30eb\u5c64\u3092\u307e\u3068\u3081\u3066\u89e3\u6790<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#cont6\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<\/div>\n\n\n\n<div id=\"cont1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u30c7\u30d0\u30c3\u30ac &#8211; GDB\u30b3\u30de\u30f3\u30c9\u5fb9\u5e95\u89e3\u8aac<\/h2>\n\n\n\n<div id=\"cont1-1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">GDB\u3068\u306f\uff1f<span class=\"notion-enable-hover\" data-token-index=\"0\">Linux\u30c7\u30d0\u30c3\u30b0\u306b\u304a\u3051\u308b\u5f79\u5272<\/span><!-- notionvc: cfde3376-66a2-4c5b-8f48-8f4a49f3bfca --><\/h3>\n\n\n\n<p>Linux\u306e\u30c7\u30d0\u30c3\u30ac\u3068\u8a00\u3048\u3070\u3001\u4ee3\u8868\u7684\u306a\u30e2\u30ce\u304cGDB\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002Linux\u3067\u306f\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u307b\u3068\u3093\u3069\u306e\u74b0\u5883\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30c7\u30d0\u30c3\u30ac\u306b\u6c42\u3081\u3089\u308c\u308b\u6a5f\u80fd\u306f\u3059\u3079\u3066\u6a19\u6e96\u3067\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br><strong>\u3000\u3000- \u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u306e\u8a2d\u5b9a<\/strong><br><strong>\u3000\u3000- \u30b9\u30c6\u30c3\u30d7\u5b9f\u884c<\/strong><br><strong>\u3000\u3000- \u5909\u6570\u5024\u306e\u53c2\u7167\uff0f\u66f8\u304d\u63db\u3048<\/strong><br><strong>\u3000\u3000- \u95a2\u6570\u547c\u3073\u51fa\u3057\u5c65\u6b74\u306e\u8868\u793a(\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9)<\/strong><\/p>\n\n\n\n<p>GDB\u306e\u4f7f\u7528\u30a4\u30e1\u30fc\u30b8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u5074\u3067\u8d77\u52d5\u3057\u3066\u3044\u308bGDB\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001GDB\u306e\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3080\u3053\u3068\u3067\u3001GDB\u30b5\u30fc\u30d0\u3092\u4ecb\u3057\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c7\u30d0\u30c3\u30b0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"300\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1-1024x300.png\" alt=\"\" class=\"wp-image-5620\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1-1024x300.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1-300x88.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1-768x225.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1-1080x316.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBImage-1.png 1118w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>GDB\u306e\u4f7f\u7528\u30d5\u30ed\u30fc\u3092\u307e\u3068\u3081\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"171\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1-1024x171.png\" alt=\"\" class=\"wp-image-5666\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1-1024x171.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1-300x50.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1-768x128.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1-1080x181.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDBUsage-1.png 1082w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<div id=\"cont1-2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\"><span class=\"notion-enable-hover\" data-token-index=\"0\"> GDB\u306e\u4f7f\u3044\u65b9(\u8d77\u52d5\u30fb\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u30fb\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c)<\/span><\/h3>\n\n\n\n<p><span class=\"notion-enable-hover\" data-token-index=\"0\">\u300cGDB\u306e\u5177\u4f53\u7684\u306a\u64cd\u4f5c\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u300d\u300cLinux\u74b0\u5883\u3067\u306e\u5b9f\u8df5\u7684\u306a\u30c7\u30d0\u30c3\u30b0\u624b\u9806\u3092\u6c42\u3081\u3066\u3044\u308b\u300d \u958b\u767a\u8005\u306e\u7686\u69d8\u306b\u5411\u3051\u3001\u3053\u3053\u3067\u306fGDB\u3092\u4f7f\u3063\u305f\u30c7\u30d0\u30c3\u30b0\u306e\u57fa\u672c\u624b\u9806\u3068\u3001\u5b9f\u52d9\u3067\u5fc5\u9808\u3068\u306a\u308b\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span><!-- notionvc: e928a4b4-7436-450a-9be4-1b3852690186 --><\/p>\n\n\n\n<p>GDB\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30d3\u30eb\u30c9\u3059\u308b\u969b\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b&#8221;-g&#8221;\u3092\u4ed8\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u6700\u9069\u5316\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u3068\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u306e\u969b\u306b\u30b3\u30fc\u30c9\u306e\u628a\u63e1\u304c\u3057\u3065\u3089\u304f\u306a\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u201c-O0\u201d\u30d5\u30e9\u30b0\u3092\u4ed8\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"GDB\u306e\u30d3\u30eb\u30c9\u4f8b\" data-enlighter-group=\"\">> gcc -g -O0 app.c -o app<\/pre>\n\n\n\n<p>\u30d3\u30eb\u30c9\u5f8c\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u3089\u3001\u4e0a\u8a18\u306e\u30d5\u30ed\u30fc\u306e\u901a\u308a\u307e\u305a\u306fGDB\u30b5\u30fc\u30d0\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u4e0a\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306bPC\u306eIP\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u756a\u53f7\u3001\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u3044\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u4e0a\u3067GDB\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\" data-enlighter-group=\"\">> gdbserver 192.168.10.30:2345 .\/app<\/pre>\n\n\n\n<p>\u305d\u306e\u5f8c\u958b\u767aPC\u304b\u3089GDB\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u4e0b\u8a18\u306e\u4f8b\u3067\u306farm\u3092\u642d\u8f09\u3057\u305f\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u3092\u4f7f\u7528\u3057\u3066\u304a\u308a\u3001GDB\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u305f\u3046\u3048\u3067\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u306eIP\u30a2\u30c9\u30ec\u30b9\u30fb\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\u958b\u767aPC\u304b\u3089\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u306eGDB\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9\" data-enlighter-group=\"\">>\u3000arm-linux-gnueabi-gdb .\/app\n\u30fb\u30fb\u30fb\n> (gdb) 192.168.10.40:2345<\/pre>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u5b8c\u4e86\u3059\u308b\u3068\u3001\u3044\u3088\u3044\u3088GDB\u306e\u4e3b\u8981\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u305f\u30c7\u30d0\u30c3\u30b0\u304c\u53ef\u80fd\u3067\u3059\u3002\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u3046\u3048\u3067\u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092GDB\u30b5\u30fc\u30d0\u3092\u4ecb\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_ExecutingNow-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"522\" height=\"281\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_ExecutingNow-1.png\" alt=\"\" class=\"wp-image-5621\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_ExecutingNow-1.png 522w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_ExecutingNow-1-300x161.png 300w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308c\u3070\u8a72\u5f53\u7b87\u6240\u3067\u51e6\u7406\u304c\u505c\u6b62\u3057\u307e\u3059\u3002\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u5f35\u308b\u3001\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3092\u884c\u3046\u306a\u3069\u3001\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u306f\u4ee5\u4e0b\u306e\u8868\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u304c\u3001Linux\u30c7\u30d0\u30c3\u30b0\u306e\u7b2c\u4e00\u6b69\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Breakpoint-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1011\" height=\"628\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Breakpoint-1.png\" alt=\"\" class=\"wp-image-5667\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Breakpoint-1.png 1011w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Breakpoint-1-300x186.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Breakpoint-1-768x477.png 768w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u5909\u6570\u306e\u5024\u3092\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"190\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable-1024x190.png\" alt=\"\" class=\"wp-image-5625\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable-1024x190.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable-300x56.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable-768x143.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable-1080x201.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_Variable.png 1296w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u307e\u305f\u3001\u30d0\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3084\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"144\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc-1024x144.png\" alt=\"\" class=\"wp-image-5626\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc-1024x144.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc-300x42.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc-768x108.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc-1080x152.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_Commands_etc.png 1297w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<div id=\"cont1-3\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">GDB\u3092\u4f7f\u3063\u3066\u4e0d\u5177\u5408\u767a\u751f\u7b87\u6240\u3092\u7279\u5b9a\u3059\u308b<\/h3>\n\n\n\n<p>GDB\u3068\u30b3\u30a2\u30c0\u30f3\u30d7\u3092\u4f7f\u7528\u3057\u3066\u3001\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c8\u306a\u3069\u306e\u4e0d\u5177\u5408\u306e\u767a\u751f\u7b87\u6240\u3092\u7279\u5b9a\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u30b3\u30a2\u30c0\u30f3\u30d7\u3068\u306f\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5f37\u5236\u7d42\u4e86\u3057\u305f\u3068\u304d\u306b\u305d\u306e\u969b\u306e\u30e1\u30e2\u30ea\u306e\u72b6\u614b\u3092\u8a18\u9332\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u3053\u308c\u3092GDB\u3067\u8aad\u307f\u8fbc\u3080\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u3069\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u5f37\u5236\u7d42\u4e86\u3057\u305f\u304b\u3092\u5224\u5225\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u624b\u98061: \u30b3\u30a2\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u306e\u751f\u6210\u8a2d\u5b9a<\/h4>\n\n\n\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u5074\u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u304c\u751f\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4e8b\u524d\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u4e0a\u3067\u8a2d\u5b9a\" data-enlighter-group=\"\">> ulimit -c unlimited<\/pre>\n\n\n\n<p>\u201culimit\u201d\u3068\u306f\u3001GDB\u306a\u3069\u30c7\u30d0\u30c3\u30b0\u306b\u9650\u3089\u305a\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u3067\u4f7f\u7528\u3067\u304d\u308b\u30e1\u30e2\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5927\u30b5\u30a4\u30ba\u3001\u540c\u6642\u306b\u5b9f\u884c\u3067\u304d\u308b\u30d7\u30ed\u30bb\u30b9\u6570\u306a\u3069\u30e6\u30fc\u30b6\u30fc\u304c\u4f7f\u7528\u3067\u304d\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u5236\u9650\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u201c-c\u201d\u3067\u30b3\u30a2\u30c0\u30f3\u30d7\u3092\u6307\u5b9a\u3057\u201cunlimited\u201d\u3067\u7121\u5236\u9650\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30b3\u30a2\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u306a\u304a\u3001\u3053\u306e\u5834\u5408\u30d3\u30eb\u30c9\u6642\u306b\u201c-g\u201d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304a\u3051\u3070GDB\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3057\u306a\u304f\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<br>\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c8\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u201ccore dumped\u201d\u3068\u8868\u793a\u3055\u308c\u3001\u30b3\u30a2\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb(core)\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_SegmentationFault-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"484\" height=\"155\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_SegmentationFault-1.png\" alt=\"\" class=\"wp-image-5622\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_SegmentationFault-1.png 484w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_SegmentationFault-1-300x96.png 300w\" sizes=\"(max-width: 484px) 100vw, 484px\" \/><\/a><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\">\u624b\u98062: GDB\u306b\u3088\u308b\u89e3\u6790<\/h4>\n\n\n\n<p>\u958b\u767aPC\u304b\u3089GDB\u30b5\u30fc\u30d0\u3092\u4ecb\u3057\u3066\u30b3\u30a2\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3068\u3001\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c8\u306e\u767a\u751f\u7b87\u6240\u3001\u547c\u3073\u51fa\u3057\u5c65\u6b74\u3001\u5909\u6570\u5024\u306e\u78ba\u8a8d\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_CoreDumpAnalysis.png\"><img decoding=\"async\" loading=\"lazy\" width=\"926\" height=\"304\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_CoreDumpAnalysis.png\" alt=\"\" class=\"wp-image-5606\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_CoreDumpAnalysis.png 926w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_CoreDumpAnalysis-300x98.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_GDB_CoreDumpAnalysis-768x252.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3057\u3066GDB\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4e0d\u5177\u5408\u306e\u539f\u56e0\u3092\u76f4\u63a5\u89e3\u6790\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage.png\"><br><\/a><\/p>\n\n\n\n<div id=\"cont2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9 &#8211; gprof\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3068\u89e3\u6790\u624b\u9806<\/h2>\n\n\n\n<div id=\"cont2-1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">gprof\u3068\u306f\uff1f<\/h3>\n\n\n\n<p>GDB\u540c\u69d8Linux\u306b\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d7\u30ed\u30d5\u30a1\u30a4\u30e9\u3067\u3059\u3002\u95a2\u6570\u306e\u5b9f\u884c\u6642\u9593\u3060\u3051\u3067\u306a\u304f\u3001\u547c\u3073\u51fa\u3057\u56de\u6570\u306e\u6e2c\u5b9a\u3084\u69cb\u9020\u8868\u793a\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u201c-pg\u201d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u52a0\u3057\u3066\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\u30d3\u30eb\u30c9\u6642\u306e\u30b3\u30de\u30f3\u30c9\u4f8b\" data-enlighter-group=\"\">> gcc -pg app.c -o app<\/pre>\n\n\n\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u201cgmon.out\u201d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u306a\u304a\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u6b63\u5e38\u7d42\u4e86\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u4f7f\u7528\u3067\u304d\u308b\u30b7\u30c1\u30e5\u30a8\u30fc\u30b7\u30e7\u30f3\u306f\u9650\u5b9a\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_gmon_out.png\"><img decoding=\"async\" loading=\"lazy\" width=\"622\" height=\"141\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_gmon_out.png\" alt=\"\" class=\"wp-image-5610\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_gmon_out.png 622w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_gmon_out-300x68.png 300w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u5074\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u8aad\u307f\u8fbc\u307f\u53ef\u80fd\u3067\u3059\u3002\u958b\u767aPC\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3001\u30b3\u30d4\u30fc\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b&#8221;gprof&#8221;\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059(&#8220;app&#8221;\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3067\u3059)\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"gmon\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\" data-enlighter-group=\"\">> gprof app<\/pre>\n\n\n\n<div id=\"cont2-2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">gprof\u3092\u4f7f\u3063\u3066\u51e6\u7406\u6642\u9593\u3092\u89e3\u6790\u3059\u308b<\/h3>\n\n\n\n<p>gprof\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u95a2\u6570\u3054\u3068\u306e\u5b9f\u884c\u6642\u9593\u3092\u89e3\u6790\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u95a2\u6570\u306e\u305d\u306e\u307e\u307e\u306e\u5b9f\u884c\u6642\u9593\u306f\u3082\u3061\u308d\u3093\u3001\u30b5\u30d6\u95a2\u6570(\u89e3\u6790\u5bfe\u8c61\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u308b\u95a2\u6570)\u306e\u6642\u9593\u5024\u3092\u5dee\u3057\u5f15\u3044\u305f\u5b9f\u884c\u6642\u9593\u3082\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result.png\"><img decoding=\"async\" loading=\"lazy\" width=\"913\" height=\"413\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result.png\" alt=\"\" class=\"wp-image-5611\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result.png 913w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result-300x136.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result-768x347.png 768w\" sizes=\"(max-width: 913px) 100vw, 913px\" \/><\/a><\/figure><\/div>\n\n\n<p>gprof\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u7d50\u679c\u306f\u3053\u308c\u3060\u3051\u3067\u306a\u304f\u3001\u95a2\u6570\u968e\u5c64\u3092\u52a0\u5473\u3057\u305f\u5f62\u3067\u306e\u8868\u793a\u3082\u53ef\u80fd\u3067\u3059\u3002\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u69cb\u9020\u3092\u628a\u63e1\u3067\u304d\u308b\u3088\u3046\u3001\u53f3\u7aef\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u95a2\u6570\u306e\u9805\u76ee\u306f\u547c\u3073\u51fa\u3057\u69cb\u9020\u3092\u52a0\u5473\u3057\u3066\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u547c\u3073\u51fa\u3057\u56de\u6570\u3084\u51e6\u7406\u6642\u9593\u306e\u5360\u6709\u7387\u306a\u3069\u3082\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"416\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1-1024x416.png\" alt=\"\" class=\"wp-image-5670\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1-1024x416.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1-300x122.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1-768x312.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1-1080x439.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_gprof_result2-1.png 1223w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u3053\u308c\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u610f\u56f3\u3057\u306a\u3044\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u304c\u306a\u3044\u304b\u3001\u3042\u308b\u3044\u306f\u3069\u306e\u30d1\u30bf\u30fc\u30f3\u306e\u547c\u3073\u51fa\u3057\u30d5\u30ed\u30fc\u3067\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u308b\u306e\u304b\u3001\u306a\u3069\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>gprof\u306f\u6a19\u6e96\u7684\u306a\u30c4\u30fc\u30eb\u3068\u3057\u3066\u5229\u7528\u53ef\u80fd\u3067\u3059\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6b63\u5e38\u7d42\u4e86\u304c\u5fc5\u8981\u3067\u3042\u308b\u70b9\u3084\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u7cbe\u5ea6\u306b\u5236\u7d04\u304c\u3042\u308b\u305f\u3081\u3001\u3088\u308a\u8a73\u7d30\u304b\u3064\u9ad8\u5ea6\u306a\u89e3\u6790\u3084\u3001\u30ab\u30fc\u30cd\u30eb\u30ec\u30d9\u30eb\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001perf\u306a\u3069\u306e\u4ee3\u66ff\u30c4\u30fc\u30eb\u3092\u691c\u8a0e\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div id=\"cont3\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">CPU\u306e\u8ca0\u8377\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u628a\u63e1 &#8211; TOP\u30b3\u30de\u30f3\u30c9\u306e\u6d3b\u7528<\/h2>\n\n\n\n<p>\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306eCPU\u306e\u5360\u6709\u7387\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306e\u628a\u63e1\u306b\u306f\u3001TOP\u30b3\u30de\u30f3\u30c9\u304c\u4fbf\u5229\u3067\u3059\u3002TOP\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u5168\u4f53\u306eCPU\u3084\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u4e0b\u306e\u30ea\u30b9\u30c8\u90e8\u5206\u306b\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u30e1\u30e2\u30ea\u3084CPU\u306e\u4f7f\u7528\u7387\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_TOP.png\"><img decoding=\"async\" loading=\"lazy\" width=\"550\" height=\"206\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_TOP.png\" alt=\"\" class=\"wp-image-5617\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_TOP.png 550w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_TOP-300x112.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u8868\u793a\u30c7\u30fc\u30bf\u306f\u5b9a\u5468\u671f\u3067\u66f4\u65b0\u3055\u308c\u308b\u305f\u3081\u3001\u5b9f\u969b\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3055\u305b\u306a\u304c\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u5024\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u3042\u308b\u7279\u5b9a\u306e\u64cd\u4f5c\u3092\u884c\u3063\u3066\u305d\u306e\u969b\u306eCPU\u306e\u5360\u6709\u7387\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3001\u305d\u306e\u64cd\u4f5c\u304c\u7d42\u308f\u3063\u305f\u3089CPU\u306e\u5360\u6709\u7387\u304c\u4e0b\u304c\u308b\u306e\u304b\u3001\u4e0b\u304c\u3089\u306a\u3051\u308c\u3070\u4f55\u304b\u610f\u56f3\u3057\u306a\u3044\u51e6\u7406\u304c\u64cd\u4f5c\u5f8c\u3082\u884c\u308f\u308c\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3001\u3068\u3044\u3063\u305f\u89b3\u70b9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"cont4\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u691c\u51fa &#8211; MEMWATCH<\/h2>\n\n\n\n<p>MEMWATCH\u306fmalloc\u3084free\u306a\u3069\u30e1\u30e2\u30ea\u306e\u5272\u308a\u5f53\u3066\u30fb\u89e3\u653e\u95a2\u6570\u3092\u30d5\u30c3\u30af(MEMWATCH\u304c\u76e3\u8996\u3067\u304d\u308b\u30e2\u30ce\u306b\u7f6e\u304d\u63db\u3048)\u3057\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3084\u30e1\u30e2\u30ea\u306e\u30a2\u30af\u30bb\u30b9\u9055\u53cd(\u591a\u91cd\u958b\u653e)\u3092\u691c\u51fa\u3059\u308b\u306e\u306b\u6709\u52b9\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u4f8b\u3048\u3070TOP\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u3044\u308b\u3068\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u7387\u304c\u5f90\u3005\u306b\u5897\u3048\u3066\u3044\u304f\u3068\u3044\u3063\u305f\u73fe\u8c61\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u3001\u3069\u306e\u51e6\u7406\u306b\u3088\u3063\u3066\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u304b\u3092MEMWATCH\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"cont4-1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">Github\u304b\u3089\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306eGDB\u306a\u3069\u3068\u7570\u306a\u308a\u3001\u4e8b\u524d\u306b<a href=\"https:\/\/github.com\/502110983\/MemWatch\">GitHub<\/a>\u304b\u3089MEMWATCH\u306e\u51e6\u7406\u306b\u5fc5\u8981\u306a\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u30fb\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u3092\u5165\u624b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u305d\u3057\u3066\u5165\u624b\u3057\u305f\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb(memwatch.h)\u3092\u3001\u5bfe\u8c61\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_include-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"390\" height=\"97\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_include-1.png\" alt=\"\" class=\"wp-image-5631\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_include-1.png 390w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_include-1-300x75.png 300w\" sizes=\"(max-width: 390px) 100vw, 390px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u305d\u306e\u3046\u3048\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u201c<i>-DMEMWATCH<\/i>\u201d\u3001\u201c<i>\u2013DMW_STUDIO<\/i>\u201d\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u52a0\u3057\u3066\u5165\u624b\u3057\u305fmemwatch.c\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306b\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u3067\u6e96\u5099\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"monokai\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"memwatch \u4f8b\" data-enlighter-group=\"\">> gcc -DMEMWATCH \u2013DMW_STUDIO memwatch.c xx.c \u30fb\u30fb\u30fb<\/pre>\n\n\n\n<div id=\"cont4-2\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u691c\u51fa\u3059\u308b<\/h3>\n\n\n\n<p>\u5b9f\u969b\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b&#8221;memwatch.log&#8221;\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFileGenerated-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"634\" height=\"170\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFileGenerated-1.png\" alt=\"\" class=\"wp-image-5632\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFileGenerated-1.png 634w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFileGenerated-1-300x80.png 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u306e\u307e\u307e\u958b\u3051\u3070\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3055\u308c\u305f\u969b\u306e\u30e1\u30e2\u30ea\u306e\u78ba\u4fdd\u30fb\u89e3\u653e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"523\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile-1024x523.png\" alt=\"\" class=\"wp-image-5669\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile-1024x523.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile-300x153.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile-768x392.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile-1080x551.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_memwatch_LogFile.png 1144w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3084\u30a2\u30af\u30bb\u30b9\u9055\u53cd\u306a\u3069\u304c\u3001\u3069\u3053\u3067\u767a\u751f\u3057\u305f\u306e\u304b\u3059\u3050\u306b\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br>MEMWATCH\u3082\u6709\u7528\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u3088\u308a\u4e00\u822c\u7684\u306a\u30e1\u30e2\u30ea\u30c7\u30d0\u30c3\u30b0\u30c4\u30fc\u30eb\u3068\u3057\u3066Valgrind\u3082\u3042\u308a\u307e\u3059\u3002Valgrind\u306f\u3001\u518d\u30d3\u30eb\u30c9\u306e\u5fc5\u8981\u304c\u306a\u304f\u3001\u65e2\u5b58\u306e\u30d0\u30a4\u30ca\u30ea\u306b\u5bfe\u3057\u3066\u3088\u308a\u8a73\u7d30\u306a\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u691c\u51fa\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<div id=\"cont4-3\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u306e\u5146\u5019\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u3082\u3057\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u304c\u7591\u308f\u308c\u308b\u5834\u5408\u306f\u3001\u672c\u8a18\u4e8b\u3067\u89e3\u8aac\u3059\u308b\u30c7\u30d0\u30c3\u30b0\u30c4\u30fc\u30eb\u3092\u4f7f\u3046\u524d\u306b\u3001\u307e\u305a\u306fTOP\u30b3\u30de\u30f3\u30c9\u306a\u3069\u3067\u305d\u306e\u5146\u5019\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u91cd\u8981\u3067\u3059\u3002\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u304c\u7d99\u7d9a\u7684\u306b\u5897\u52a0\u3057\u3066\u3044\u308b\u306a\u3069\u306e\u73fe\u8c61\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"box_border_gray\">\u95a2\u9023\u8a18\u4e8b\uff1a<a href=\"https:\/\/hldc.co.jp\/blog\/2020\/06\/04\/4130\/\">\u7d44\u8fbc\u307fLinux\u306e\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u76e3\u8996\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n\n\n\n<div id=\"cont5\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u307e\u3068\u3081\u3066\u89e3\u6790 \u2013&nbsp;\u52d5\u7684\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb&nbsp;DT+<\/h2>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u305d\u308c\u305e\u308c\u5225\u500b\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30d3\u30eb\u30c9\u3057\u305f\u308a\u3001\u89e3\u6790\u3082\u5225\u3005\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u5b9f\u306f\u306a\u304b\u306a\u304b\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u8ab2\u984c\u306f\u5f0a\u793e\u306e<a href=\"https:\/\/hldc.co.jp\/product_service\/development\/test-automation\/\">\u52d5\u7684\u30c6\u30b9\u30c8\u30c4\u30fc\u30ebDT+\u30b7\u30ea\u30fc\u30ba<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"339\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage-1024x339.png\" alt=\"\" class=\"wp-image-5637\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage-1024x339.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage-300x99.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage-768x254.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage-1080x357.png 1080w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/12\/LinuxDebug_DTPlusImage.png 1461w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>printf\u30c7\u30d0\u30c3\u30b0\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u4ed5\u8fbc\u307f(DT+\u304c\u81ea\u52d5\u3067\u5b9f\u884c)\u3001\u5b9f\u969b\u306b\u52d5\u4f5c\u3055\u305b\u305f\u969b\u306b\u30ed\u30b0\u3092\u53d6\u5f97\u3059\u308b\u30c4\u30fc\u30eb\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u53d6\u5f97\u3057\u305f\u30ed\u30b0\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u81ea\u52d5\u3067\u89e3\u6790\u3055\u308c\u3001\u4f8b\u3048\u3070\u5b9f\u884c\u7d4c\u8def\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/04\/LinuxMemInfo_FuncTransitionScope.png\"><img decoding=\"async\" loading=\"lazy\" width=\"850\" height=\"435\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/04\/LinuxMemInfo_FuncTransitionScope.png\" alt=\"\" class=\"wp-image-4337\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/04\/LinuxMemInfo_FuncTransitionScope.png 850w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/04\/LinuxMemInfo_FuncTransitionScope-300x154.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/04\/LinuxMemInfo_FuncTransitionScope-768x393.png 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure><\/div>\n\n\n<p>\u305d\u308c\u3060\u3051\u3067\u306a\u304f\u3001\u51e6\u7406\u6642\u9593\u306e\u89e3\u6790\u3084CPU\u306e\u8ca0\u8377\u304c\u9ad8\u3044\u3068\u304d\u306e\u51e6\u7406\u306e\u78ba\u8a8d\u306a\u3069\u3001\u69d8\u3005\u306a\u89e3\u6790\u304c\u4e00\u5ea6\u306e\u30ed\u30b0\u53d6\u5f97\u3067\u884c\u3048\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c7\u30d0\u30c3\u30b0\u30b3\u30de\u30f3\u30c9\u306e\u3088\u3046\u306b\u3001\u898b\u305f\u3044\u3082\u306e\u306b\u5408\u308f\u305b\u3066\u3044\u3061\u3044\u3061\u30ed\u30b0\u3092\u53d6\u5f97\u3059\u308b\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u305b\u3093\u3002\u4f55\u3088\u308aGUI\u3067\u64cd\u4f5c\u3067\u304d\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u8ab0\u3082\u304c\u76f4\u611f\u7684\u306b\u89e3\u6790\u3067\u304d\u308b\u306e\u304c\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<div id=\"cont5-1\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h3 class=\"wp-block-heading underline\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u3068\u30ab\u30fc\u30cd\u30eb\u5c64\u3092\u307e\u3068\u3081\u3066\u89e3\u6790<\/h3>\n\n\n\n<p>\u307e\u305f\u3001\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u30c7\u30d0\u30c3\u30b0\u30b3\u30de\u30f3\u30c9\u3067\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u307f\u304c\u89e3\u6790\u5bfe\u8c61\u3068\u306a\u308b\u305f\u3081\u3001\u30ab\u30fc\u30cd\u30eb\u5c64\u306b\u3042\u305f\u308b\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u306a\u3069\u306e\u51e6\u7406\u306f\u3055\u3089\u306b\u5225\u9014\u89e3\u6790\u65b9\u6cd5\u3092\u8003\u3048\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u3042\u305f\u308a\u3082DT+Trace\u3092\u4f7f\u7528\u3059\u308c\u3070\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u3068\u30ab\u30fc\u30cd\u30eb\u5c64\u306e\u30ed\u30b0\u3092\u540c\u6642\u306b\u53d6\u5f97\u3057\u89e3\u6790\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5229\u70b9\u304b\u3089\u3001Linux\u306e\u958b\u767a\u73fe\u5834\u3067\u3082\u591a\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div id=\"cont6\" class=\"anchor\">&nbsp;<\/div>\n\n\n\n<h2 class=\"wp-block-heading title\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u958b\u767a\u30e1\u30f3\u30d0\u30fc\u306b\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6d78\u900f\u3055\u305b\u3066\u3001\u30c1\u30fc\u30e0\u5168\u4f53\u3068\u3057\u3066\u904b\u7528\u3057\u3066\u3044\u304f\u3053\u3068\u306f\u3001\u591a\u304f\u306e\u65b9\u3005\u304c\u82e6\u52b4\u3055\u308c\u3066\u3044\u308b\u8ab2\u984c\u3067\u3059\u3002\u307e\u305fprint\u6587\u3092\u99c6\u4f7f\u3057\u3066\u529b\u696d\u3067\u884c\u3046\u3068\u3044\u3046\u65b9\u3082\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u304c\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u6a5f\u5668\u306e\u5185\u90e8\u51e6\u7406\u3092\u89e3\u6790\u3059\u308b\u624b\u6bb5\u3092\u5897\u3084\u3059\u304d\u3063\u304b\u3051\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002\u307e\u305f\u73fe\u72b6\u306e\u624b\u6cd5\u306b\u9650\u754c\u3092\u611f\u3058\u3066\u3044\u308b\u3001\u8ab0\u3067\u3082\u78ba\u5b9f\u306b\u30c7\u30d0\u30c3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3001\u305d\u3093\u306a\u65b9\u306f\u5f0a\u793e\u306e\u30c4\u30fc\u30eb\u3092\u9078\u629e\u80a2\u306b\u5165\u308c\u3066\u307f\u307e\u305b\u3093\u304b\u3002<\/p>\n\n\n<div class=\"box_border_gray\">\n<h5>\u3010 \u7121\u6599\u3067\u307f\u3089\u308c\u308b\uff01 \u3011<br \/>\n\u52d5\u7684\u30c6\u30b9\u30c8\u30c4\u30fc\u30ebDT+ \u30c7\u30e2\u52d5\u753b<\/h5>\n<figure><img decoding=\"async\" class=\"aligncenter wp-image-14406 size-large\" src=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2024\/09\/bnr_dtplus_demo_video.png\" alt=\"\" width=\"1024\" srcset=\"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2024\/09\/bnr_dtplus_demo_video.png 1185w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2024\/09\/bnr_dtplus_demo_video-300x114.png 300w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2024\/09\/bnr_dtplus_demo_video-1024x390.png 1024w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2024\/09\/bnr_dtplus_demo_video-768x292.png 768w, https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2024\/09\/bnr_dtplus_demo_video-1080x411.png 1080w\" sizes=\"(max-width: 1185px) 100vw, 1185px\" \/><\/figure>\n<p style=\"margin:20px 0;\">\n\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u8005\u306e\u305f\u3081\u306e\u52d5\u7684\u30c6\u30b9\u30c8\u30c4\u30fc\u30eb\u300cDT+\u300d\u3092\u3054\u7d39\u4ecb\u3059\u308b\u52d5\u753b\u3067\u3059\u3002<br \/>\n\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u306b\u3088\u308a\u30ed\u30b0\u3092\u53ce\u96c6\u3057\u3001\u591a\u5f69\u306a\u89e3\u6790\u6a5f\u80fd\u306b\u3088\u308a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u52d5\u4f5c\u3092\u3053\u307e\u304b\u304f\u898b\u3048\u308b\u5316\u3002\u305f\u3063\u305f\u6570\u30af\u30ea\u30c3\u30af\u306e\u89e3\u6790\u3067\u3001\u95a2\u6570\u9077\u79fb\u3084\u5909\u6570\u306e\u5909\u52d5\u3001\u30ab\u30d0\u30ec\u30c3\u30b8\u3092\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306b\u8868\u793a\u3057\u307e\u3059\u3002\u672c\u52d5\u753b\u3067\u306f\u3001\u305d\u3093\u306aDT+\u306e\u5c0e\u5165\u624b\u6cd5\u304b\u3089\u5b9f\u969b\u306e\u89e3\u6790\u306e\u69d8\u5b50\u307e\u3067\u3001\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u3044\u305f\u3057\u307e\u3059\u3002<br \/>\u624b\u52d5\u30c7\u30d0\u30c3\u30b0\u3084\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u306e\u7169\u96d1\u3055\u304b\u3089\u89e3\u653e\u3055\u308c\u3001\u52b9\u7387\u7684\u306a\u89e3\u6790\u3092\u5b9f\u73fe\u3057\u305f\u3044\u65b9\u306f\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n<\/p>\n<a class=\"button button-blue\" target=\"_blank\" href=\"https:\/\/go.hldc.co.jp\/dtplus-demo-video\" onclick=\"gtag('event', 'Click', {'event_category': 'WebLink','event_label': 'toDTPlus\u30c7\u30e2\u52d5\u753b_from5532'});\" style=\"margin-top:10px;\">\u52d5\u753b\u3067\u89e3\u6790\u306e\u69d8\u5b50\u3092\u898b\u308b\uff01<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>IoT\u6a5f\u5668\u306e\u666e\u53ca\u306b\u4f34\u3044\u3001\u3053\u308c\u307e\u3067Linux\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u6a5f\u5668\u3067\u3082Linux\u3067\u958b\u767a\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002\u3067\u3059\u304c\u3001Linux\u306e\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u306f\u8ab0\u3082\u304c\u3059\u3050\u306b\u4f7f\u3044\u3053\u306a\u305b\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u958b\u767a\u30e1\u30f3\u30d0\u306b\u3088\u3063\u3066\u30b9\u30ad\u30eb\u306e\u5dee\u304c\u3042\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u305d\u308c\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9032\u3081\u308b\u3046\u3048\u3067\u306e\u8ab2\u984c\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u4eca\u56de\u306f\u3001GDB(\u30c7\u30d0\u30c3\u30ac)\u3084\u30d7\u30ed\u30d5\u30a1\u30a4\u30ea\u30f3\u30b0\u3001\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u691c\u51fa\u306a\u3069Linux\u306e\u30c7\u30d0\u30c3\u30b0\u30b3\u30de\u30f3\u30c9\u3084\u30c4\u30fc\u30eb\u3092\u3044\u304f\u3064\u304b\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3001\u305d\u306e\u4f7f\u3044\u65b9\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":5,"featured_media":5593,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_links_to":"","_links_to_target":""},"categories":[20,28,2],"tags":[],"featured_image_src":"https:\/\/hldc.co.jp\/blog\/wp-content\/uploads\/2020\/11\/LinuxDebug_Welcome-400x250.jpg","post_categories":[{"term_id":20,"name":"IoT","link":"https:\/\/hldc.co.jp\/blog\/category\/iot\/"},{"term_id":28,"name":"Linux","link":"https:\/\/hldc.co.jp\/blog\/category\/linux\/"},{"term_id":2,"name":"\u6280\u8853\u60c5\u5831","link":"https:\/\/hldc.co.jp\/blog\/category\/technical\/"}],"_links":{"self":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5532"}],"collection":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=5532"}],"version-history":[{"count":40,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5532\/revisions"}],"predecessor-version":[{"id":16846,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5532\/revisions\/16846"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/media\/5593"}],"wp:attachment":[{"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=5532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=5532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hldc.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=5532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}