* SOFTWARE.
*/
+#include <stdlib.h>
#include <babeltrace/values.h>
#include <babeltrace/common-internal.h>
#include "babeltrace-cfg.h"
}
break;
default:
- assert(false);
+ abort();
}
}
state->expecting = INI_EXPECT_MAP_KEY;
goto success;
default:
- assert(false);
+ abort();
}
error:
}
break;
default:
- assert(false);
+ abort();
}
g_free(cfg);
g_ptr_array_add(cfg->cmd_data.run.sinks, cfg_comp);
break;
default:
- assert(false);
+ abort();
}
}
BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
- assert(false);
+ abort();
}
plug_comp_cls_names = strdup(arg);
if (!plug_comp_cls_names) {
type = BT_COMPONENT_CLASS_TYPE_SINK;
break;
default:
- assert(false);
+ abort();
}
cfg->cmd_data.query.cfg_component =
opt_name = "--sink";
break;
default:
- assert(false);
+ abort();
}
if (cur_cfg_comp) {
}
break;
default:
- assert(false);
+ abort();
}
if (bt_value_array_append_string(run_args,
*sink_names = g_list_append(*sink_names, name);
break;
default:
- assert(false);
+ abort();
}
g_string_assign(cur_name_prefix, "");
}
break;
default:
- assert(false);
+ abort();
}
if (bt_value_array_append_string(run_args, arg)) {
force_omit_home_plugin_path, initial_plugin_paths);
break;
default:
- assert(false);
+ abort();
}
if (config) {
break;
}
default:
- assert(false);
+ abort();
}
}
print_cfg_print_lttng_live_sessions(cfg);
break;
default:
- assert(false);
+ abort();
}
}
*/
BT_LOGF("Invalid connection: downstream component is a source: "
"conn-arg=\"%s\"", cfg_conn->arg->str);
- assert(false);
+ abort();
}
downstream_port_count = port_count_fn(downstream_comp);
ret = cmd_print_lttng_live_sessions(cfg);
break;
default:
- BT_LOGF("Invalid command: cmd=%d", cfg->command);
- assert(false);
+ BT_LOGF("Invalid/unknown command: cmd=%d", cfg->command);
+ abort();
}
BT_LOGI("Command completed: cmd=%d, command-name=\"%s\", ret=%d",
* http://www.efficios.com/ctf
*/
+#include <stdlib.h>
#include <stdint.h>
#include <limits.h>
#include <sys/mman.h>
pos->flags = MAP_SHARED;
break;
default:
- assert(BT_FALSE);
+ abort();
}
return 0;
#include <babeltrace/types.h>
#include <babeltrace/values-internal.h>
#include <inttypes.h>
+#include <stdlib.h>
static
void bt_ctf_event_class_destroy(struct bt_object *obj);
default:
/* should never happen */
- assert(BT_FALSE);
+ abort();
break;
}
#include <babeltrace/types.h>
#include <limits.h>
#include <inttypes.h>
+#include <stdlib.h>
#include <glib.h>
typedef GPtrArray type_stack;
goto end;
}
} else {
- assert(BT_FALSE);
+ abort();
}
end:
bt_ctf_field_type_variant_get_tag_name(type);
break;
default:
- assert(BT_FALSE);
- ret = -1;
- goto end;
+ abort();
}
/* Get target field path out of path string */
goto end;
}
} else {
- assert(BT_FALSE);
+ abort();
}
end:
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
+#include <stdlib.h>
#define DEFAULT_IDENTIFIER_SIZE 128
#define DEFAULT_METADATA_STRING_SIZE 4096
string = "native";
break;
default:
- assert(BT_FALSE);
+ abort();
}
return string;
* SOFTWARE.
*/
+#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <babeltrace/ctf-ir/field-types.h>
break;
}
default:
- assert(BT_FALSE);
+ abort();
}
} else {
switch (size) {
break;
}
default:
- assert(BT_FALSE);
+ abort();
}
}
/* unmap old base */
ret = munmap_align(pos->base_mma);
if (ret) {
- assert(BT_FALSE);
+ // FIXME: this can legitimately fail?
+ abort();
}
pos->base_mma = NULL;
}
pos->base_mma = mmap_align(pos->packet_size / CHAR_BIT, pos->prot,
pos->flags, pos->fd, pos->mmap_offset);
if (pos->base_mma == MAP_FAILED) {
- assert(BT_FALSE);
+ // FIXME: this can legitimately fail?
+ abort();
}
}
#include <babeltrace/graph/port-internal.h>
#include <babeltrace/object-internal.h>
#include <babeltrace/compiler-internal.h>
+#include <stdlib.h>
#include <glib.h>
static
}
default:
/* Unreachable. */
- assert(0);
+ abort();
}
if (init_method) {
#include <babeltrace/graph/port.h>
#include <babeltrace/types.h>
#include <stdint.h>
+#include <stdlib.h>
struct stream_state {
struct bt_ctf_stream *stream; /* owned by this */
case ACTION_TYPE_SET_STREAM_STATE_IS_ENDED:
break;
default:
- assert(BT_FALSE);
+ abort();
}
}
action->payload.set_stream_state_cur_packet.packet);
break;
default:
- assert(BT_FALSE);
+ abort();
}
}
}
default:
/* Unreachable */
- assert(0);
+ abort();
}
if (finalize_method) {
iter_notif_type = BT_NOTIFICATION_ITERATOR_NOTIF_TYPE_PACKET_END;
break;
default:
- assert(BT_FALSE);
+ abort();
}
return iter_notif_type;
break;
}
default:
- assert(BT_FALSE);
- break;
+ abort();
}
/*
break;
default:
/* Unknown non-error status */
- assert(BT_FALSE);
+ abort();
}
}
#include <babeltrace/graph/component-class-internal.h>
#include <babeltrace/types.h>
#include <string.h>
+#include <stdlib.h>
#include <glib.h>
#include <gmodule.h>
case BT_COMPONENT_CLASS_TYPE_SINK:
break;
default:
- assert(BT_FALSE);
- break;
+ abort();
}
/*
* SOFTWARE.
*/
+#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <stddef.h>
status = read_basic_string_type_and_call(btr, true);
break;
default:
- assert(false);
+ abort();
}
return status;
status = read_basic_string_type_and_call(btr, false);
break;
default:
- assert(false);
+ abort();
}
return status;
#include <babeltrace/graph/clock-class-priority-map.h>
#include <babeltrace/ref.h>
#include <glib.h>
+#include <stdlib.h>
#define PRINT_ERR_STREAM notit->err_stream
#define PRINT_PREFIX "ctf-notif-iter"
next_field = bt_ctf_field_variant_get_current_field(base_field);
break;
default:
- assert(false);
- break;
+ abort();
}
end:
type = bt_ctf_field_get_type(int_field);
break;
default:
- assert(0);
- type = NULL;
- break;
+ abort();
}
if (!int_field) {
type = bt_ctf_field_get_type(int_field);
break;
default:
- assert(0);
- type = NULL;
- break;
+ abort();
}
if (!int_field) {
* We should never get past the
* STATE_EMIT_NOTIF_NEW_PACKET state.
*/
- assert(false);
+ abort();
}
}
* SOFTWARE.
*/
+#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
* medium-specific; there is nothing for the user to do
* and it should have been handled upstream.
*/
- assert(false);
+ abort();
case BT_CTF_NOTIF_ITER_STATUS_INVAL:
case BT_CTF_NOTIF_ITER_STATUS_ERROR:
default:
case BT_CTF_NOTIF_ITER_STATUS_OK:
break;
case BT_CTF_NOTIF_ITER_STATUS_AGAIN:
- assert(false);
+ abort();
case BT_CTF_NOTIF_ITER_STATUS_INVAL:
case BT_CTF_NOTIF_ITER_STATUS_ERROR:
default:
#include <glib.h>
#include <stdbool.h>
#include <assert.h>
+#include <stdlib.h>
#define IGNORE_ABSOLUTE_PARAM_NAME "ignore-absolute"
notif, clock_class);
break;
default:
- assert(false);
+ abort();
}
if (!clock_value) {
user_data->seq = seq_multiple_auto_packet_end_stream_end_from_end;
break;
default:
- assert(false);
+ abort();
}
return BT_NOTIFICATION_ITERATOR_STATUS_OK;
event_packet = src_stream2_packet2;
break;
default:
- assert(false);
+ abort();
}
if (event_packet) {
BT_PUT(user_data->notif_iter);
goto end;
case BT_NOTIFICATION_ITERATOR_STATUS_AGAIN:
- assert(false);
+ abort();
default:
break;
}
}
break;
default:
- assert(false);
+ abort();
}
return true;
user_data->packet = src_packet3;
break;
default:
- assert(false);
+ abort();
}
switch (current_test) {
}
break;
default:
- assert(false);
+ abort();
}
return BT_NOTIFICATION_ITERATOR_STATUS_OK;
}
break;
default:
- assert(false);
+ abort();
}
bt_put(private_component);