Lines Matching refs:trace_state

1556 			 struct synth_event_trace_state *trace_state)  in __synth_event_trace_init()  argument
1560 memset(trace_state, '\0', sizeof(*trace_state)); in __synth_event_trace_init()
1573 trace_state->disabled = true; in __synth_event_trace_init()
1578 trace_state->event = file->event_call->data; in __synth_event_trace_init()
1585 struct synth_event_trace_state *trace_state, in __synth_event_trace_start() argument
1591 fields_size = trace_state->event->n_u64 * sizeof(u64); in __synth_event_trace_start()
1598 trace_state->buffer = file->tr->array_buffer.buffer; in __synth_event_trace_start()
1599 ring_buffer_nest_start(trace_state->buffer); in __synth_event_trace_start()
1601 entry_size = sizeof(*trace_state->entry) + fields_size; in __synth_event_trace_start()
1602 trace_state->entry = trace_event_buffer_reserve(&trace_state->fbuffer, in __synth_event_trace_start()
1605 if (!trace_state->entry) { in __synth_event_trace_start()
1606 ring_buffer_nest_end(trace_state->buffer); in __synth_event_trace_start()
1614 __synth_event_trace_end(struct synth_event_trace_state *trace_state) in __synth_event_trace_end() argument
1616 trace_event_buffer_commit(&trace_state->fbuffer); in __synth_event_trace_end()
1618 ring_buffer_nest_end(trace_state->buffer); in __synth_event_trace_end()
1847 struct synth_event_trace_state *trace_state) in synth_event_trace_start() argument
1851 if (!trace_state) in synth_event_trace_start()
1854 ret = __synth_event_trace_init(file, trace_state); in synth_event_trace_start()
1861 if (trace_state->event->n_dynamic_fields) in synth_event_trace_start()
1864 ret = __synth_event_trace_start(file, trace_state, 0); in synth_event_trace_start()
1871 struct synth_event_trace_state *trace_state) in __synth_event_add_val() argument
1878 if (!trace_state) { in __synth_event_add_val()
1885 if (trace_state->add_next) { in __synth_event_add_val()
1889 trace_state->add_name = true; in __synth_event_add_val()
1891 if (trace_state->add_name) { in __synth_event_add_val()
1895 trace_state->add_next = true; in __synth_event_add_val()
1898 if (trace_state->disabled) in __synth_event_add_val()
1901 event = trace_state->event; in __synth_event_add_val()
1902 if (trace_state->add_name) { in __synth_event_add_val()
1913 if (trace_state->cur_field >= event->n_fields) { in __synth_event_add_val()
1917 field = event->fields[trace_state->cur_field++]; in __synth_event_add_val()
1920 entry = trace_state->entry; in __synth_event_add_val()
1940 *(u8 *)&trace_state->entry->fields[field->offset] = (u8)val; in __synth_event_add_val()
1944 *(u16 *)&trace_state->entry->fields[field->offset] = (u16)val; in __synth_event_add_val()
1948 *(u32 *)&trace_state->entry->fields[field->offset] = (u32)val; in __synth_event_add_val()
1952 trace_state->entry->fields[field->offset] = val; in __synth_event_add_val()
1989 struct synth_event_trace_state *trace_state) in synth_event_add_next_val() argument
1991 return __synth_event_add_val(NULL, val, trace_state); in synth_event_add_next_val()
2024 struct synth_event_trace_state *trace_state) in synth_event_add_val() argument
2026 return __synth_event_add_val(field_name, val, trace_state); in synth_event_add_val()
2050 int synth_event_trace_end(struct synth_event_trace_state *trace_state) in synth_event_trace_end() argument
2052 if (!trace_state) in synth_event_trace_end()
2055 __synth_event_trace_end(trace_state); in synth_event_trace_end()