Add callsite support
[babeltrace.git] / formats / ctf / metadata / ctf-visitor-xml.c
index 428a89560e9baa1bf0aa25ff881462609c8af851..437748cab323f5cedaf9fc3a530e8bf2b4bd5772 100644 (file)
@@ -443,6 +443,17 @@ int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node)
                print_tabs(fd, depth);
                fprintf(fd, "</clock>\n");
                break;
+       case NODE_CALLSITE:
+               print_tabs(fd, depth);
+               fprintf(fd, "<callsite>\n");
+               bt_list_for_each_entry(iter, &node->u.callsite.declaration_list, siblings) {
+                       ret = ctf_visitor_print_xml(fd, depth + 1, iter);
+                       if (ret)
+                               return ret;
+               }
+               print_tabs(fd, depth);
+               fprintf(fd, "</callsite>\n");
+               break;
 
 
        case NODE_CTF_EXPRESSION:
This page took 0.024983 seconds and 4 git commands to generate.