parameter to disable this.
You can hide specific properties with the param:with-stream-class-name,
-param:with-stream-name, param:with-time, param:with-trace-name, and
-param:with-uuid parameters.
+param:with-stream-class-namespace, param:with-stream-name,
+param:with-time, param:with-trace-name, and param:with-uuid parameters.
To make the component hide many message details and print a single
message per line, you can enable the compact mode with the param:compact
+
Default: true.
+param:with-stream-class-namespace='VAL' vtype:[optional boolean]::
+ If 'VAL' is false, then do not print stream class namespaces.
++
+Default: true.
+
param:with-stream-name='VAL' vtype:[optional boolean]::
If 'VAL' is false, then do not print stream names.
+
#define WITH_TIME_PARAM_NAME "with-time"
#define WITH_TRACE_NAME_PARAM_NAME "with-trace-name"
#define WITH_STREAM_CLASS_NAME_PARAM_NAME "with-stream-class-name"
+#define WITH_STREAM_CLASS_NAMESPACE_PARAM_NAME "with-stream-class-namespace"
#define WITH_STREAM_NAME_PARAM_NAME "with-stream-name"
#define WITH_UUID_PARAM_NAME "with-uuid"
#define COMPACT_PARAM_NAME "compact"
{ COMPACT_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
{ WITH_TIME_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
{ WITH_TRACE_NAME_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
+ { WITH_STREAM_CLASS_NAMESPACE_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
{ WITH_STREAM_CLASS_NAME_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
{ WITH_STREAM_NAME_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
{ WITH_UUID_PARAM_NAME, BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
configure_bool_opt(params, WITH_STREAM_CLASS_NAME_PARAM_NAME, true,
&details_comp->cfg.with_stream_class_name);
+ /* With stream class namespace? */
+ configure_bool_opt(params, WITH_STREAM_CLASS_NAMESPACE_PARAM_NAME, true,
+ &details_comp->cfg.with_stream_class_ns);
+
/* With stream name? */
configure_bool_opt(params, WITH_STREAM_NAME_PARAM_NAME, true,
&details_comp->cfg.with_stream_name);
BT_COMP_LOGI(" With metadata: %d", details_comp->cfg.with_meta);
BT_COMP_LOGI(" With time: %d", details_comp->cfg.with_time);
BT_COMP_LOGI(" With trace name: %d", details_comp->cfg.with_trace_name);
+ BT_COMP_LOGI(" With stream class namespace: %d",
+ details_comp->cfg.with_stream_class_ns);
BT_COMP_LOGI(" With stream class name: %d",
details_comp->cfg.with_stream_class_name);
BT_COMP_LOGI(" With stream name: %d", details_comp->cfg.with_stream_name);
write_indent(ctx);
write_obj_type_name(ctx, "Stream class");
- /* Write name and ID */
+ /* Write name, namespace and ID */
if (ctx->details_comp->cfg.with_stream_class_name) {
const char *name = bt_stream_class_get_name(sc);
}
}
- g_string_append(ctx->str, " (ID ");
+ g_string_append(ctx->str, " (");
+
+ if (ctx->details_comp->cfg.with_stream_class_ns
+ && ctx->details_comp->mip_version >= 1) {
+ const char *ns = bt_stream_class_get_namespace(sc);
+
+ if (ns) {
+ g_string_append(ctx->str, "Namespace `");
+ write_str_prop_value(ctx, ns);
+ g_string_append(ctx->str, "`, ");
+ }
+ }
+
+ g_string_append(ctx->str, "ID ");
write_uint_prop_value(ctx, bt_stream_class_get_id(sc));
g_string_append(ctx->str, "):\n");