Searched hist:c09add2fbc5aece00a5b54a48ce39fd4e3284d87 (Results 1 – 6 of 6) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | bpf_tracing.h | diff c09add2fbc5aece00a5b54a48ce39fd4e3284d87 Sat May 09 19:59:17 CEST 2020 Yonghong Song <yhs@fb.com> tools/libbpf: Add bpf_iter support
Two new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_iter_create syscall level API to create a bpf iterator.
The macro BPF_SEQ_PRINTF are also introduced. The format looks like: BPF_SEQ_PRINTF(seq, "task id %d\n", pid);
This macro can help bpf program writers with nicer bpf_seq_printf syntax similar to the kernel one.
Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200509175917.2476936-1-yhs@fb.com
|
H A D | bpf.h | diff c09add2fbc5aece00a5b54a48ce39fd4e3284d87 Sat May 09 19:59:17 CEST 2020 Yonghong Song <yhs@fb.com> tools/libbpf: Add bpf_iter support
Two new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_iter_create syscall level API to create a bpf iterator.
The macro BPF_SEQ_PRINTF are also introduced. The format looks like: BPF_SEQ_PRINTF(seq, "task id %d\n", pid);
This macro can help bpf program writers with nicer bpf_seq_printf syntax similar to the kernel one.
Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200509175917.2476936-1-yhs@fb.com
|
H A D | bpf.c | diff c09add2fbc5aece00a5b54a48ce39fd4e3284d87 Sat May 09 19:59:17 CEST 2020 Yonghong Song <yhs@fb.com> tools/libbpf: Add bpf_iter support
Two new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_iter_create syscall level API to create a bpf iterator.
The macro BPF_SEQ_PRINTF are also introduced. The format looks like: BPF_SEQ_PRINTF(seq, "task id %d\n", pid);
This macro can help bpf program writers with nicer bpf_seq_printf syntax similar to the kernel one.
Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200509175917.2476936-1-yhs@fb.com
|
H A D | libbpf.map | diff c09add2fbc5aece00a5b54a48ce39fd4e3284d87 Sat May 09 19:59:17 CEST 2020 Yonghong Song <yhs@fb.com> tools/libbpf: Add bpf_iter support
Two new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_iter_create syscall level API to create a bpf iterator.
The macro BPF_SEQ_PRINTF are also introduced. The format looks like: BPF_SEQ_PRINTF(seq, "task id %d\n", pid);
This macro can help bpf program writers with nicer bpf_seq_printf syntax similar to the kernel one.
Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200509175917.2476936-1-yhs@fb.com
|
H A D | libbpf.h | diff c09add2fbc5aece00a5b54a48ce39fd4e3284d87 Sat May 09 19:59:17 CEST 2020 Yonghong Song <yhs@fb.com> tools/libbpf: Add bpf_iter support
Two new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_iter_create syscall level API to create a bpf iterator.
The macro BPF_SEQ_PRINTF are also introduced. The format looks like: BPF_SEQ_PRINTF(seq, "task id %d\n", pid);
This macro can help bpf program writers with nicer bpf_seq_printf syntax similar to the kernel one.
Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200509175917.2476936-1-yhs@fb.com
|
H A D | libbpf.c | diff c09add2fbc5aece00a5b54a48ce39fd4e3284d87 Sat May 09 19:59:17 CEST 2020 Yonghong Song <yhs@fb.com> tools/libbpf: Add bpf_iter support
Two new libbpf APIs are added to support bpf_iter: - bpf_program__attach_iter Given a bpf program and additional parameters, which is none now, returns a bpf_link. - bpf_iter_create syscall level API to create a bpf iterator.
The macro BPF_SEQ_PRINTF are also introduced. The format looks like: BPF_SEQ_PRINTF(seq, "task id %d\n", pid);
This macro can help bpf program writers with nicer bpf_seq_printf syntax similar to the kernel one.
Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200509175917.2476936-1-yhs@fb.com
|