diff options
| author | Jiri Olsa <[email protected]> | 2023-09-20 23:31:39 +0200 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2023-09-25 16:37:44 -0700 |
| commit | 3acf8ace68230e9558cf916847f1cc9f208abdf1 (patch) | |
| tree | 70ce5ccd1c39ec915e37a03570b93736dbab55a1 /include/uapi/linux | |
| parent | e2b2cd592adbd303bcc02451d32fedd511000fb0 (diff) | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 1da5b1bcce71..70bfa997e896 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -6548,6 +6548,7 @@ struct bpf_link_info { __u32 name_len; __u32 offset; /* offset from func_name */ __u64 addr; + __u64 missed; } kprobe; /* BPF_PERF_EVENT_KPROBE, BPF_PERF_EVENT_KRETPROBE */ struct { __aligned_u64 tp_name; /* in/out */ |