projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Relax unknown field handling: warn instead of error
[babeltrace.git]
/
formats
/
ctf
/
metadata
/
ctf-visitor-parent-links.c
diff --git
a/formats/ctf/metadata/ctf-visitor-parent-links.c
b/formats/ctf/metadata/ctf-visitor-parent-links.c
index 3dea11a01798c8dc748ecfaae00f12c667112a47..4f987211cd276595f4013da17dd1647634768b8e 100644
(file)
--- a/
formats/ctf/metadata/ctf-visitor-parent-links.c
+++ b/
formats/ctf/metadata/ctf-visitor-parent-links.c
@@
-205,6
+205,12
@@
int ctf_visitor_parent_links(FILE *fd, int depth, struct ctf_node *node)
if (ret)
return ret;
}
if (ret)
return ret;
}
+ cds_list_for_each_entry(iter, &node->u.root.clock, siblings) {
+ iter->parent = node;
+ ret = ctf_visitor_parent_links(fd, depth + 1, iter);
+ if (ret)
+ return ret;
+ }
break;
case NODE_EVENT:
break;
case NODE_EVENT:
@@
-231,6
+237,14
@@
int ctf_visitor_parent_links(FILE *fd, int depth, struct ctf_node *node)
return ret;
}
break;
return ret;
}
break;
+ case NODE_CLOCK:
+ cds_list_for_each_entry(iter, &node->u.clock.declaration_list, siblings) {
+ iter->parent = node;
+ ret = ctf_visitor_parent_links(fd, depth + 1, iter);
+ if (ret)
+ return ret;
+ }
+ break;
case NODE_CTF_EXPRESSION:
depth++;
case NODE_CTF_EXPRESSION:
depth++;
This page took
0.02315 seconds
and
4
git commands to generate.