static void update_function_graph_entry(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "ftrace", "funcgraph_entry", &function_graph_entry_type); if (!event) return; function_graph_entry_func_field = pevent_find_field(event, "func"); function_graph_entry_depth_field = pevent_find_field(event, "depth"); }
static void update_function(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "ftrace", "function", &function_type); if (!event) return; function_ip_field = pevent_find_field(event, "ip"); function_parent_ip_field = pevent_find_field(event, "parent_ip"); }
static void update_sched_wakeup_new(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "sched", "sched_wakeup_new", &sched_wakeup_new_type); if (!event) return; sched_wakeup_new_comm_field = pevent_find_field(event, "comm"); sched_wakeup_new_pid_field = pevent_find_field(event, "pid"); }
static void update_kmalloc(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "kmem", "kmalloc", &kmalloc_type); if (!event) return; kmalloc_callsite_field = pevent_find_field(event, "call_site"); kmalloc_bytes_req_field = pevent_find_field(event, "bytes_req"); kmalloc_bytes_alloc_field = pevent_find_field(event, "bytes_alloc"); kmalloc_ptr_field = pevent_find_field(event, "ptr"); }
static void update_sched_switch(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "sched", "sched_switch", &sched_switch_type); if (!event) return; sched_switch_prev_field = pevent_find_field(event, "prev_comm"); sched_switch_next_field = pevent_find_field(event, "next_comm"); sched_switch_prev_pid_field = pevent_find_field(event, "prev_pid"); sched_switch_next_pid_field = pevent_find_field(event, "next_pid"); }
static void update_function_graph_exit(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "ftrace", "funcgraph_exit", &function_graph_exit_type); if (!event) return; function_graph_exit_func_field = pevent_find_field(event, "func"); function_graph_exit_depth_field = pevent_find_field(event, "depth"); function_graph_exit_calltime_field = pevent_find_field(event, "calltime"); function_graph_exit_rettime_field = pevent_find_field(event, "rettime"); function_graph_exit_overrun_field = pevent_find_field(event, "overrun"); }
static void update_kmem_cache_free(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "kmem", "kmem_cache_free", &kmem_cache_free_type); if (!event) return; kmem_cache_free_ptr_field = pevent_find_field(event, "ptr"); }
static void update_kernel_stack(struct pevent *pevent) { struct event_format *event; event = update_event(pevent, "ftrace", "kernel_stack", &kernel_stack_type); if (!event) return; kernel_stack_caller_field = pevent_find_field(event, "caller"); }