Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:38:28 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_ksymbol
Proto:void perf_event_ksymbol(u16 ksym_type, u64 addr, u32 len, bool unregister, const char *sym)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
u16 | ksym_type | |
u64 | addr | |
u32 | len | |
bool | unregister | |
const char * | sym |
8170 | flags = 0 |
8173 | If Not atomic_read( & nr_ksymbol_events) Then Return |
8176 | If ksym_type >= PERF_RECORD_KSYMBOL_TYPE_MAX || ksym_type == PERF_RECORD_KSYMBOL_TYPE_UNKNOWN Then Go to err |
8182 | When Not IS_ALIGNED(name_len, sizeof(u64)) cycle |
8186 | If unregister Then flags |= PERF_RECORD_KSYMBOL_FLAGS_UNREGISTER |
8189 | ksymbol_event = (struct perf_ksymbol_event){name = name, name_len = name_len, event_id = {header = {type = PERF_RECORD_KSYMBOL, size = size of event_id + name_len, }, addr = addr, len = len, ksym_type = ksym_type, flags = flags, }, } |
8206 | Return |
8207 | err : |
Name | Describe |
---|---|
perf_event_bpf_emit_ksymbols |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |