Lines Matching refs:event_class
51 struct bt_ctf_event_class *event_class; member
294 struct bt_ctf_event_class *event_class, in add_tracepoint_field_value() argument
332 event_class, name); in add_tracepoint_field_value()
406 struct bt_ctf_event_class *event_class, in add_tracepoint_fields_values() argument
415 ret = add_tracepoint_field_value(cw, event_class, event, sample, in add_tracepoint_fields_values()
424 struct bt_ctf_event_class *event_class, in add_tracepoint_values() argument
433 ret = add_tracepoint_fields_values(cw, event_class, event, in add_tracepoint_values()
436 ret = add_tracepoint_fields_values(cw, event_class, event, in add_tracepoint_values()
443 add_bpf_output_values(struct bt_ctf_event_class *event_class, in add_bpf_output_values() argument
458 len_type = bt_ctf_event_class_get_field_by_name(event_class, "raw_len"); in add_bpf_output_values()
477 seq_type = bt_ctf_event_class_get_field_by_name(event_class, "raw_data"); in add_bpf_output_values()
521 add_callchain_output_values(struct bt_ctf_event_class *event_class, in add_callchain_output_values() argument
532 event_class, "perf_callchain_size"); in add_callchain_output_values()
552 event_class, "perf_callchain"); in add_callchain_output_values()
805 struct bt_ctf_event_class *event_class; in process_sample_event() local
813 event_class = priv->event_class; in process_sample_event()
821 event = bt_ctf_event_create(event_class); in process_sample_event()
834 ret = add_tracepoint_values(cw, event_class, event, in process_sample_event()
841 ret = add_callchain_output_values(event_class, in process_sample_event()
848 ret = add_bpf_output_values(event_class, event, sample); in process_sample_event()
881 struct bt_ctf_event_class *event_class = cw->_name##_class;\
888 event = bt_ctf_event_create(event_class); \
980 static int event_class_add_field(struct bt_ctf_event_class *event_class, in event_class_add_field() argument
991 return bt_ctf_event_class_add_field(event_class, type, in event_class_add_field()
1004 while ((t = bt_ctf_event_class_get_field_by_name(event_class, name))) { in event_class_add_field()
1013 ret = bt_ctf_event_class_add_field(event_class, type, name); in event_class_add_field()
1022 struct bt_ctf_event_class *event_class) in add_tracepoint_fields_types() argument
1048 ret = event_class_add_field(event_class, type, field); in add_tracepoint_fields_types()
1098 struct bt_ctf_event_class *event_class) in add_generic_types() argument
1125 ADD_FIELD(event_class, cw->data.u64_hex, "perf_ip"); in add_generic_types()
1128 ADD_FIELD(event_class, cw->data.s32, "perf_tid"); in add_generic_types()
1129 ADD_FIELD(event_class, cw->data.s32, "perf_pid"); in add_generic_types()
1134 ADD_FIELD(event_class, cw->data.u64, "perf_id"); in add_generic_types()
1137 ADD_FIELD(event_class, cw->data.u64, "perf_stream_id"); in add_generic_types()
1140 ADD_FIELD(event_class, cw->data.u64, "perf_period"); in add_generic_types()
1143 ADD_FIELD(event_class, cw->data.u64, "perf_weight"); in add_generic_types()
1146 ADD_FIELD(event_class, cw->data.u64, "perf_data_src"); in add_generic_types()
1149 ADD_FIELD(event_class, cw->data.u64, "perf_transaction"); in add_generic_types()
1152 ADD_FIELD(event_class, cw->data.u32, "perf_callchain_size"); in add_generic_types()
1153 ADD_FIELD(event_class, in add_generic_types()
1165 struct bt_ctf_event_class *event_class; in add_event() local
1172 event_class = bt_ctf_event_class_create(name); in add_event()
1173 if (!event_class) in add_event()
1176 ret = add_generic_types(cw, evsel, event_class); in add_event()
1181 ret = add_tracepoint_types(cw, evsel, event_class); in add_event()
1187 ret = add_bpf_output_types(cw, event_class); in add_event()
1192 ret = bt_ctf_stream_class_add_event_class(cw->stream_class, event_class); in add_event()
1202 priv->event_class = event_class; in add_event()
1207 bt_ctf_event_class_put(event_class); in add_event()
1229 if (bt_ctf_event_class_add_field(event_class, cw->data.t, #n)) {\
1238 struct bt_ctf_event_class *event_class; \
1242 event_class = bt_ctf_event_class_create("perf_" #_name);\
1243 if (!event_class) \
1247 ret = bt_ctf_stream_class_add_event_class(cw->stream_class, event_class);\
1253 cw->_name##_class = event_class; \
1254 bt_ctf_event_class_put(event_class); \
1328 bt_ctf_event_class_put(priv->event_class); in cleanup_events()