<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>slankdev</author_name>
  <author_url>https://blog.hatena.ne.jp/slankdev/</author_url>
  <blog_title>高速通信計算研究所</blog_title>
  <blog_url>https://slankdev.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Packetとはなんなのかを理解するためにBPFをかじり始めたら どつぼにハマってしまい、とりあえずどんなことができるのかを 簡単なスクリプトを書いて試した. 目次 bpfで関数callをhookする bpfで関数callの引数をtraceする bpfで関数呼び出しの回数を取り出す 本記事で行う作業の一般的な手順を以下に示す BccでBPF Bytecodeを生成する hook pointにBytecodeを設定する 今回はiovisor/bccを用いてtracingを行った。 bpfで関数callをhookする 以下のslankdev_test関数の呼び出しをhookしてtracesする。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fslankdev.hatenablog.com%2Fentry%2F2017%2F04%2F30%2F163638&quot; title=&quot;BccとBPFでTracing - 高速通信計算研究所&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-30 16:36:38</published>
  <title>BccとBPFでTracing</title>
  <type>rich</type>
  <url>https://slankdev.hatenablog.com/entry/2017/04/30/163638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
