<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nonylene</author_name>
  <author_url>https://blog.hatena.ne.jp/nonylene/</author_url>
  <blog_title>Unyablog.</blog_title>
  <blog_url>https://nonylene.hatenablog.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>eBPF</anon>
  </categories>
  <description>Linux の eBPF で BPF_MAP_TYPE_SK_STORAGE を使おうとして、map を定義して bpftool で流し込んだけど Invalid argument でうまく動かなかった。調べてもヒットしなくて長時間費やしたのでメモ。 環境は ArchLinux で Kernel release は 5.7.10-arch1-1。 TL;DR BTF に対応する必要がある。 詳細 struct bpf_map_def SEC(&quot;maps&quot;) sk_storage_map = { .type = BPF_MAP_TYPE_SK_STORAGE, .map_flags = BPF_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnonylene.hatenablog.jp%2Fentry%2F2020%2F07%2F28%2F032441&quot; title=&quot;eBPF: BPF_MAP_TYPE_SK_STORAGE が Invalid argument - Unyablog.&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>2020-07-28 03:24:41</published>
  <title>eBPF: BPF_MAP_TYPE_SK_STORAGE が Invalid argument</title>
  <type>rich</type>
  <url>https://nonylene.hatenablog.jp/entry/2020/07/28/032441</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
