OSDN Git Service

perf: Expose get/put_callchain_entry()
authorSong Liu <songliubraving@fb.com>
Tue, 30 Jun 2020 06:28:43 +0000 (23:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 1 Jul 2020 15:22:08 +0000 (08:22 -0700)
commitd141b8bc5773cbbaf5b8530f08f94fc10fff9e8c
treeb38dafc5c0d9bd82ed208d027c505ea034f764d8
parentbba1dc0b55ac462d24ed1228ad49800c238cd6d7
perf: Expose get/put_callchain_entry()

Sanitize and expose get/put_callchain_entry(). This would be used by bpf
stack map.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200630062846.664389-2-songliubraving@fb.com
include/linux/perf_event.h
kernel/events/callchain.c