X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Ffs-src%2Fquery.c;h=d666e1c4f6f9baab495027975ac29dacfc5a6a08;hb=a38d765099a8eb46b2b319381054db90a75029a9;hp=31d710814b92812578d2ab7582fb85e89609e502;hpb=55c68a1a729551ca7d697d6e771064a06a19c206;p=babeltrace.git diff --git a/plugins/ctf/fs-src/query.c b/plugins/ctf/fs-src/query.c index 31d71081..d666e1c4 100644 --- a/plugins/ctf/fs-src/query.c +++ b/plugins/ctf/fs-src/query.c @@ -273,6 +273,7 @@ int populate_stream_info(struct ctf_fs_ds_file_group *group, bt_value *file_paths; struct ctf_fs_ds_file_info *first_file_info, *last_file_info; struct ctf_fs_ds_index_entry *first_ds_index_entry, *last_ds_index_entry; + gchar *port_name = NULL; file_paths = bt_value_array_create(); if (!file_paths) { @@ -344,6 +345,20 @@ int populate_stream_info(struct ctf_fs_ds_file_group *group, if (ret) { goto end; } + + port_name = ctf_fs_make_port_name(group); + if (!port_name) { + ret = -1; + goto end; + } + + status = bt_value_map_insert_string_entry(group_info, "port-name", + port_name); + if (status != BT_VALUE_STATUS_OK) { + ret = -1; + goto end; + } + end: bt_value_put_ref(file_paths); return ret;