#include <glib.h>
#include "common/assert.h"
+#include "common/common.h"
#include "argpar.h"
parse_ret.error, i, orig_arg);
goto error;
default:
- abort();
+ bt_common_abort();
}
if (used_next_orig_arg) {
SWIGTYPE_p_bt_trace, 0);
if (!py_trace_ptr) {
BT_LOGF_STR("Failed to create a SWIG pointer object.");
- abort();
+ bt_common_abort();
}
py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_ptr);
SWIGTYPE_p_bt_trace_class, 0);
if (!py_trace_class_ptr) {
BT_LOGF_STR("Failed to create a SWIG pointer object.");
- abort();
+ bt_common_abort();
}
py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_class_ptr);
}
break;
default:
- abort();
+ bt_common_abort();
}
}
}
break;
default:
- abort();
+ bt_common_abort();
}
g_free(cfg);
g_ptr_array_add(cfg->cmd_data.run.sinks, cfg_comp);
break;
default:
- abort();
+ bt_common_abort();
}
}
dest = BT_CONFIG_COMPONENT_DEST_SINK;
break;
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT(cur_base_params);
break;
}
default:
- abort();
+ bt_common_abort();
}
ret = 0;
sink_names = g_list_append(sink_names, name_gstr);
break;
default:
- abort();
+ bt_common_abort();
}
name_gstr = NULL;
goto error;
}
} else {
- abort();
+ bt_common_abort();
}
}
default_log_level);
break;
default:
- abort();
+ bt_common_abort();
}
if (config) {
default:
BT_LOGF("Unknown query status: status=%s",
bt_common_func_status_string(status));
- abort();
+ bt_common_abort();
}
}
comp_cls = bt_component_class_sink_as_component_class_const(find_sink_component_class(plugin_name, comp_class_name));
break;
default:
- abort();
+ bt_common_abort();
}
return comp_cls;
break;
}
default:
- abort();
+ bt_common_abort();
}
goto end;
print_cfg_print_lttng_live_sessions(cfg);
break;
default:
- abort();
+ bt_common_abort();
}
}
cfg_comp->comp_cls_name->str);
break;
default:
- abort();
+ bt_common_abort();
}
if (!comp_cls) {
(void *) &comp);
break;
default:
- abort();
+ bt_common_abort();
}
if (ret) {
GUINT_TO_POINTER(quark), (void *) comp);
break;
default:
- abort();
+ bt_common_abort();
}
comp = NULL;
bt_error_cause_message_iterator_actor_get_component_class_type(cause));
break;
default:
- abort();
+ bt_common_abort();
}
/* Print file name and line number */
break;
default:
BT_LOGF("Invalid/unknown command: cmd=%d", cfg->command);
- abort();
+ bt_common_abort();
}
BT_LOGI("Command completed: cmd=%d, command-name=\"%s\", ret=%d",
bt_common_color_reset(),
bt_common_color_fg_red(),
bt_common_color_reset());
- abort();
+ bt_common_abort();
}
if (page_size < 0) {
BT_LOGF("Cannot get system's page size: ret=%d",
page_size);
- abort();
+ bt_common_abort();
}
return page_size;
BUF_STD_APPEND_SINGLE_ARG(int);
break;
default:
- abort();
+ bt_common_abort();
}
break;
}
BUF_STD_APPEND_SINGLE_ARG(wchar_t *);
break;
default:
- abort();
+ bt_common_abort();
}
break;
case 'd':
BUF_STD_APPEND_SINGLE_ARG(size_t);
break;
default:
- abort();
+ bt_common_abort();
}
break;
case 'o':
BUF_STD_APPEND_SINGLE_ARG(size_t);
break;
default:
- abort();
+ bt_common_abort();
}
break;
case 'f':
BUF_STD_APPEND_SINGLE_ARG(long double);
break;
default:
- abort();
+ bt_common_abort();
}
break;
case 'p':
if (length_mod == LENGTH_MOD_NONE) {
BUF_STD_APPEND_SINGLE_ARG(void *);
} else {
- abort();
+ bt_common_abort();
}
break;
default:
- abort();
+ bt_common_abort();
}
update_rw_fmt:
g_free(buf);
return ret;
}
+
+BT_HIDDEN
+void bt_common_abort(void)
+{
+ abort();
+}
BT_HIDDEN
int bt_common_append_file_content_to_g_string(GString *str, FILE *fp);
+BT_HIDDEN
+void bt_common_abort(void) __attribute__((noreturn));
+
/*
* Wraps read() function to handle EINTR and partial reads.
* On success, it returns `count` received as parameter. On error, it returns a
g_string_append(str, ", <CUR>");
break;
default:
- abort();
+ bt_common_abort();
}
}
* SOFTWARE.
*/
+#include "common/common.h"
+
#ifdef BABELTRACE_HAVE_POSIX_FALLOCATE
#include <fcntl.h>
/* Restore the original file pointer position */
if (!SetFilePointerEx(handle, file_pos, NULL, FILE_BEGIN)) {
/* We moved the file pointer but failed to restore it. */
- abort();
+ bt_common_abort();
}
end:
#include "logging/log.h"
#include "common/macros.h"
+#include "common/common.h"
#ifdef __APPLE__
/*
if (mapping) {
if (!CloseHandle(mapping->map_handle)) {
BT_LOGF_STR("Failed to close mmap map_handle.");
- abort();
+ bt_common_abort();
}
if (!CloseHandle(mapping->file_handle)) {
BT_LOGF_STR("Failed to close mmap file_handle.");
- abort();
+ bt_common_abort();
}
free(mapping);
mapping = NULL;
*/
BT_LOG_WRITE_CUR_LVL(BT_LOG_FATAL, BT_LOG_FATAL, BT_LOG_TAG,
"Failed to unmap mmap mapping.");
- abort();
+ bt_common_abort();
}
}
{
if (pthread_mutex_lock(&mmap_mutex)) {
BT_LOG_WRITE_CUR_LVL(BT_LOG_FATAL, log_level, BT_LOG_TAG, "Failed to acquire mmap_mutex.");
- abort();
+ bt_common_abort();
}
}
{
if (pthread_mutex_unlock(&mmap_mutex)) {
BT_LOG_WRITE_CUR_LVL(BT_LOG_FATAL, log_level, BT_LOG_TAG, "Failed to release mmap_mutex.");
- abort();
+ bt_common_abort();
}
}
/* Remove it. */
if (!g_hash_table_remove(mmap_mappings, addr)) {
BT_LOGF_STR("Failed to remove mapping from hashtable.");
- abort();
+ bt_common_abort();
}
end:
BT_CTF_ASSERT_PRE_MSG("CTF writer precondition not satisfied; error is:"); \
BT_CTF_ASSERT_PRE_MSG((_fmt), ##__VA_ARGS__); \
BT_CTF_ASSERT_PRE_MSG("Aborting..."); \
- abort(); \
+ bt_common_abort(); \
} \
} while (0)
default:
BT_LOGF("Invalid enumeration field type mapping iterator type: "
"type=%d", iter->type);
- abort();
+ bt_common_abort();
}
}
break;
default:
BT_LOGF("Unexpected field type ID: id=%d", ft->id);
- abort();
+ bt_common_abort();
}
BT_ASSERT_DBG(sub_ft);
byte_order == BT_CTF_BYTE_ORDER_LITTLE_ENDIAN ?
LITTLE_ENDIAN : BIG_ENDIAN);
} else {
- abort();
+ bt_common_abort();
}
if (G_UNLIKELY(ret)) {
}
break;
default:
- abort();
+ bt_common_abort();
}
end:
bt_ctf_field_type_common_variant_get_tag_name(type);
break;
default:
- abort();
+ bt_common_abort();
}
if (!pathstr) {
}
break;
default:
- abort();
+ bt_common_abort();
}
end:
string = "native";
break;
default:
- abort();
+ bt_common_abort();
}
return string;
break;
}
default:
- abort();
+ bt_common_abort();
}
_bt_ctfser_incr_offset(ctfser, size_bits);
break;
}
default:
- abort();
+ bt_common_abort();
}
_bt_ctfser_incr_offset(ctfser, size_bits);
#include <stdlib.h>
#include <inttypes.h>
#include "common/macros.h"
+#include "common/common.h"
/*
* Prints the details of an unsatisfied postcondition without
BT_ASSERT_POST_MSG("Babeltrace 2 library postcondition not satisfied; error is:"); \
BT_ASSERT_POST_MSG(_fmt, ##__VA_ARGS__); \
BT_ASSERT_POST_MSG("Aborting..."); \
- abort(); \
+ bt_common_abort(); \
} \
} while (0)
#include <stdbool.h>
#include <stdlib.h>
#include <inttypes.h>
+#include "common/common.h"
#include "common/macros.h"
/*
BT_ASSERT_PRE_MSG("Babeltrace 2 library precondition not satisfied; error is:"); \
BT_ASSERT_PRE_MSG(_fmt, ##__VA_ARGS__); \
BT_ASSERT_PRE_MSG("Aborting..."); \
- abort(); \
+ bt_common_abort(); \
} \
} while (0)
type_str = "sink";
break;
default:
- abort();
+ bt_common_abort();
}
if (comp_class_id->plugin_name->len > 0) {
comp_descr_array = comp_descr_set->sinks;
break;
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT(comp_descr_array);
break;
}
default:
- abort();
+ bt_common_abort();
}
if (method) {
method = (method_t) src_cc->methods.output_port_connected;
break;
default:
- abort();
+ bt_common_abort();
}
break;
method = (method_t) flt_cc->methods.output_port_connected;
break;
default:
- abort();
+ bt_common_abort();
}
break;
method = (method_t) sink_cc->methods.input_port_connected;
break;
default:
- abort();
+ bt_common_abort();
}
break;
}
default:
- abort();
+ bt_common_abort();
}
if (method) {
listeners = graph->listeners.source_output_port_added;
break;
default:
- abort();
+ bt_common_abort();
}
break;
listeners = graph->listeners.filter_output_port_added;
break;
default:
- abort();
+ bt_common_abort();
}
break;
listeners = graph->listeners.sink_input_port_added;
break;
default:
- abort();
+ bt_common_abort();
}
break;
}
default:
- abort();
+ bt_common_abort();
}
for (i = 0; i < listeners->len; i++) {
graph->listeners.source_sink_ports_connected;
break;
default:
- abort();
+ bt_common_abort();
}
break;
graph->listeners.filter_sink_ports_connected;
break;
default:
- abort();
+ bt_common_abort();
}
break;
}
default:
- abort();
+ bt_common_abort();
}
for (i = 0; i < listeners->len; i++) {
/* Finalizing */
BT_LIB_LOGF("Message iterator is already being finalized: "
"%!+i", iterator);
- abort();
+ bt_common_abort();
default:
break;
}
}
default:
/* Unreachable */
- abort();
+ bt_common_abort();
}
if (method) {
break;
}
default:
- abort();
+ bt_common_abort();
}
if (iterator->methods.seek_ns_from_origin &&
}
default:
/* Unreachable */
- abort();
+ bt_common_abort();
}
if (init_method) {
goto end;
default:
/* Unknown non-error status */
- abort();
+ bt_common_abort();
}
end:
new_state = BT_SELF_COMPONENT_PORT_INPUT_MESSAGE_ITERATOR_STATE_ENDED;
break;
default:
- abort();
+ bt_common_abort();
}
set_self_comp_port_input_msg_iterator_state(iterator, new_state);
break;
}
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT_DBG(clk_snapshot);
case BT_FUNC_STATUS_END:
goto end;
default:
- abort();
+ bt_common_abort();
}
for (i = 0; i < user_count; i++) {
case BT_FUNC_STATUS_AGAIN:
goto end;
default:
- abort();
+ bt_common_abort();
}
/*
case BT_FUNC_STATUS_AGAIN:
goto end;
default:
- abort();
+ bt_common_abort();
}
}
break;
}
default:
- abort();
+ bt_common_abort();
}
if (!method) {
break;
}
default:
- abort();
+ bt_common_abort();
}
if (!method) {
prefix, (_prefix2)); \
\
if (snprintf_ret < 0 || snprintf_ret >= TMP_PREFIX_LEN - 1) { \
- abort(); \
+ bt_common_abort(); \
} \
\
tmp_prefix[TMP_PREFIX_LEN - 1] = '\0'; \
BUF_APPEND("%s", ", <CUR>");
break;
default:
- abort();
+ bt_common_abort();
}
}
format_error_cause(buf_ch, extended, prefix, obj);
break;
default:
- abort();
+ bt_common_abort();
}
update_fmt:
cur_cc_descr_attr->value.sink_get_supported_mip_versions_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_INITIALIZE_METHOD:
cur_cc_descr_attr->value.sink_initialize_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_FINALIZE_METHOD:
cur_cc_descr_attr->value.sink_finalize_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_QUERY_METHOD:
cur_cc_descr_attr->value.sink_query_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_INPUT_PORT_CONNECTED_METHOD:
cur_cc_descr_attr->value.sink_input_port_connected_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_OUTPUT_PORT_CONNECTED_METHOD:
cur_cc_descr_attr->value.filter_output_port_connected_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_GRAPH_IS_CONFIGURED_METHOD:
cur_cc_descr_attr->value.sink_graph_is_configured_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_MSG_ITER_INITIALIZE_METHOD:
cur_cc_descr_attr->value.filter_msg_iter_initialize_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_MSG_ITER_FINALIZE_METHOD:
cur_cc_descr_attr->value.filter_msg_iter_finalize_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_MSG_ITER_SEEK_NS_FROM_ORIGIN_METHOD:
cur_cc_descr_attr->value.filter_msg_iter_seek_ns_from_origin_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_MSG_ITER_SEEK_BEGINNING_METHOD:
cur_cc_descr_attr->value.filter_msg_iter_seek_beginning_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_MSG_ITER_CAN_SEEK_NS_FROM_ORIGIN_METHOD:
cur_cc_descr_attr->value.filter_msg_iter_can_seek_ns_from_origin_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
case BT_PLUGIN_COMPONENT_CLASS_DESCRIPTOR_ATTRIBUTE_TYPE_MSG_ITER_CAN_SEEK_BEGINNING_METHOD:
cur_cc_descr_attr->value.filter_msg_iter_can_seek_beginning_method;
break;
default:
- abort();
+ bt_common_abort();
}
break;
default:
break;
default:
- abort();
+ bt_common_abort();
}
/*
*/
#include "common/macros.h"
+#include "common/common.h"
#include "lib/graph/component-class.h"
#include <babeltrace2/plugin/plugin-const.h>
#include <babeltrace2/plugin/plugin-dev.h>
comp_classes = plugin->sink_comp_classes;
break;
default:
- abort();
+ bt_common_abort();
}
/* Set component class's original plugin name */
field = create_variant_field(fc);
break;
default:
- abort();
+ bt_common_abort();
}
if (!field) {
destroy_variant_field(field);
break;
default:
- abort();
+ bt_common_abort();
}
}
case BT_FIELD_PATH_SCOPE_EVENT_PAYLOAD:
return ctx->event_payload;
default:
- abort();
+ bt_common_abort();
}
return NULL;
state->expecting = INI_EXPECT_MAP_KEY;
goto success;
default:
- abort();
+ bt_common_abort();
}
error:
#include <string.h>
#include "common/assert.h"
+#include "common/common.h"
#include "common/macros.h"
#include "common/uuid.h"
weight = 0;
break;
default:
- abort();
+ bt_common_abort();
}
return weight;
case BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY:
goto end;
default:
- abort();
+ bt_common_abort();
}
end:
break;
}
default:
- abort();
+ bt_common_abort();
}
end:
g_string_append_printf(str, "[%" PRIu64 "]", elem->array_index);
break;
default:
- abort();
+ bt_common_abort();
}
}
bfcr->user.data);
break;
default:
- abort();
+ bt_common_abort();
}
return length;
bt_bitfield_read_le(buf, uint8_t, at, field_size, v);
break;
default:
- abort();
+ bt_common_abort();
}
BT_COMP_LOGT("Read unsigned bit array: cur=%zu, size=%u, "
bt_bitfield_read_le(buf, uint8_t, at, field_size, v);
break;
default:
- abort();
+ bt_common_abort();
}
BT_COMP_LOGT("Read signed bit array: cur=%zu, size=%u, "
}
default:
/* Only 32-bit and 64-bit fields are supported currently */
- abort();
+ bt_common_abort();
}
BT_COMP_LOGT("Read floating point number value: bfcr=%p, cur=%zu, val=%f",
status = read_basic_string_class_and_call(bfcr, true);
break;
default:
- abort();
+ bt_common_abort();
}
return status;
status = read_basic_string_class_and_call(bfcr, false);
break;
default:
- abort();
+ bt_common_abort();
}
return status;
env_entry->value.str->str);
break;
default:
- abort();
+ bt_common_abort();
}
if (ret) {
case CTF_SCOPE_EVENT_PAYLOAD:
return ctx->scopes.event_payload;
default:
- abort();
+ bt_common_abort();
}
return NULL;
break;
default:
- abort();
+ bt_common_abort();
}
/* Skip absolute path tokens */
break;
}
default:
- abort();
+ bt_common_abort();
}
end:
break;
}
default:
- abort();
+ bt_common_abort();
}
if (!pathstr) {
break;
}
default:
- abort();
+ bt_common_abort();
}
end:
ir_fc = ctf_field_class_variant_to_ir(ctx, (void *) fc);
break;
default:
- abort();
+ bt_common_abort();
}
fc->ir_fc = ir_fc;
fc = ctx->ec->payload_fc;
break;
default:
- abort();
+ bt_common_abort();
}
if (fc && ctf_field_class_struct_has_immediate_member_in_ir(
break;
}
default:
- abort();
+ bt_common_abort();
}
end:
_ctf_field_class_variant_destroy((void *) fc);
break;
default:
- abort();
+ bt_common_abort();
}
}
field_count = 1;
break;
default:
- abort();
+ bt_common_abort();
}
return field_count;
case CTF_SCOPE_EVENT_PAYLOAD:
return "EVENT_PAYLOAD";
default:
- abort();
+ bt_common_abort();
}
}
fc = ec->payload_fc;
break;
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT_DBG(fc);
copy_fc = (void *) _ctf_field_class_variant_copy((void *) fc);
break;
default:
- abort();
+ bt_common_abort();
}
copy_fc->type = fc->type;
named_fc = ctf_field_class_variant_borrow_option_by_index(
var_fc, i);
} else {
- abort();
+ bt_common_abort();
}
if (strcmp(named_fc->name->str, field_name) == 0) {
default:
BT_COMP_LOGF("Unknown CTF plugin message iterator state: "
"msg-it-addr=%p, state=%d", msg_it, msg_it->state);
- abort();
+ bt_common_abort();
}
BT_COMP_LOGT("Handled state: msg-it-addr=%p, status=%s, "
next_field = bt_field_variant_borrow_selected_option_field(
base_field);
} else {
- abort();
+ bt_common_abort();
}
BT_ASSERT_DBG(next_field);
msg_it->cur_exp_packet_content_size = value;
break;
default:
- abort();
+ bt_common_abort();
}
update_def_clock:
/* We should never get to the STATE_DONE state. */
BT_COMP_LOGF("Unexpected state: msg-it-addr=%p, state=%s",
msg_it, state_string(msg_it->state));
- abort();
+ bt_common_abort();
}
} while (true);
_fs_sink_ctf_field_class_variant_destroy((void *) fc);
break;
default:
- abort();
+ bt_common_abort();
}
}
ret = write_variant_field(stream, (void *) fc, field);
break;
default:
- abort();
+ bt_common_abort();
}
return ret;
BT_COMP_LOGF_ERRNO("In trace destruction listener: "
"cannot open metadata file for writing",
": path=\"%s\"", trace->metadata_path->str);
- abort();
+ bt_common_abort();
}
len = fwrite(tsdl->str, sizeof(*tsdl->str), tsdl->len, fh);
BT_COMP_LOGF_ERRNO("In trace destruction listener: "
"cannot write metadata file",
": path=\"%s\"", trace->metadata_path->str);
- abort();
+ bt_common_abort();
}
if (!trace->fs_sink->quiet) {
fs_sink, msg);
break;
default:
- abort();
+ bt_common_abort();
}
BT_MESSAGE_PUT_REF_AND_RESET(msgs[i]);
g_string_append(ctx->tsdl, "x");
break;
default:
- abort();
+ bt_common_abort();
}
g_string_append_c(ctx->tsdl, ';');
append_variant_field_class(ctx, (void *) fc);
break;
default:
- abort();
+ bt_common_abort();
}
}
level = 14;
break;
default:
- abort();
+ bt_common_abort();
}
g_string_append_printf(ctx->tsdl, "%u;\n", level);
* This is checked in
* translate_trace_trace_ir_to_ctf_ir().
*/
- abort();
+ bt_common_abort();
}
g_string_append(tsdl, ";\n");
tgt_fc = ctx->cur_ec->payload_fc;
break;
default:
- abort();
+ bt_common_abort();
}
i = 0;
break;
}
default:
- abort();
+ bt_common_abort();
}
if (named_fc) {
g_string_assign(tgt_field_ref, "event.fields");
break;
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT(fc);
bt_field_path_item_index_get_index(fp_item));
break;
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT(named_fc);
break;
}
default:
- abort();
+ bt_common_abort();
}
}
BT_FIELD_CLASS_TYPE_VARIANT)) {
ret = translate_variant_field_class(ctx);
} else {
- abort();
+ bt_common_abort();
}
return ret;
break;
}
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT(field_ref);
* medium-specific; there is nothing for the user to do
* and it should have been handled upstream.
*/
- abort();
+ bt_common_abort();
case BT_MSG_ITER_STATUS_INVAL:
case BT_MSG_ITER_STATUS_ERROR:
default:
ds_file->msg_iter, cs);
break;
default:
- abort();
+ bt_common_abort();
}
if (iter_status) {
ret = -1;
case LTTNG_LIVE_ITERATOR_STATUS_UNSUPPORTED:
return "LTTNG_LIVE_ITERATOR_STATUS_UNSUPPORTED";
default:
- abort();
+ bt_common_abort();
}
}
case LTTNG_LIVE_STREAM_ACTIVE_NO_DATA:
/* Invalid state. */
BT_COMP_LOGF("Unexpected stream state \"ACTIVE_NO_DATA\"");
- abort();
+ bt_common_abort();
case LTTNG_LIVE_STREAM_QUIESCENT_NO_DATA:
/* Invalid state. */
BT_COMP_LOGF("Unexpected stream state \"QUIESCENT_NO_DATA\"");
- abort();
+ bt_common_abort();
case LTTNG_LIVE_STREAM_EOF:
break;
}
put_messages(msgs, *count);
break;
default:
- abort();
+ bt_common_abort();
}
no_session:
lttng_live->params.url->str);
break;
default:
- abort();
+ bt_common_abort();
}
}
case LTTNG_LIVE_GET_ONE_METADATA_STATUS_ERROR:
goto error;
default:
- abort();
+ bt_common_abort();
}
}
out_message = handle_discarded_packets_message(debug_it, in_message);
break;
default:
- abort();
+ bt_common_abort();
break;
}
#include <stdint.h>
#include "common/assert.h"
+#include "common/common.h"
#include "trace-ir-data-copy.h"
out_trace, value_name,
bt_value_string_get(value));
} else {
- abort();
+ bt_common_abort();
}
if (set_env_status != BT_TRACE_SET_ENVIRONMENT_ENTRY_STATUS_OK) {
goto end;
}
} else {
- abort();
+ bt_common_abort();
}
BT_COMP_LOGT("Copied content of field: in-f-addr=%p, out-f-addr=%p",
curr_fc);
break;
} else {
- abort();
+ bt_common_abort();
}
}
fc_resolving_ctx->event_payload);
break;
default:
- abort();
+ bt_common_abort();
}
return fc;
status = field_class_variant_copy(md_maps,
in_field_class, out_field_class);
} else {
- abort();
+ bt_common_abort();
}
return status;
status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_MEMORY_ERROR;
break;
default:
- abort();
+ bt_common_abort();
}
details_comp = create_details_comp(comp);
ret = BT_COMPONENT_CLASS_SINK_CONSUME_METHOD_STATUS_MEMORY_ERROR;
goto end;
default:
- abort();
+ bt_common_abort();
}
end:
break;
default:
- abort();
+ bt_common_abort();
}
sprintf(buf_start, spec, value);
break;
default:
- abort();
+ bt_common_abort();
}
sprintf(buf_start, spec, abs_value);
break;
}
default:
- abort();
+ bt_common_abort();
}
g_ptr_array_free(keys, TRUE);
write_uint_prop_value(ctx, 16);
break;
default:
- abort();
+ bt_common_abort();
}
if (close) {
write_str_prop_value(ctx, "Event payload");
break;
default:
- abort();
+ bt_common_abort();
}
g_string_append(ctx->str, ": ");
write_str_prop_value(ctx, "<current>");
break;
default:
- abort();
+ bt_common_abort();
}
}
type = "Variant (signed integer selector)";
break;
default:
- abort();
+ bt_common_abort();
}
g_string_append_printf(ctx->str, "%s%s%s",
ll_str = "Debug";
break;
default:
- abort();
+ bt_common_abort();
}
write_str_prop_line(ctx, "Log level", ll_str);
fmt_base = 16;
break;
default:
- abort();
+ bt_common_abort();
}
if (bt_field_class_type_is(fc_type,
bt_field_variant_borrow_selected_option_field_const(
field), NULL);
} else {
- abort();
+ bt_common_abort();
}
}
write_str_prop_value(ctx,
bt_value_string_get(value));
} else {
- abort();
+ bt_common_abort();
}
write_nl(ctx);
ret = write_discarded_packets_message(&ctx, msg);
break;
default:
- abort();
+ bt_common_abort();
}
/*
status = BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_MEMORY_ERROR;
break;
default:
- abort();
+ bt_common_abort();
}
return status;
pretty->options.print_scope_field_names = false;
break;
default:
- abort();
+ bt_common_abort();
}
apply_one_bool_if_specified("name-payload", params,
pretty->options.print_callsite_field = false;
break;
default:
- abort();
+ bt_common_abort();
}
apply_one_bool_if_specified("field-trace", params,
&label_array, &label_count);
break;
default:
- abort();
+ bt_common_abort();
}
if (ret) {
elem_type = "packet";
break;
default:
- abort();
+ bt_common_abort();
}
BT_ASSERT(stream);
break;
default:
- abort();
+ bt_common_abort();
}
print_discarded_elements_msg(pretty, stream, begin, end,
BT_COMP_LOGF("Unexpected clock class expectation: "
"expectation-code=%d",
muxer_msg_iter->clock_class_expectation);
- abort();
+ bt_common_abort();
}
goto end;
status = BT_COMPONENT_CLASS_MESSAGE_ITERATOR_NEXT_METHOD_STATUS_END;
break;
default:
- abort();
+ bt_common_abort();
}
}
ret = BT_FUNC_STATUS_ERROR;
goto end;
default:
- abort();
+ bt_common_abort();
}
/*
$(top_builddir)/src/param-parse/libbabeltrace2-param-parse.la \
$(top_builddir)/src/plugins/common/param-validation/libbabeltrace2-param-validation.la \
$(top_builddir)/src/lib/libbabeltrace2.la \
+ $(top_builddir)/src/common/libbabeltrace2-common.la \
+ $(top_builddir)/src/logging/libbabeltrace2-logging.la \
$(top_builddir)/tests/utils/tap/libtap.la