{"id":230176,"date":"2021-11-20T10:32:46","date_gmt":"2021-11-20T02:32:46","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=230176"},"modified":"2021-11-14T18:33:24","modified_gmt":"2021-11-14T10:33:24","slug":"sdk-and-troubleshooting","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/sdk-and-troubleshooting.html","title":{"rendered":"SDK\u4e0e\u95ee\u9898\u6392\u67e5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5f53\u6211\u4eec\u4ee5 sdk \u7684\u65b9\u5f0f\u63d0\u4f9b\u4e00\u79cd\u80fd\u529b\u7684\u65f6\u5019\uff0c\u6211\u4eec\u7684\u5b9e\u73b0\u4e0d\u4ec5\u51b3\u5b9a\u4e86\u4e1a\u52a1\u7684\u4f7f\u7528\u65b9\u5f0f\u548c\u6210\u672c\uff0c\u8fd8\u51b3\u5b9a\u7528\u6237\u662f\u5426\u4e50\u610f\u4f7f\u7528\u5b83\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

SDK\u5927\u5bb6\u90fd\u4e0d\u964c\u751f\uff0c\u6bd4\u5982\u6211\u4eec\u7ecf\u5e38\u7528\u5230\u7684 npm \u5305\u3002\u5f53\u6211\u4eec\u4ee5 sdk \u7684\u65b9\u5f0f\u63d0\u4f9b\u4e00\u79cd\u80fd\u529b\u7684\u65f6\u5019\uff0c\u6211\u4eec\u7684\u5b9e\u73b0\u4e0d\u4ec5\u51b3\u5b9a\u4e86\u4e1a\u52a1\u7684\u4f7f\u7528\u65b9\u5f0f\u548c\u6210\u672c\uff0c\u8fd8\u51b3\u5b9a\u7528\u6237\u662f\u5426\u4e50\u610f\u4f7f\u7528\u5b83\u3002\u6240\u4ee5\u6211\u4eec\u4e0d\u80fd\u53ea\u8003\u8651\u5230\u529f\u80fd\uff0c\u8fd8\u9700\u8981\u8003\u8651\u5230\u4f7f\u7528\u65b9\u5f0f\u4ee5\u53ca sdk \u672c\u8eab\u5bf9\u4e1a\u52a1\u7684\u5f71\u54cd\uff0c\u4e0d\u7ba1\u662f\u7a33\u5b9a\u6027\u8fd8\u662f\u6027\u80fd\u3002\u5f53\u6211\u4eec\u7684 sdk \u5bf9\u4e1a\u52a1\u6765\u8bf4\u662f\u521a\u9700\u65f6\uff0c\u5982\u679c sdk \u6709\u95ee\u9898\uff0c\u4e1a\u52a1\u53ef\u80fd\u4f1a\u8054\u7cfb\u6211\u4eec\u5904\u7406\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u8fd9\u4e2a sdk\u3002\u4f46\u662f\u5982\u679c\u5bf9\u4e1a\u52a1\u6765\u8bf4\u8fd9\u4e2a sdk \u4e0d\u662f\u521a\u9700\u65f6\uff0c\u4e1a\u52a1\u53ef\u80fd\u76f4\u63a5 uninstall \u6211\u4eec\u7684 sdk \u5e76\u5220\u9664\u5bf9\u5e94\u7684\u4ee3\u7801\u3002\u8fd9\u5bf9\u4e8e\u63d0\u4f9b sdk \u7684\u6211\u4eec\u6765\u8bf4\u663e\u7136\u4e0d\u662f\u4e2a\u597d\u4e8b\u60c5\u3002\u4f46\u662f\u4e0d\u7ba1\u662f\u5426\u521a\u9700\uff0c\u4f5c\u4e3a\u63d0\u4f9b\u65b9\uff0c\u6211\u4eec\u90fd\u9700\u8981\u52aa\u529b\u53bb\u505a\u597d\u6240\u63d0\u4f9b\u7684\u670d\u52a1\u3002<\/p>\n

\u5185\u5d4c\u5f62\u5f0f<\/strong><\/div>\n

\u6211\u4eec\u4f7f\u7528\u7684 sdk \u5927\u591a\u6570\u90fd\u662f\u5f15\u5165\u4e1a\u52a1\u4ee3\u7801\u4e2d\uff0c\u7136\u540e\u4f7f\u7528\u5b83\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6709\u4e24\u79cd\u6a21\u5f0f\uff0c\u7b2c\u4e00\u79cd\u662f\u4e1a\u52a1\u8981\u611f\u77e5 sdk \u63d0\u4f9b\u7684 API\u3002\u6211\u4eec\u9700\u8981\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528\u4ec0\u4e48 API\u3002\u7b2c\u4e8c\u79cd\u662f\u4e1a\u52a1\u4e0d\u9700\u8981\u611f\u77e5 sdk \u63d0\u4f9b\u7684 API\uff0c\u6216\u8005\u8bf4\u8fd9\u65f6\u5019 sdk \u4e0d\u63d0\u4f9b API\uff0c\u5b83\u672c\u8eab\u5c31\u50cf\u4e00\u4e2a\u9ed1\u76d2\u5b50\uff0c\u4e1a\u52a1\u5f15\u5165\u540e\u5c31\u5185\u7f6e\u4e86\u67d0\u4e9b\u529f\u80fd\uff0c\u6bd4\u5982\u6211\u4eec\u63d0\u4f9b\u4e00\u4e2a\u5b9a\u65f6\u4e0a\u62a5\u4e1a\u52a1\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u7684 sdk\uff0c\u90a3\u4e48\u4e1a\u52a1\u5c31\u4e0d\u9700\u8981\u5173\u6ce8 sdk \u7684\u5177\u4f53\u5b9e\u73b0\u3002\u4e0b\u9762\u4ee5\u7edf\u8ba1\u8bf7\u6c42\u8017\u65f6\u4e3a\u4f8b\u770b\u770b\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e2a sdk\u3002<\/p>\n

1.\u7b2c\u4e00\u79cd<\/strong><\/span><\/div>\n
\r\n{ \r\n  start(...) {} \r\n  end(...) {} \r\n}<\/pre>\n

\u7b2c\u4e00\u79cd\u65b9\u5f0f\u662f\u6bd4\u8f83\u6734\u7d20\u7684\u5b9e\u73b0\uff0csdk \u63d0\u4f9b\u4e86\u4e00\u4e2a start \u548c end \u7684 API\uff0c\u4e1a\u52a1\u5728\u5f00\u59cb\u8bf7\u6c42\u548c\u7ed3\u675f\u8bf7\u6c42\u65f6\u5206\u522b\u6267\u884c\u8fd9\u4e24\u4e2a API\uff0c\u8fd9\u6837 sdk \u5c31\u53ef\u4ee5\u8ba1\u7b97\u51fa\u8fd9\u4e2a\u8bf7\u6c42\u7684\u8017\u65f6\u3002\u4f46\u662f\u8fd9\u79cd\u65b9\u5f0f\u770b\u8d77\u6765\u5e76\u4e0d\u662f\u90a3\u4e48\u53cb\u597d\uff0c\u9996\u5148\u4f1a\u4fb5\u5165\u4e1a\u52a1\u7684\u4ee3\u7801\u903b\u8f91\uff0c\u5176\u6b21\u4e1a\u52a1\u8fd8\u9700\u8981\u611f\u77e5\u8fd9\u4e2a sdk\uff0c\u9700\u8981\u8003\u8651\u4ec0\u4e48\u65f6\u5019\u8c03 start\uff0c\u4ec0\u4e48\u65f6\u5019\u8c03 end\uff0c\u800c\u4e14 sdk \u8fd8\u4f9d\u8d56\u4e1a\u52a1\u4f20\u5165\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u4e0a\u4e0b\u6587\uff0c\u624d\u80fd\u8ba1\u7b97\u51fa\u67d0\u4e00\u4e2a\u8bf7\u6c42\u7684\u8017\u65f6\uff0c\u603b\u7684\u6765\u8bf4\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6bd4\u8f83\u9ebb\u70e6\u3002<\/p>\n

2.\u7b2c\u4e8c\u79cd<\/strong><\/span><\/div>\n

\u6211\u4eec\u5e0c\u671b\u5bf9\u4e1a\u52a1\u7684\u4fb5\u5165\u6027\u548c\u611f\u77e5\u5c11\u4e00\u70b9\uff0c\u6240\u4ee5\u51b3\u5b9a\u76f4\u63a5\u52ab\u6301 Node.js \u91cc\u7684 API\u3002Node.js \u91cc\u4ee5\u4e0b\u9762\u7684\u5f62\u5f0f\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u670d\u52a1\u5668\u3002<\/p>\n

\r\nhttp.createServer((req, res) => {}) <\/pre>\n

\u90a3\u4e48\u6211\u4eec\u76f4\u63a5\u52ab\u6301\u8fd9\u4e2a createServer\u3002<\/p>\n

\r\nconst createServer = http.createServer; \r\nhttp.createServer = (cb) => { \r\n  return createServer((req, res) => { \r\n    const start = Date.now(); \r\n    res.on('finish', () => { \r\n        const cost = end - start; \r\n      }); \r\n    cb(); \r\n  }); \r\n}<\/pre>\n

\u901a\u5e38\uff0csdk \u662f\u63d0\u4f9b API\uff0c\u7531\u4e1a\u52a1\u4e3b\u52a8\u8c03\u7528\uff0c\u6216\u8005\u8bf4\u89e6\u53d1 sdk \u7684\u4ee3\u7801\uff0c\u56e0\u4e3a sdk \u65e0\u6cd5\u6355\u83b7\u4e1a\u52a1\u4ee3\u7801\u4ec0\u4e48\u65f6\u5019\u9700\u8981\u4f7f\u7528 sdk \u7684\u67d0\u4e2a\u529f\u80fd\u3002\u4f46\u662f\u5f53\u6211\u4eec\u53ef\u4ee5\u6355\u83b7\u5230\u4e1a\u52a1\u4ec0\u4e48\u65f6\u5019\u9700\u8981\u6211\u4eec\u65f6\uff0c\u5c31\u53ef\u4ee5\u4ee5\u66f4\u597d\u7684\u65b9\u5f0f\u53bb\u63d0\u4f9b\u8fd9\u4e2a sdk\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u4f7f\u5f97\u4e1a\u52a1\u4e0d\u9700\u8981\u8fc7\u591a\u611f\u77e5 sdk\uff0c\u6bd4\u5982\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u4e1a\u52a1\u53ea\u9700\u8981\u4fdd\u8bc1\u5728\u8c03\u7528http.createServer \u4e4b\u524d\u6267\u884c\u6211\u4eec\u7684 sdk \u5c31\u53ef\u4ee5\u3002sdk \u5185\u5d4c\u4e1a\u52a1\u4ee3\u7801\u4e2d\u662f\u975e\u5e38\u5e38\u89c1\u7684\u5f62\u5f0f\uff0c\u4f46\u662f\u6211\u4eec\u5e0c\u671b\u5c3d\u91cf\u51cf\u5c11\u5bf9\u4e1a\u52a1\u7684\u4fb5\u5165\uff0c\u6216\u8005\u8bf4\u51cf\u5c11\u4e1a\u52a1\u7684\u5fc3\u667a\u8d1f\u62c5\uff0c\u5927\u5bb6\u53ef\u80fd\u90fd\u6709\u8fc7\u8fd9\u79cd\u7ecf\u5386\uff0c\u5f53\u770b\u5230\u4e00\u4e2a sdk \u63d0\u4f9b\u5bc6\u5bc6\u9ebb\u9ebb\u7684\u53c2\u6570\u65f6\uff0c\u7b2c\u4e00\u53cd\u5e94\u5c31\u4e0d\u60f3\u7528\u4e86\u3002<\/p>\n

\u8131\u79bb\u4e1a\u52a1\u4ee3\u7801\u7684\u5f62\u5f0f<\/strong><\/div>\n

\u90a3\u4e48\u662f\u5426\u80fd\u4ee5\u4e00\u79cd\u8131\u79bb\u4e8e\u4e1a\u52a1\u4ee3\u7801\u7684\u65b9\u5f0f\u63d0\u4f9b\u4e00\u4e2a sdk\uff0c\u8fd9\u6837\u4e0d\u4ec5\u4e0d\u4f1a\u5f71\u54cd\u4e1a\u52a1\u4ee3\u7801\uff0c\u5bf9\u4e8e\u5347\u7ea7 sdk \u6765\u8bf4\u4e5f\u66f4\u5bb9\u6613\u3002\u4f46\u662f\u8fd9\u79cd\u65b9\u5f0f\u5f80\u5f80\u4e0d\u5bb9\u6613\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u573a\u666f\uff0c\u6bd4\u5982\u4e1a\u52a1\u9700\u8981\u901a\u8fc7\u4e00\u4e2a sdk \u4e0a\u4f20\u6587\u4ef6\uff0c\u90a3\u4e48\u8fd9\u4e2a sdk \u4ee5\u5185\u5d4c\u7684\u65b9\u5f0f\u4f1a\u6bd4\u8f83\u5408\u9002\u3002\u4f46\u662f\uff0c\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u8131\u79bb\u4e1a\u52a1\u4ee3\u7801\u7684 sdk \u662f\u53ef\u4ee5\u505a\u5230\u7684\uff0c\u6bd4\u5982\u6392\u67e5\u95ee\u9898\u7c7b\u7684\u5de5\u5177\u3002\u5728 Node.js \u91cc\uff0c\u6211\u4eec\u8c03\u8bd5\u6216\u8bca\u65ad\u8fdb\u7a0b\u7684\u65b9\u5f0f\u901a\u5e38\u662f\u5728\u4e1a\u52a1\u4ee3\u7801\u91cc\u5185\u5d4c\u76f8\u5173\u7684\u4ee3\u7801\uff0c\u7136\u540e\u5728\u5fc5\u8981\u7684\u65f6\u5019\u6267\u884c\u5bf9\u5e94\u7684\u4ee3\u7801\uff0c\u6bd4\u5982\u83b7\u53d6\u5806\u5feb\u7167\u3002\u56e0\u4e3a\u6211\u4eec\u7684\u4ee3\u7801\u53ea\u6709\u7f6e\u8eab\u4e8e\u8fdb\u7a0b\u4e2d\uff0c\u624d\u80fd\u83b7\u53d6\u5230\u8fd9\u4e2a\u4fe1\u606f\u3002\u4f46\u662f\u4e0d\u662f\u6240\u6709\u7684\u4fe1\u606f\u90fd\u9700\u8981\u7f6e\u8eab\u4e8e\u8fdb\u7a0b\u4e2d\u624d\u80fd\u83b7\u53d6\uff0c\u6bd4\u5982\u7cfb\u7edf\u7ea7\u7684\u6570\u636e\u3002\u6211\u4e4b\u524d\u78b0\u5230\u4e00\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u5728\u67d0\u4e2a\u573a\u666f\u4e0b\uff0cWebSocket \u8fde\u63a5\u4f1a\u5f88\u5feb\u5e95\u88ab\u65ad\u5f00\uff0c\u901a\u8fc7\u518d\u5ba2\u6237\u7aef wireshark \u6355\u83b7\u7684\u6d41\u91cf\u4e2d\uff0c\u53d1\u73b0\u670d\u52a1\u5668\u4f1a\u53d1\u9001\u4e00\u4e2a fin \u5305\u7ed9\u5ba2\u6237\u7aef\uff0c\u8fd9\u6837\u5c31\u77e5\u9053\u662f\u670d\u52a1\u5668\u7684\u95ee\u9898\u4e86\uff0c\u4f46\u662f\u53c8\u56e0\u4e3a\u4ece\u5ba2\u6237\u7aef\u5230\u771f\u6b63\u7684\u670d\u52a1\u5668\u4e2d\u95f4\u8fd8\u9694\u4e86\u5f88\u591a\u5c42\uff0c\u65e0\u6cd5\u77e5\u9053\u662f\u54ea\u4e00\u5c42\u670d\u52a1\u5668\u4e3b\u52a8\u65ad\u5f00\u4e86\u8fde\u63a5\uff0c\u6700\u540e\u901a\u8fc7\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u5de5\u5177\u627e\u5230\u4e86\u4e3b\u52a8\u53d1\u9001 fin \u5305\u7684\u670d\u52a1\u5668\u4ece\u800c\u89e3\u51b3\u4e86\u95ee\u9898\u3002\u4f46\u662f\u6211\u53d1\u73b0\u670d\u52a1\u5668\u7684\u90a3\u4e9b\u5de5\u5177\u7528\u8d77\u6765\u90fd\u975e\u5e38\u590d\u6742\uff0c\u5982\u679c\u4e0d\u7ecf\u5e38\u7528\uff0c\u5f88\u5feb\u5c31\u5fd8\u4e86\u5404\u79cd\u547d\u4ee4\u548c\u53c2\u6570\uff0c\u50cf\u8fd9\u79cd\u573a\u666f\uff0c\u5c31\u53ef\u4ee5\u5c01\u88c5 sdk \u7ed9\u4e1a\u52a1\u4f7f\u7528\uff0c\u8fd9\u79cd\u5f62\u5f0f\u4e0d\u4ec5\u53ef\u4ee5\u5e2e\u52a9\u4e1a\u52a1\u6392\u67e5\u95ee\u9898\uff0c\u8fd8\u4e0d\u9700\u8981\u4fb5\u5165\u4e1a\u52a1\u4ee3\u7801\u3002<\/p>\n

\u95ee\u9898\u6392\u67e5<\/strong><\/div>\n

\u6211\u4eec\u6392\u67e5\u95ee\u9898\u901a\u5e38\u501f\u52a9\u65e5\u5fd7\uff0c\u4f46\u662f\u65e5\u5fd7\u5f88\u591a\u65f6\u5019\u4e5f\u89e3\u51b3\u4e0d\u4e86\u95ee\u9898\uff0c\u65e5\u5fd7\u662f\u9759\u6001\u57cb\u70b9\uff0c\u6253\u591a\u4e86\u4e0d\u4ec5\u6d6a\u8d39\u5b58\u50a8\uff0c\u800c\u4e14\u6d88\u8017\u6027\u80fd\uff0c\u6253\u5c11\u4e86\u53ef\u80fd\u7f3a\u5c11\u6392\u67e5\u95ee\u9898\u7684\u4e0a\u4e0b\u6587\u3002\u4f46\u662f\u65e0\u8bba\u5982\u4f55\uff0c\u91cd\u70b9\u662f\u65e5\u5fd7\u662f\u9759\u6001\u57cb\u70b9\uff0c\u5982\u679c\u6211\u4eec\u8981\u52a0\u57cb\u70b9\uff0c\u5c31\u5f97\u91cd\u542f\u670d\u52a1\uff0c\u6709\u4e9b\u95ee\u9898\u7a0d\u7eb5\u5373\u901d\uff0c\u91cd\u542f\u540e\u53ef\u80fd\u5c31\u5f88\u96be\u590d\u73b0\u4e86\u3002\u6240\u4ee5\u9664\u4e86\u9759\u6001\u8ffd\u8e2a\u6280\u672f\u5916\uff0c\u52a8\u6001\u8ffd\u8e2a\u6280\u672f\u5c31\u975e\u5e38\u5fc5\u8981\uff0c\u4e5f\u975e\u5e38 cool \u4e86\uff0c\u4e4b\u524d\u770b\u4e86\u4e00\u4e0b ebpf\uff0c\u4f46\u662f\u540e\u6765\u6ca1\u770b\u4e86\uff0c\u6700\u8fd1\u91cd\u65b0\u7814\u7a76\u4e86\u4e00\u4e0b ebpf \u548c\u6240\u884d\u751f\u7684\u4e00\u4e9b\u6392\u67e5\u95ee\u9898\u7684\u5de5\u5177\uff0c\u4e5f\u770b\u4e86\u4e00\u4e0b openresty \u4f5c\u8005\u7684\u6587\u7ae0\u300a\u52a8\u6001\u8ffd\u8e2a\u6280\u672f\u6f2b\u8c08\u300b\uff0c\u53ef\u8c13\u662f\u7cbe\u5f69\u3002\u5f53\u4e00\u4e2a\u8fdb\u7a0b\u6216\u8005\u7cfb\u7edf\u6709\u95ee\u9898\u65f6\uff0c\u6211\u4eec\u5e0c\u671b\u4fdd\u7559\u73b0\u573a\uff0c\u7136\u540e\u518d\u6162\u6162\u5206\u6790\u3002\u4f46\u662f\u6211\u4eec\u5728\u8fdb\u7a0b\u4e4b\u5916\u600e\u4e48\u80fd\u83b7\u5f97\u8fdb\u7a0b\u7684\u6570\u636e\u5462?\u9664\u4e86\u7cfb\u7edf\u672c\u8eab\u63d0\u4f9b\u7684\u4e00\u4e9b\u547d\u4ee4\u5916\uff0c\u8fd9\u91cc\u60f3\u8bf4\u7684\u662f\u4e00\u79cd\u66f4\u590d\u6742\u4f46\u66f4\u5f3a\u5927\u7684\u6280\u672f\u3002\u64cd\u4f5c\u7cfb\u7edf\u548c\u6211\u4eec\u5199\u7684\u4e1a\u52a1\u4ee3\u7801\u4e00\u6837\uff0c\u90fd\u662f\u4e00\u4e9b\u4ee3\u7801\u7684\u903b\u8f91\uff0c\u6211\u4eec\u5728\u5199\u4ee3\u7801\u65f6\uff0c\u7ecf\u5e38\u4f1a\u7528\u5230\u94a9\u5b50\u6216\u8005\u52ab\u6301\u7684\u6280\u672f\u3002\u540c\u6837\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u4e0d\u4f8b\u5b50\uff0c\u4f46\u662f\u64cd\u4f5c\u7cfb\u7edf\u4e3a\u4e86\u63d0\u4f9b\u8fd9\u79cd\u6280\u672f\uff0c\u5b9e\u73b0\u4e0a\u590d\u6742\u5f97\u591a\u3002\u8fd9\u79cd\u6280\u672f\u5c31\u662f ebpf\uff0cebpf \u662f\u628a\u7528\u6237\u5199\u7684\u4ee3\u7801\u6ce8\u5165\u5230\u5185\u6838\u4e2d\uff0c\u5185\u6838\u6709\u4e00\u4e2a\u865a\u62df\u673a\uff0c\u6ee1\u8db3\u6761\u4ef6\u7684\u65f6\u5019\u5c31\u4f1a\u6267\u884c\u6211\u4eec\u7684\u4ee3\u7801\u3002<\/p>\n

\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u4e86\u94a9\u5b50\u673a\u5236\uff0c\u6bd4\u5982\u6211\u4eec\u53ef\u4ee5\u6ce8\u518c\u4e00\u4e2a\u94a9\u5b50\u5230\u7cfb\u7edf\uff0c\u5f53\u7cfb\u7edf\u6536\u5230\u7f51\u7edc\u5305\u65f6\uff0c\u5c31\u4f1a\u56de\u8c03\u6211\u4eec\u3002\u53e6\u5916\u4e00\u79cd\u5c31\u662f\u52ab\u6301\uff0c\u6bd4\u5982 kprobe \u5230\u5b9e\u73b0\uff0c\u5f53\u6211\u4eec\u5199\u4e00\u6bb5\u4ee3\u7801\u6307\u793a\u64cd\u4f5c\u7cfb\u7edf\u5f53\u6709\u4eba\u8c03\u7528 x \u7684\u65f6\u5019\u56de\u8c03\u6211\u4eec\uff0c\u64cd\u4f5c\u7cfb\u7edf\u5c31\u4f1a\u628a\u8fd9\u4e2a\u5730\u5740\u5bf9\u5e94\u7684\u6307\u4ee4\u6539\u6210 int3(x86 \u67b6\u6784)\uff0c\u7136\u540e\u6267\u884c\u5230 x \u8fd9\u4e2a\u51fd\u6570\u7684\u65f6\u5019\uff0c\u5c31\u4f1a\u89e6\u53d1 int3 \u4e2d\u65ad\uff0c\u5bf9\u5e94\u7684\u5904\u7406\u51fd\u6570\u5c31\u4f1a\u6267\u884c\u6211\u4eec\u6ce8\u518c\u7684\u56de\u8c03\uff0c\u7136\u540e\u518d\u6267\u884c\u771f\u6b63\u7684\u51fd\u6570\u3002\u5f88\u591a\u6280\u672f\u90fd\u4f9d\u8d56 ebpf\uff0c\u6bd4\u5982 tcpdump\u3002ebpf \u5389\u5bb3\u4e4b\u5904\u5728\u4e8e\u5185\u6838\u7f16\u7a0b\u53ef\u7f16\u7a0b\u7684\u4e86\uff0c\u771f\u6b63\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u57fa\u4e8e ebpf \u7684\u5de5\u5177\uff0c\u4ece\u5185\u6838\u4e2d\u67e5\u5230\u975e\u5e38\u591a\u7684\u4fe1\u606f\uff0c\u4ee5\u5e2e\u52a9\u6211\u4eec\u6392\u67e5\u95ee\u9898\u3002ebpf \u975e\u5e38\u6d41\u884c\uff0c\u4e5f\u975e\u5e38\u590d\u6742\uff0c\u5c31\u4e0d\u8ba8\u8bba\u592a\u591a\uff0c\u5927\u5bb6\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

SDK\u5927\u5bb6\u90fd\u4e0d\u964c\u751f\uff0c\u6bd4\u5982\u6211\u4eec\u7ecf\u5e38\u7528\u5230\u7684 npm \u5305\u3002\u5f53\u6211\u4eec\u4ee5 sdk \u7684\u65b9\u5f0f\u63d0\u4f9b\u4e00\u79cd\u80fd\u529b\u7684\u65f6\u5019\uff0c\u6211\u4eec\u7684\u5b9e\u73b0\u4e0d\u4ec5 […]<\/p>\n","protected":false},"author":1329,"featured_media":230182,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-230176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/230176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=230176"}],"version-history":[{"count":5,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/230176\/revisions"}],"predecessor-version":[{"id":230183,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/230176\/revisions\/230183"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/230182"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=230176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=230176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=230176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}