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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -1049,6 +1049,11 @@ enum perf_event_type { · 1048 unmodified lines | ||
| 1049 | 1049 | enum perf_record_ksymbol_type { |
| 1050 | 1050 | PERF_RECORD_KSYMBOL_TYPE_UNKNOWN = 0, |
| 1051 | 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 | 1057 | PERF_RECORD_KSYMBOL_TYPE_MAX /* non-ABI */ |
| 1053 | 1058 | }; |
| 1054 | 1059 | |