1. 20 Dec, 2019 15 commits
  2. 19 Dec, 2019 23 commits
  3. 18 Dec, 2019 2 commits
    • Alexei Starovoitov's avatar
      Merge branch 'skel-fixes' · 58d8dc2a
      Alexei Starovoitov authored
      Andrii Nakryiko says:
      
      ====================
      Simplify skeleton usage by embedding source BPF object file inside skeleton
      itself. This allows to keep skeleton and object file in sync at all times with
      no chance of confusion.
      
      Also, add bpftool-gen.rst manpage, explaining concepts and ideas behind
      skeleton. In examples section it also includes a complete small BPF
      application utilizing skeleton, as a demonstration of API.
      
      Patch #2 also removes BPF_EMBED_OBJ, as there is currently no use of it.
      
      v2->v3:
      - (void) in no-args function (Alexei);
      - bpftool-gen.rst code block formatting fix (Alexei);
      - simplified xxx__create_skeleton to fill in obj and return error code;
      
      v1->v2:
      - remove whitespace from empty lines in code blocks (Yonghong).
      ====================
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      58d8dc2a
    • Andrii Nakryiko's avatar
      bpftool: Add gen subcommand manpage · cb21ac58
      Andrii Nakryiko authored
      Add bpftool-gen.rst describing skeleton on the high level. Also include
      a small, but complete, example BPF app (BPF side, userspace side, generated
      skeleton) in example section to demonstrate skeleton API and its usage.
      Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Acked-by: default avatarYonghong Song <yhs@fb.com>
      Link: https://lore.kernel.org/bpf/20191218052552.2915188-4-andriin@fb.com
      cb21ac58