OSDN Git Service

Merge branch 'skel-fixes'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 18 Dec 2019 06:16:36 +0000 (22:16 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 18 Dec 2019 06:16:40 +0000 (22:16 -0800)
commit58d8dc2a98f50d4741a49e047bd7b322d7692d0b
tree2b0baea8a420a4e6949b3ce8f7e9e374a549d186
parent4a3d6c6a6e4d652808729e7a2a8c3774a5a5c814
parentcb21ac58854605e6c15fd7da2c619823967b3140
Merge branch 'skel-fixes'

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: Alexei Starovoitov <ast@kernel.org>