Function report |
Source Code:kernel\trace\trace_output.c |
Create Date:2022-07-28 12:05:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:gister_trace_event - register output for an event type*@event: the event type to register* Event types are stored in a hash and this hash is used to* find a way to print an event
Proto:int register_trace_event(struct trace_event *event)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct trace_event * | event |
| 734 | ret = 0 |
| 736 | lock for writing |
| 746 | If Not type Then |
| 749 | If next_event_type > TRACE_EVENT_TYPE_MAX Then |
| 751 | type = trace_search_list( & list) |
| 755 | Else |
| 757 | type = next_event_type++ |
| 758 | list = ftrace_event_list |
| 766 | Else if type > __TRACE_LAST_TYPE Then |
| 770 | Else |
| 776 | If (trace == NULL) Then trace = Standard events |
| 778 | If (raw == NULL) Then raw = Standard events |
| 780 | If (hex == NULL) Then hex = Standard events |
| 782 | If (binary == NULL) Then binary = Standard events |
| 785 | key = type & must be a power of 2 - 1 |
| 787 | hlist_add_head( & node, & event_hash[key]) |
| 790 | out : |
| 793 | Return ret |
| Name | Describe |
|---|---|
| init_events | |
| init_graph_trace | |
| trace_event_raw_init | |
| register_synth_event | |
| trace_probe_register_event_call |
| 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 |