History

kprobes: Add perf ksymbol events for kprobe insn pages

Symbols are needed for tools to describe instruction addresses. Pages allocated for kprobe's purposes need symbols to be created for them. Add such symbols to be visible via perf ksymbol events.

Adrian Hunter committed 6 years ago

Commit 69e49081 parent d002b8b2 files · +17 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/perf_event.h+5−0
@@ -1049,6 +1049,11 @@ enum perf_event_type { · 1048 unmodified lines
1049enum perf_record_ksymbol_type {1049enum perf_record_ksymbol_type {
1050 PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0,1050 PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0,
1051 PERF_RECORD_KSYMBOL_TYPE_BPF = 1,1051 PERF_RECORD_KSYMBOL_TYPE_BPF = 1,
1052 /*
1053 * Out of line code such as kprobe-replaced instructions or optimized
1054 * kprobes.
1055 */
1056 PERF_RECORD_KSYMBOL_TYPE_OOL = 2,
1052 PERF_RECORD_KSYMBOL_TYPE_MAX /* non-ABI */1057 PERF_RECORD_KSYMBOL_TYPE_MAX /* non-ABI */
1053};1058};
1054 1059