{"id":85308,"date":"2026-07-27T11:17:04","date_gmt":"2026-07-27T03:17:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85308.html"},"modified":"2026-07-27T11:17:04","modified_gmt":"2026-07-27T03:17:04","slug":"ftrace-perf-ebpf%ef%bc%9alinux%e6%80%a7%e8%83%bd%e8%a7%82%e6%b5%8b%e5%b7%a5%e5%85%b7%e7%9a%84%e5%af%b9%e6%af%94%e4%b8%8e%e5%8d%8f%e5%90%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85308.html","title":{"rendered":"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c"},"content":{"rendered":"<h2>ftrace\/perf\/eBPF&#xff1a;Linux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c<\/h2>\n<h3>\u4e00\u3001\u6027\u80fd\u89c2\u6d4b\u7684\u4e09\u5c42\u6a21\u578b\u4e0e\u5de5\u5177\u77e9\u9635<\/h3>\n<p>\u6027\u80fd\u95ee\u9898\u7684\u6392\u67e5\u9075\u5faa\u4e00\u4e2a\u7ecf\u5178\u7684\u4e09\u5c42\u6a21\u578b\u3002\u7b2c\u4e00\u5c42\u662f&#034;\u4fe1\u53f7\u5c42&#034;\u2014\u2014\u770b\u5230\u7cfb\u7edf\u6307\u6807\u5f02\u5e38&#xff1a;CPU\u5229\u7528\u7387\u7a81\u7136\u98d9\u5230100%\u3001\u78c1\u76d8IO\u5ef6\u8fdf\u4ece2ms\u8df3\u5230200ms\u3001\u5185\u5b58OOM Killer\u89e6\u53d1\u3002\u7b2c\u4e8c\u5c42\u662f&#034;\u5206\u6790\u5c42&#034;\u2014\u2014\u9700\u8981\u5b9a\u4f4d\u5230\u5177\u4f53\u662f\u54ea\u4e2a\u8fdb\u7a0b\u3001\u54ea\u6bb5\u4ee3\u7801\u3001\u54ea\u4e2a\u51fd\u6570\u8c03\u7528\u5bfc\u81f4\u7684\u3002\u7b2c\u4e09\u5c42\u662f&#034;\u4fee\u590d\u5c42&#034;\u2014\u2014\u7406\u89e3\u6839\u56e0\u540e\u4fee\u6539\u4ee3\u7801\u6216\u914d\u7f6e\u3002<\/p>\n<p>\u95ee\u9898\u5728\u4e8e\u591a\u6570\u5de5\u7a0b\u5e08\u7684\u6392\u67e5\u8def\u5f84\u662f\u4ece\u76d1\u63a7\u9762\u677f\u8df3\u8fdb\u5e94\u7528\u65e5\u5fd7&#xff0c;\u7136\u540e\u9677\u5165&#034;\u52a0\u65e5\u5fd7\u2192\u91cd\u65b0\u90e8\u7f72\u2192\u89c2\u5bdf\u2192\u518d\u52a0\u65e5\u5fd7&#034;\u7684\u5faa\u73af\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6548\u7387\u6781\u4f4e&#xff0c;\u800c\u4e14\u5bf9\u5185\u6838\u7ea7\u522b\u7684\u6027\u80fd\u95ee\u9898&#xff08;\u5982\u4e0a\u4e0b\u6587\u5207\u6362\u98ce\u66b4\u3001\u7f3a\u9875\u5f02\u5e38\u3001\u81ea\u65cb\u9501\u4e89\u7528&#xff09;\u5b8c\u5168\u65e0\u529b\u3002<\/p>\n<p>Linux\u5185\u6838\u63d0\u4f9b\u4e86\u4e09\u4e2a\u6838\u5fc3\u6280\u672f\u89e3\u51b3\u5206\u6790\u5c42\u7684\u9700\u6c42&#xff1a;ftrace\u3001perf\u548ceBPF\u3002\u5b83\u4eec\u5404\u6709\u4e13\u957f&#xff0c;\u4e5f\u5404\u6709\u76f2\u533a\u3002<\/p>\n<p>flowchart TB<br \/>\n    subgraph \u4fe1\u53f7\u5c42<br \/>\n        S1[Prometheus\/Grafana]<br \/>\n        S2[CPU\u4f7f\u7528\u7387\u98d9\u5347]<br \/>\n        S3[\u5185\u5b58OOM]<br \/>\n        S4[IO\u5ef6\u8fdf\u5f02\u5e38]<br \/>\n    end<\/p>\n<p>    subgraph \u5206\u6790\u5c42<br \/>\n        A1[ftrace&lt;br\/&gt;\u51fd\u6570\u8ffd\u8e2a\/\u5ef6\u8fdf\u5206\u6790]<br \/>\n        A2[perf&lt;br\/&gt;\u91c7\u6837\u5256\u6790\/PMU\u8ba1\u6570]<br \/>\n        A3[eBPF&lt;br\/&gt;\u52a8\u6001\u63d2\u6869\/\u53ef\u7f16\u7a0b\u8ffd\u8e2a]<br \/>\n    end<\/p>\n<p>    subgraph \u4fee\u590d\u5c42<br \/>\n        R1[\u4ee3\u7801\u4f18\u5316]<br \/>\n        R2[\u914d\u7f6e\u8c03\u4f18]<br \/>\n        R3[\u67b6\u6784\u8c03\u6574]<br \/>\n    end<\/p>\n<p>    S2 &#8211;&gt; A1<br \/>\n    S3 &#8211;&gt; A2<br \/>\n    S4 &#8211;&gt; A3<br \/>\n    A1 &#8211;&gt; R1<br \/>\n    A2 &#8211;&gt; R2<br \/>\n    A3 &#8211;&gt; R3<\/p>\n<p>    style A1 fill:#4CAF50,color:#fff<br \/>\n    style A2 fill:#2196F3,color:#fff<br \/>\n    style A3 fill:#FF9800,color:#fff<\/p>\n<h3>\u4e8c\u3001ftrace&#xff1a;\u5185\u6838\u51fd\u6570\u8ffd\u8e2a\u7684\u539f\u751f\u652f\u6301<\/h3>\n<p>ftrace\u662f\u5185\u6838\u5185\u7f6e\u7684\u8ffd\u8e2a\u6846\u67b6&#xff0c;\u5176\u8bbe\u8ba1\u54f2\u5b66\u662f&#034;\u6700\u5c0f\u4fb5\u5165\u6027&#034;\u3002\u5b83\u901a\u8fc7\u5728\u5185\u6838\u7f16\u8bd1\u65f6\u5728\u51fd\u6570\u5165\u53e3\u5904\u63d2\u5165mcount\/fentry\u8c03\u7528\u70b9&#xff0c;\u8fd0\u884c\u65f6\u7531ftrace\u52a8\u6001\u66ff\u6362\u8fd9\u4e9b\u8c03\u7528\u70b9\u4e3anop&#xff08;\u4e0d\u8ffd\u8e2a\u65f6&#xff09;\u6216ftrace\u7684\u5904\u7406\u51fd\u6570&#xff08;\u8ffd\u8e2a\u65f6&#xff09;\u3002\u8fd9\u610f\u5473\u7740\u5173\u95edftrace\u65f6\u6027\u80fd\u5f00\u9500\u4e3a\u96f6\u3002<\/p>\n<p>ftrace\u6700\u5b9e\u7528\u7684\u4e09\u4e2a\u5b50\u529f\u80fd\u662ffunction tracer\u3001function graph tracer\u548ctrace events\u3002<\/p>\n<p>function tracer\u8ffd\u8e2a\u51fd\u6570\u8c03\u7528\u3002\u7528\u6cd5\u975e\u5e38\u7b80\u5355&#xff1a;<\/p>\n<p>echo function &gt; \/sys\/kernel\/debug\/tracing\/current_tracer<br \/>\necho &#034;tcp_sendmsg&#034; &gt; \/sys\/kernel\/debug\/tracing\/set_ftrace_filter<br \/>\ncat \/sys\/kernel\/debug\/tracing\/trace<br \/>\n# \u8f93\u51fa:<br \/>\n#  kworker-123   [001] &#8230; 12345.678: tcp_sendmsg &lt;-sock_sendmsg<\/p>\n<p>function graph tracer\u6bd4function tracer\u591a\u663e\u793a\u51fd\u6570\u8fd4\u56de\u70b9\u548c\u6267\u884c\u65f6\u957f&#xff0c;\u5bf9\u4e8e\u5206\u6790&#034;\u54ea\u4e2a\u5b50\u51fd\u6570\u6d88\u8017\u4e86\u6700\u591a\u65f6\u95f4&#034;\u7279\u522b\u6709\u6548\u3002<\/p>\n<p>echo function_graph &gt; \/sys\/kernel\/debug\/tracing\/current_tracer<br \/>\necho &#034;ext4_file_write_iter&#034; &gt; \/sys\/kernel\/debug\/tracing\/set_graph_function<br \/>\ncat \/sys\/kernel\/debug\/tracing\/trace<\/p>\n<p>trace events\u662fftrace\u6700\u5f3a\u5927\u7684\u90e8\u5206\u2014\u2014\u5185\u6838\u5728\u5173\u952e\u8def\u5f84\u57cb\u8bbe\u4e86\u51e0\u5343\u4e2a\u9759\u6001tracepoint\u3002\u8c03\u5ea6\u5668\u3001\u7f51\u7edc\u6808\u3001\u6587\u4ef6\u7cfb\u7edf\u3001\u5757\u8bbe\u5907\u9a71\u52a8\u90fd\u6709\u5404\u81ea\u7684tracepoint\u3002\u901a\u8fc7tracepoint&#xff0c;\u53ef\u4ee5\u96f6\u4fb5\u5165\u5730\u89c2\u6d4b\u5185\u6838\u7684\u884c\u4e3a&#xff1a;<\/p>\n<p># \u8ffd\u8e2a\u6240\u6709TCP\u91cd\u4f20\u4e8b\u4ef6<br \/>\necho 1 &gt; \/sys\/kernel\/debug\/tracing\/events\/tcp\/tcp_retransmit_skb\/enable<br \/>\ncat \/sys\/kernel\/debug\/tracing\/trace_pipe<\/p>\n<p>ftrace\u7684\u5c40\u9650\u6027\u5728\u4e8e\u5b83\u662f\u5185\u6838\u8ffd\u8e2a\u6846\u67b6&#xff0c;\u7528\u6237\u6001\u8fdb\u7a0b\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f\u6709\u9650\u3002\u800c\u4e14ftrace\u7684\u8f93\u51fa\u662f\u539f\u59cb\u6587\u672c&#xff0c;\u9700\u8981\u914d\u5408\u5de5\u5177&#xff08;\u5982trace-cmd\u3001Kernelshark&#xff09;\u505a\u53ef\u89c6\u5316\u548c\u5206\u6790\u3002\u5bf9\u4e8e\u590d\u6742\u7684\u6027\u80fd\u5206\u6790\u573a\u666f&#xff0c;ftrace\u66f4\u9002\u5408\u4f5c\u4e3a&#034;\u786e\u8ba4\u6000\u7591\u65b9\u5411&#034;\u7684\u521d\u6b65\u5de5\u5177&#xff0c;\u800c\u975e\u6df1\u5ea6\u5256\u6790\u7684\u4e3b\u8981\u6b66\u5668\u3002<\/p>\n<h3>\u4e09\u3001perf&#xff1a;\u57fa\u4e8ePMU\u7684\u91c7\u6837\u5256\u6790\u5668<\/h3>\n<p>perf\u5efa\u7acb\u5728CPU\u7684\u786c\u4ef6\u6027\u80fd\u8ba1\u6570\u5668&#xff08;PMU&#xff0c;Performance Monitoring Unit&#xff09;\u4e4b\u4e0a\u3002\u73b0\u4ee3CPU&#xff08;Intel\/AMD\/ARM&#xff09;\u90fd\u5185\u7f6e\u4e86PMU&#xff0c;\u53ef\u4ee5\u8ba1\u6570\u7f13\u5b58\u672a\u547d\u4e2d\u3001\u5206\u652f\u9884\u6d4b\u5931\u8d25\u3001\u6307\u4ee4\u6267\u884c\u6570\u7b49\u5fae\u89c2\u4e8b\u4ef6\u3002perf\u901a\u8fc7\u91c7\u6837&#xff08;Sampling&#xff09;\u65b9\u5f0f&#xff1a;\u4ee5\u56fa\u5b9a\u9891\u7387&#xff08;\u9ed8\u8ba44000Hz&#xff09;\u89e6\u53d1\u4e2d\u65ad&#xff0c;\u8bb0\u5f55\u5f53\u524d\u6b63\u5728\u6267\u884c\u7684\u6307\u4ee4\u5730\u5740\u548c\u8c03\u7528\u6808&#xff0c;\u65e0\u9700\u4fee\u6539\u4efb\u4f55\u4ee3\u7801\u3002<\/p>\n<p>perf\u6700\u6838\u5fc3\u7684\u4e09\u4e2a\u547d\u4ee4&#xff1a;perf stat&#xff08;\u8ba1\u6570&#xff09;\u3001perf record&#xff08;\u91c7\u6837\u8bb0\u5f55&#xff09;\u3001perf report&#xff08;\u62a5\u544a\u5206\u6790&#xff09;\u3002<\/p>\n<p>perf stat\u56de\u7b54&#034;\u8fd9\u6bb5\u7a0b\u5e8f\u5728CPU\u4e0a\u53d1\u751f\u4e86\u4ec0\u4e48&#034;&#xff1a;<\/p>\n<p>perf stat -e cycles,instructions,cache-misses,branch-misses &#8212; .\/myapp<br \/>\n# \u8f93\u51fa&#xff1a;<br \/>\n#  1,234,567,890  cycles<br \/>\n#    987,654,321  instructions    # 0.80  insn per cycle<br \/>\n#     12,345,678  cache-misses    # 15.2% of all cache refs<br \/>\n#      1,234,567  branch-misses   # 2.34% of all branches<\/p>\n<p>IPC&#xff08;\u6bcf\u5468\u671f\u6307\u4ee4\u6570&#xff09;\u5c0f\u4e8e1\u8bf4\u660e\u7a0b\u5e8f\u53d7\u5185\u5b58\u5ef6\u8fdf\u7ea6\u675f&#xff08;Memory Bound&#xff09;&#xff0c;\u4f18\u5316\u65b9\u5411\u5e94\u8be5\u653e\u5728\u51cf\u5c11\u7f13\u5b58\u672a\u547d\u4e2d\u4e0a\u3002\u7f13\u5b58\u672a\u547d\u4e2d\u7387\u8d85\u8fc710%\u5c31\u9700\u8981\u5173\u6ce8\u6570\u636e\u7ed3\u6784\u7684\u5c40\u90e8\u6027\u3002<\/p>\n<p>perf record &#043; report\u751f\u6210\u706b\u7130\u56fe\u7ea7\u522b\u7684\u8c03\u7528\u6808\u5206\u6790&#xff1a;<\/p>\n<p># \u91c7\u683710\u79d2&#xff0c;\u8bb0\u5f55\u8c03\u7528\u6808&#xff08;-g&#xff09;<br \/>\nperf record -g -p $(pidof mysqld) &#8212; sleep 10<br \/>\nperf report &#8211;stdio<\/p>\n<p># \u751f\u6210\u706b\u7130\u56fe<br \/>\nperf script | stackcollapse-perf.pl | flamegraph.pl &gt; flame.svg<\/p>\n<p>\u70ed\u70b9\u7684\u67e5\u627e\u6bd4\u60f3\u8c61\u4e2d\u66f4\u4f9d\u8d56\u7ecf\u9a8c\u3002\u4e00\u4e2a\u5e38\u89c1\u9677\u9631\u662f\u628a&#034;\u91c7\u6837\u6570\u6700\u591a\u7684\u51fd\u6570&#034;\u7b49\u540c\u4e8e&#034;\u9700\u8981\u4f18\u5316\u7684\u51fd\u6570&#034;\u3002\u5185\u6838\u4e2d\u7684copy_user_enhanced_fast_string&#xff08;\u7528\u6237\u6001\u5185\u5b58\u62f7\u8d1d&#xff09;\u901a\u5e38\u91c7\u6837\u6570\u5f88\u9ad8&#xff0c;\u4f46\u5b83\u662f\u5fc5\u8981\u7684\u5f00\u9500&#xff0c;\u4f18\u5316\u8981\u5f80\u4e0a\u6e38\u627e\u662f\u8c01\u9891\u7e41\u8c03\u7528\u4e86\u5b83\u3002<\/p>\n<p>perf\u7684\u4e3b\u8981\u5f31\u70b9\u662f\u5bf9\u52a8\u6001\u884c\u4e3a&#xff08;\u5982\u6709\u6761\u4ef6\u7684\u9501\u4e89\u7528&#xff09;\u4e0d\u591f\u7075\u654f\u3002\u91c7\u6837\u53ea\u80fd\u6355\u83b7\u91c7\u6837\u77ac\u95f4\u7684\u72b6\u6001&#xff0c;\u5982\u679c\u67d0\u4e2a\u9501\u53ea\u5728\u7279\u5b9a\u4e1a\u52a1\u5cf0\u8c37\u4ea4\u66ff\u65f6\u77ed\u6682\u4e89\u7528&#xff0c;perf\u5927\u6982\u7387\u91c7\u4e0d\u5230\u3002\u8fd9\u5c31\u662feBPF\u5927\u663e\u8eab\u624b\u7684\u573a\u666f\u3002<\/p>\n<h3>\u56db\u3001eBPF&#xff1a;\u53ef\u7f16\u7a0b\u5185\u6838\u53ef\u89c2\u6d4b\u6027<\/h3>\n<p>eBPF&#xff08;extended Berkeley Packet Filter&#xff09;\u662f\u6027\u80fd\u89c2\u6d4b\u9886\u57df\u771f\u6b63\u7684\u8303\u5f0f\u8f6c\u53d8\u3002\u5b83\u5141\u8bb8\u4f60\u5728\u5185\u6838\u4e2d\u8fd0\u884c\u6c99\u7bb1\u5316\u7684\u7a0b\u5e8f&#xff0c;\u52a8\u6001\u63d2\u6869\u4efb\u610f\u5185\u6838\u51fd\u6570\u3001\u7cfb\u7edf\u8c03\u7528\u3001tracepoint\u751a\u81f3\u7528\u6237\u6001\u51fd\u6570\u3002\u800c\u4e14eBPF\u7a0b\u5e8f\u662f\u4e8b\u4ef6\u9a71\u52a8\u7684&#xff0c;\u4e0d\u50cfperf\u90a3\u6837\u4f9d\u8d56\u91c7\u6837\u3002<\/p>\n<p>eBPF\u7684\u5de5\u4f5c\u6d41\u7a0b\u662f&#xff1a;\u7528\u6237\u6001\u7a0b\u5e8f&#xff08;Python\/Go\/C&#xff09;\u7f16\u5199eBPF\u7a0b\u5e8f\u6e90\u7801&#xff0c;\u7f16\u8bd1\u4e3aBPF\u5b57\u8282\u7801&#xff0c;\u901a\u8fc7bpf()\u7cfb\u7edf\u8c03\u7528\u52a0\u8f7d\u5230\u5185\u6838&#xff0c;\u5185\u6838\u9a8c\u8bc1\u5668&#xff08;Verifier&#xff09;\u68c0\u67e5\u5b89\u5168\u6027\u540eJIT\u7f16\u8bd1\u4e3a\u672c\u5730\u673a\u5668\u7801&#xff0c;\u6700\u540e\u6302\u8f7d\u5230\u6307\u5b9a\u7684\u94a9\u5b50\u70b9&#xff08;kprobe\/tracepoint\/uprobe\u7b49&#xff09;\u4e0a\u3002<\/p>\n<p>from bcc import BPF<\/p>\n<p># \u8ffd\u8e2a\u6240\u6709\u8fdb\u7a0b\u7684exec\u7cfb\u7edf\u8c03\u7528&#xff0c;\u8bb0\u5f55\u8fdb\u7a0b\u540d\u548c\u53c2\u6570<br \/>\nbpf_code &#061; &#034;&#034;&#034;<br \/>\n#include &lt;uapi\/linux\/ptrace.h&gt;<br \/>\nBPF_HASH(execs, u32, u64);<\/p>\n<p>TRACEPOINT_PROBE(syscalls, sys_enter_execve) {<br \/>\n    char comm[TASK_COMM_LEN];<br \/>\n    bpf_get_current_comm(&amp;comm, sizeof(comm));<br \/>\n    bpf_trace_printk(&#034;exec: %s\\\\\\\\n&#034;, comm);<br \/>\n    return 0;<br \/>\n}<br \/>\n&#034;&#034;&#034;<br \/>\nb &#061; BPF(text&#061;bpf_code)<br \/>\nb.trace_print()<\/p>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u6392\u67e5\u8fc7\u4e00\u4e2a\u7ecf\u5178\u7684eBPF\u6848\u4f8b&#xff1a;\u67d0\u5fae\u670d\u52a1P99\u5ef6\u8fdf\u5468\u671f\u6027\u98d9\u5347\u81f3500ms&#xff0c;perf\u91c7\u6837\u6ca1\u6709\u53d1\u73b0\u5f02\u5e38\u70ed\u70b9&#xff0c;ftrace\u6ca1\u6709\u5f02\u5e38\u7684\u51fd\u6570\u8017\u65f6\u3002\u901a\u8fc7eBPF\u5728schedule\u51fd\u6570\u4e0a\u6302\u8f7dkprobe&#xff0c;\u8bb0\u5f55\u8fdb\u7a0b\u88ab\u62a2\u5360\u65f6\u7684\u8c03\u7528\u6808\u548c\u7b49\u5f85\u65f6\u957f&#xff0c;\u6700\u7ec8\u5b9a\u4f4d\u5230\u662fcgroup\u7684CPU\u9650\u989d&#xff08;CFS quota&#xff09;\u5728\u4e1a\u52a1\u5cf0\u503c\u89e6\u53d1\u4e86throttle&#xff0c;\u5bfc\u81f4\u8fdb\u7a0b\u88ab\u5f3a\u5236\u505c\u752850ms\u3002<\/p>\n<p>\/\/ eBPF\u8ffd\u8e2amutex\u9501\u7b49\u5f85\u65f6\u95f4<br \/>\nBPF_HISTOGRAM(lock_wait_ns);<\/p>\n<p>int kprobe__mutex_lock(struct pt_regs *ctx) {<br \/>\n    u64 ts &#061; bpf_ktime_get_ns();<br \/>\n    u32 tid &#061; bpf_get_current_pid_tgid();<br \/>\n    lock_start.update(&amp;tid, &amp;ts);<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>int kretprobe__mutex_lock(struct pt_regs *ctx) {<br \/>\n    u32 tid &#061; bpf_get_current_pid_tgid();<br \/>\n    u64 *tsp &#061; lock_start.lookup(&amp;tid);<br \/>\n    if (tsp) {<br \/>\n        u64 delta &#061; bpf_ktime_get_ns() &#8211; *tsp;<br \/>\n        lock_wait_ns.increment(bpf_log2l(delta));<br \/>\n        lock_start.delete(&amp;tid);<br \/>\n    }<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>eBPF\u7684\u5b66\u4e60\u66f2\u7ebf\u662f\u6700\u9661\u5ced\u7684\u3002\u4f60\u9700\u8981\u7406\u89e3\u5185\u6838\u6570\u636e\u7ed3\u6784\u7684\u5185\u5b58\u5e03\u5c40\u3001\u638c\u63e1C\u8bed\u8a00&#xff08;eBPF\u7684C\u5b50\u96c6\u6709\u4e25\u683c\u9650\u5236&#xff09;\u3001\u80fd\u770b\u61c2Verifier\u7684\u9519\u8bef\u4fe1\u606f\u3002\u4f46\u8fd9\u4e9b\u6295\u5165\u6362\u6765\u7684\u80fd\u529b\u662f\u4e0d\u53ef\u66ff\u4ee3\u7684&#xff1a;\u4f60\u53ef\u4ee5\u8ba9\u5185\u6838\u56de\u7b54\u4efb\u4f55\u5173\u4e8e\u81ea\u8eab\u884c\u4e3a\u7684\u95ee\u9898\u3002<\/p>\n<p>flowchart LR<br \/>\n    subgraph \u9009\u62e9\u7b56\u7565<br \/>\n        Q{\u6027\u80fd\u95ee\u9898\u7c7b\u578b?}<br \/>\n        Q &#8211;&gt;|\u51fd\u6570\u8017\u65f6\u5206\u5e03| F[ftrace&lt;br\/&gt;function_graph]<br \/>\n        Q &#8211;&gt;|CPU\/\u7f13\u5b58\u5fae\u89c2\u6307\u6807| P[perf&lt;br\/&gt;stat\/record]<br \/>\n        Q &#8211;&gt;|\u52a8\u6001\u884c\u4e3a\/\u6761\u4ef6\u8ffd\u8e2a| E[eBPF&lt;br\/&gt;kprobe\/tracepoint]<br \/>\n        Q &#8211;&gt;|I\/O\u5ef6\u8fdf\u5206\u6790| F<br \/>\n        Q &#8211;&gt;|\u9501\u4e89\u7528\u5206\u6790| E<br \/>\n        Q &#8211;&gt;|\u706b\u7130\u56fe\/\u70ed\u70b9\u5206\u6790| P<br \/>\n        Q &#8211;&gt;|\u7cfb\u7edf\u8c03\u7528\u8ffd\u8e2a| E<br \/>\n    end<\/p>\n<p>    subgraph \u534f\u540c\u4f7f\u7528<br \/>\n        F &#8211;&gt; R[\u7efc\u5408\u5206\u6790]<br \/>\n        P &#8211;&gt; R<br \/>\n        E &#8211;&gt; R<br \/>\n        R &#8211;&gt; S[\u5b9a\u4f4d\u6839\u56e0]<br \/>\n    end<\/p>\n<p>    style F fill:#4CAF50,color:#fff<br \/>\n    style P fill:#2196F3,color:#fff<br \/>\n    style E fill:#FF9800,color:#fff<\/p>\n<h3>\u4e94\u3001\u603b\u7ed3&#xff1a;\u4e09\u8005\u7684\u804c\u8d23\u8fb9\u754c\u4e0e\u534f\u540c\u6a21\u5f0f<\/h3>\n<p>ftrace\u9002\u5408\u573a\u666f&#xff1a;\u51fd\u6570\u7ea7\u5ef6\u8fdf\u5206\u6790&#xff08;\u54ea\u4e2a\u51fd\u6570\u6700\u6162&#xff09;\u3001I\/O\u5ef6\u8fdf\u8ffd\u8e2a&#xff08;\u914d\u5408trace events&#xff09;\u3001\u8c03\u5ea6\u5668\u884c\u4e3a\u5206\u6790\u3002\u4f18\u52bf\u662f\u96f6\u914d\u7f6e&#xff08;\u5185\u6838\u5185\u7f6e&#xff09;&#xff0c;\u52a3\u52bf\u662f\u7528\u6237\u6001\u4fe1\u606f\u6709\u9650\u3002<\/p>\n<p>perf\u9002\u5408\u573a\u666f&#xff1a;CPU\u70ed\u70b9\u5206\u6790&#xff08;\u706b\u7130\u56fe&#xff09;\u3001PMU\u5fae\u89c2\u6307\u6807&#xff08;IPC\/\u7f13\u5b58\u547d\u4e2d\u7387&#xff09;\u3001\u5927\u8303\u56f4\u6027\u80fd\u753b\u50cf\u3002\u4f18\u52bf\u662f\u91c7\u6837\u5f00\u9500\u6781\u4f4e&#xff08;&lt;1%&#xff09;&#xff0c;\u52a3\u52bf\u662f\u5bf9\u52a8\u6001\/\u6761\u4ef6\u884c\u4e3a\u4e0d\u654f\u611f\u3002<\/p>\n<p>eBPF\u9002\u5408\u573a\u666f&#xff1a;\u9501\u4e89\u7528\u5206\u6790\u3001\u6761\u4ef6\u89e6\u53d1\u8ffd\u8e2a\u3001\u5b9a\u5236\u5316\u6307\u6807\u7684\u5b9e\u65f6\u91c7\u96c6\u3001\u77ed\u65f6\u5f02\u5e38\u6392\u67e5\u3002\u4f18\u52bf\u662f\u7075\u6d3b\u6027\u65e0\u53ef\u6bd4\u62df\u3001\u4e8b\u4ef6\u9a71\u52a8\u4e0d\u4e22\u4fe1\u606f&#xff0c;\u52a3\u52bf\u662f\u5b66\u4e60\u66f2\u7ebf\u9661\u5ced\u3001\u9700\u8981\u8f83\u9ad8\u5185\u6838\u7248\u672c\u3002<\/p>\n<p>\u534f\u540c\u4f7f\u7528\u4e09\u90e8\u66f2&#xff1a;\u5148\u7528perf\u505a\u5168\u5c40\u753b\u50cf\u786e\u5b9a\u95ee\u9898\u7c7b\u522b&#xff0c;\u518d\u7528ftrace\u6df1\u5165\u53ef\u7591\u51fd\u6570\u770b\u5ef6\u8fdf\u5206\u5e03&#xff0c;\u6700\u540e\u7528eBPF\u9488\u5bf9\u5177\u4f53\u573a\u666f\u505a\u7cbe\u51c6\u8ffd\u8e2a\u3002\u4e09\u8005\u4e0d\u662f\u66ff\u4ee3\u5173\u7cfb&#xff0c;\u800c\u662f\u9010\u6b65\u6df1\u5165\u7684\u9012\u8fdb\u5173\u7cfb\u3002<\/p>\n<p>\u5de5\u5177\u94fe\u7248\u672c\u8981\u6c42&#xff1a;ftrace\u81ea2.6.27\u5185\u6838\u5373\u5185\u7f6e\u65e0\u7248\u672c\u95ee\u9898\u3002perf\u9700\u6ce8\u610f\u4e0e\u5185\u6838\u7248\u672c\u7684\u517c\u5bb9\u6027&#xff08;perf\u5de5\u5177\u7248\u672c\u2265\u5185\u6838\u7248\u672c&#xff09;\u3002eBPF\u8981\u6c42\u5185\u6838\u22654.9&#xff08;\u57fa\u672c\u529f\u80fd&#xff09;\u3001\u22655.4&#xff08;CO-RE\u53ef\u79fb\u690d\u6027&#xff09;\u6216\u22655.15&#xff08;\u7a33\u5b9a\u751f\u4ea7\u4f7f\u7528&#xff09;&#xff0c;BCC\/bpftrace\u7b49\u524d\u7aef\u9700\u8981\u5bf9\u5e94\u4f9d\u8d56\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ftrace\/perf\/eBPF&#xff1a;Linux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c<br \/>\n\u4e00\u3001\u6027\u80fd\u89c2\u6d4b\u7684\u4e09\u5c42\u6a21\u578b\u4e0e\u5de5\u5177\u77e9\u9635<br \/>\n\u6027\u80fd\u95ee\u9898\u7684\u6392\u67e5\u9075\u5faa\u4e00\u4e2a\u7ecf\u5178\u7684\u4e09\u5c42\u6a21\u578b\u3002\u7b2c\u4e00\u5c42\u662f\\&#8221;\u4fe1\u53f7\u5c42\\&#8221;\u2014\u2014\u770b\u5230\u7cfb\u7edf\u6307\u6807\u5f02\u5e38&#xff1a;CPU\u5229\u7528\u7387\u7a81\u7136\u98d9\u5230100%\u3001\u78c1\u76d8IO\u5ef6\u8fdf\u4ece2ms\u8df3\u5230200ms\u3001\u5185\u5b58OOM Killer\u89e6\u53d1\u3002\u7b2c\u4e8c\u5c42\u662f\\&#8221;\u5206\u6790\u5c42\\&#8221;\u2014\u2014\u9700\u8981\u5b9a\u4f4d\u5230\u5177\u4f53\u662f\u54ea\u4e2a\u8fdb\u7a0b\u3001\u54ea\u6bb5\u4ee3\u7801\u3001\u54ea\u4e2a\u51fd\u6570\u8c03\u7528\u5bfc\u81f4\u7684\u3002\u7b2c\u4e09\u5c42\u662f\\&#8221;\u4fee\u590d\u5c42\\&#8221;\u2014\u2014\u7406\u89e3\u6839\u56e0\u540e\u4fee\u6539\u4ee3\u7801\u6216\u914d\u7f6e\u3002<br \/>\n\u95ee\u9898\u5728\u4e8e\u591a\u6570\u5de5\u7a0b\u5e08\u7684\u6392\u67e5\u8def\u5f84\u662f\u4ece\u76d1\u63a7\u9762\u677f\u8df3\u8fdb\u5e94<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9152,58,219],"topic":[],"class_list":["post-85308","post","type-post","status-publish","format-standard","hentry","category-server","tag-9152","tag-linux","tag-219"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/85308.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"ftrace\/perf\/eBPF&#xff1a;Linux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c \u4e00\u3001\u6027\u80fd\u89c2\u6d4b\u7684\u4e09\u5c42\u6a21\u578b\u4e0e\u5de5\u5177\u77e9\u9635 \u6027\u80fd\u95ee\u9898\u7684\u6392\u67e5\u9075\u5faa\u4e00\u4e2a\u7ecf\u5178\u7684\u4e09\u5c42\u6a21\u578b\u3002\u7b2c\u4e00\u5c42\u662f&quot;\u4fe1\u53f7\u5c42&quot;\u2014\u2014\u770b\u5230\u7cfb\u7edf\u6307\u6807\u5f02\u5e38&#xff1a;CPU\u5229\u7528\u7387\u7a81\u7136\u98d9\u5230100%\u3001\u78c1\u76d8IO\u5ef6\u8fdf\u4ece2ms\u8df3\u5230200ms\u3001\u5185\u5b58OOM Killer\u89e6\u53d1\u3002\u7b2c\u4e8c\u5c42\u662f&quot;\u5206\u6790\u5c42&quot;\u2014\u2014\u9700\u8981\u5b9a\u4f4d\u5230\u5177\u4f53\u662f\u54ea\u4e2a\u8fdb\u7a0b\u3001\u54ea\u6bb5\u4ee3\u7801\u3001\u54ea\u4e2a\u51fd\u6570\u8c03\u7528\u5bfc\u81f4\u7684\u3002\u7b2c\u4e09\u5c42\u662f&quot;\u4fee\u590d\u5c42&quot;\u2014\u2014\u7406\u89e3\u6839\u56e0\u540e\u4fee\u6539\u4ee3\u7801\u6216\u914d\u7f6e\u3002 \u95ee\u9898\u5728\u4e8e\u591a\u6570\u5de5\u7a0b\u5e08\u7684\u6392\u67e5\u8def\u5f84\u662f\u4ece\u76d1\u63a7\u9762\u677f\u8df3\u8fdb\u5e94\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85308.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T03:17:04+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85308.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85308.html\",\"name\":\"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T03:17:04+00:00\",\"dateModified\":\"2026-07-27T03:17:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85308.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85308.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85308.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/85308.html","og_locale":"zh_CN","og_type":"article","og_title":"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"ftrace\/perf\/eBPF&#xff1a;Linux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c \u4e00\u3001\u6027\u80fd\u89c2\u6d4b\u7684\u4e09\u5c42\u6a21\u578b\u4e0e\u5de5\u5177\u77e9\u9635 \u6027\u80fd\u95ee\u9898\u7684\u6392\u67e5\u9075\u5faa\u4e00\u4e2a\u7ecf\u5178\u7684\u4e09\u5c42\u6a21\u578b\u3002\u7b2c\u4e00\u5c42\u662f\"\u4fe1\u53f7\u5c42\"\u2014\u2014\u770b\u5230\u7cfb\u7edf\u6307\u6807\u5f02\u5e38&#xff1a;CPU\u5229\u7528\u7387\u7a81\u7136\u98d9\u5230100%\u3001\u78c1\u76d8IO\u5ef6\u8fdf\u4ece2ms\u8df3\u5230200ms\u3001\u5185\u5b58OOM Killer\u89e6\u53d1\u3002\u7b2c\u4e8c\u5c42\u662f\"\u5206\u6790\u5c42\"\u2014\u2014\u9700\u8981\u5b9a\u4f4d\u5230\u5177\u4f53\u662f\u54ea\u4e2a\u8fdb\u7a0b\u3001\u54ea\u6bb5\u4ee3\u7801\u3001\u54ea\u4e2a\u51fd\u6570\u8c03\u7528\u5bfc\u81f4\u7684\u3002\u7b2c\u4e09\u5c42\u662f\"\u4fee\u590d\u5c42\"\u2014\u2014\u7406\u89e3\u6839\u56e0\u540e\u4fee\u6539\u4ee3\u7801\u6216\u914d\u7f6e\u3002 \u95ee\u9898\u5728\u4e8e\u591a\u6570\u5de5\u7a0b\u5e08\u7684\u6392\u67e5\u8def\u5f84\u662f\u4ece\u76d1\u63a7\u9762\u677f\u8df3\u8fdb\u5e94","og_url":"https:\/\/www.wsisp.com\/helps\/85308.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T03:17:04+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/85308.html","url":"https:\/\/www.wsisp.com\/helps\/85308.html","name":"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T03:17:04+00:00","dateModified":"2026-07-27T03:17:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85308.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85308.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85308.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ftrace\/perf\/eBPF\uff1aLinux\u6027\u80fd\u89c2\u6d4b\u5de5\u5177\u7684\u5bf9\u6bd4\u4e0e\u534f\u540c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=85308"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85308\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85308"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}