bpf: Add missed value to kprobe perf link info
authorJiri Olsa <jolsa@kernel.org>
Wed, 20 Sep 2023 21:31:39 +0000 (23:31 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 25 Sep 2023 23:37:44 +0000 (16:37 -0700)
commit3acf8ace68230e9558cf916847f1cc9f208abdf1
tree70ce5ccd1c39ec915e37a03570b93736dbab55a1
parente2b2cd592adbd303bcc02451d32fedd511000fb0
bpf: Add missed value to kprobe perf link info

Add missed value to kprobe attached through perf link info to
hold the stats of missed kprobe handler execution.

The kprobe's missed counter gets incremented when kprobe handler
is not executed due to another kprobe running on the same cpu.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230920213145.1941596-4-jolsa@kernel.org
include/linux/trace_events.h
include/uapi/linux/bpf.h
kernel/bpf/syscall.c
kernel/trace/bpf_trace.c
kernel/trace/trace_kprobe.c
tools/include/uapi/linux/bpf.h