summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0197269)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret = bt_ctf_event_class_set_attribute(writer_event_class,
attr_name, attr_value);
ret = bt_ctf_event_class_set_attribute(writer_event_class,
attr_name, attr_value);
if (ret < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
if (ret < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
context = bt_ctf_event_class_get_context_type(event_class);
ret = bt_ctf_event_class_set_context_type(writer_event_class, context);
context = bt_ctf_event_class_get_context_type(event_class);
ret = bt_ctf_event_class_set_context_type(writer_event_class, context);
if (ret < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
__LINE__);
if (ret < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
__LINE__);
ret_int = bt_ctf_stream_class_set_packet_context_type(
writer_stream_class, type);
ret_int = bt_ctf_stream_class_set_packet_context_type(
writer_stream_class, type);
if (ret_int < 0) {
ret = BT_COMPONENT_STATUS_ERROR;
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
if (ret_int < 0) {
ret = BT_COMPONENT_STATUS_ERROR;
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
ret_int = bt_ctf_stream_class_set_event_header_type(
writer_stream_class, type);
ret_int = bt_ctf_stream_class_set_event_header_type(
writer_stream_class, type);
if (ret_int < 0) {
ret = BT_COMPONENT_STATUS_ERROR;
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
if (ret_int < 0) {
ret = BT_COMPONENT_STATUS_ERROR;
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
}
type = bt_ctf_stream_class_get_event_context_type(stream_class);
}
type = bt_ctf_stream_class_get_event_context_type(stream_class);
+ if (!type) {
+ ret = BT_COMPONENT_STATUS_ERROR;
+ fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
+ __LINE__);
+ goto end_put_trace;
+ }
ret_int = bt_ctf_stream_class_set_event_context_type(
writer_stream_class, type);
ret_int = bt_ctf_stream_class_set_event_context_type(
writer_stream_class, type);
if (ret_int < 0) {
ret = BT_COMPONENT_STATUS_ERROR;
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
if (ret_int < 0) {
ret = BT_COMPONENT_STATUS_ERROR;
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
ret_int = bt_ctf_trace_set_environment_field(writer_trace,
name, value);
ret_int = bt_ctf_trace_set_environment_field(writer_trace,
name, value);
if (ret_int < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
__LINE__);
if (ret_int < 0) {
fprintf(err, "[error] %s in %s:%d\n", __func__, __FILE__,
__LINE__);
ret = BT_COMPONENT_STATUS_INVALID;
goto error;
}
ret = BT_COMPONENT_STATUS_INVALID;
goto error;
}
writer_component->base_path = g_string_new(path);
if (!writer_component) {
writer_component->base_path = g_string_new(path);
if (!writer_component) {