Lines Matching refs:trace_state

1654 			 struct synth_event_trace_state *trace_state)  in __synth_event_trace_init()  argument
1658 memset(trace_state, '\0', sizeof(*trace_state)); in __synth_event_trace_init()
1671 trace_state->disabled = true; in __synth_event_trace_init()
1676 trace_state->event = file->event_call->data; in __synth_event_trace_init()
1683 struct synth_event_trace_state *trace_state, in __synth_event_trace_start() argument
1689 fields_size = trace_state->event->n_u64 * sizeof(u64); in __synth_event_trace_start()
1696 trace_state->buffer = file->tr->array_buffer.buffer; in __synth_event_trace_start()
1697 ring_buffer_nest_start(trace_state->buffer); in __synth_event_trace_start()
1699 entry_size = sizeof(*trace_state->entry) + fields_size; in __synth_event_trace_start()
1700 trace_state->entry = trace_event_buffer_reserve(&trace_state->fbuffer, in __synth_event_trace_start()
1703 if (!trace_state->entry) { in __synth_event_trace_start()
1704 ring_buffer_nest_end(trace_state->buffer); in __synth_event_trace_start()
1712 __synth_event_trace_end(struct synth_event_trace_state *trace_state) in __synth_event_trace_end() argument
1714 trace_event_buffer_commit(&trace_state->fbuffer); in __synth_event_trace_end()
1716 ring_buffer_nest_end(trace_state->buffer); in __synth_event_trace_end()
1945 struct synth_event_trace_state *trace_state) in synth_event_trace_start() argument
1949 if (!trace_state) in synth_event_trace_start()
1952 ret = __synth_event_trace_init(file, trace_state); in synth_event_trace_start()
1959 if (trace_state->event->n_dynamic_fields) in synth_event_trace_start()
1962 ret = __synth_event_trace_start(file, trace_state, 0); in synth_event_trace_start()
1969 struct synth_event_trace_state *trace_state) in __synth_event_add_val() argument
1976 if (!trace_state) { in __synth_event_add_val()
1983 if (trace_state->add_next) { in __synth_event_add_val()
1987 trace_state->add_name = true; in __synth_event_add_val()
1989 if (trace_state->add_name) { in __synth_event_add_val()
1993 trace_state->add_next = true; in __synth_event_add_val()
1996 if (trace_state->disabled) in __synth_event_add_val()
1999 event = trace_state->event; in __synth_event_add_val()
2000 if (trace_state->add_name) { in __synth_event_add_val()
2011 if (trace_state->cur_field >= event->n_fields) { in __synth_event_add_val()
2015 field = event->fields[trace_state->cur_field++]; in __synth_event_add_val()
2018 entry = trace_state->entry; in __synth_event_add_val()
2038 trace_state->entry->fields[field->offset].as_u8 = (u8)val; in __synth_event_add_val()
2042 trace_state->entry->fields[field->offset].as_u16 = (u16)val; in __synth_event_add_val()
2046 trace_state->entry->fields[field->offset].as_u32 = (u32)val; in __synth_event_add_val()
2050 trace_state->entry->fields[field->offset].as_u64 = val; in __synth_event_add_val()
2087 struct synth_event_trace_state *trace_state) in synth_event_add_next_val() argument
2089 return __synth_event_add_val(NULL, val, trace_state); in synth_event_add_next_val()
2122 struct synth_event_trace_state *trace_state) in synth_event_add_val() argument
2124 return __synth_event_add_val(field_name, val, trace_state); in synth_event_add_val()
2148 int synth_event_trace_end(struct synth_event_trace_state *trace_state) in synth_event_trace_end() argument
2150 if (!trace_state) in synth_event_trace_end()
2153 __synth_event_trace_end(trace_state); in synth_event_trace_end()