projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src.ctf.fs: add stream port name to trace-info query, use it for stream intersection
[babeltrace.git]
/
plugins
/
ctf
/
fs-src
/
query.c
diff --git
a/plugins/ctf/fs-src/query.c
b/plugins/ctf/fs-src/query.c
index 31d710814b92812578d2ab7582fb85e89609e502..d666e1c4f6f9baab495027975ac29dacfc5a6a08 100644
(file)
--- 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;
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) {
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;
}
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;
end:
bt_value_put_ref(file_paths);
return ret;
This page took
0.023514 seconds
and
4
git commands to generate.