Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git] / plugins / text / pretty / pretty.c
1 /*
2 * pretty.c
3 *
4 * Babeltrace CTF Text Output Plugin
5 *
6 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7 * Copyright 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 *
9 * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 * SOFTWARE.
28 */
29
30 #include <babeltrace/babeltrace.h>
31 #include <babeltrace/values.h>
32 #include <babeltrace/compiler-internal.h>
33 #include <babeltrace/common-internal.h>
34 #include <plugins-common.h>
35 #include <stdio.h>
36 #include <stdbool.h>
37 #include <glib.h>
38 #include <babeltrace/assert-internal.h>
39
40 #include "pretty.h"
41
42 GQuark stream_packet_context_quarks[STREAM_PACKET_CONTEXT_QUARKS_LEN];
43
44 static
45 const char *plugin_options[] = {
46 "color",
47 "path",
48 "no-delta",
49 "clock-cycles",
50 "clock-seconds",
51 "clock-date",
52 "clock-gmt",
53 "verbose",
54 "name-default", /* show/hide */
55 "name-payload",
56 "name-context",
57 "name-scope",
58 "name-header",
59 "field-default", /* show/hide */
60 "field-trace",
61 "field-trace:hostname",
62 "field-trace:domain",
63 "field-trace:procname",
64 "field-trace:vpid",
65 "field-loglevel",
66 "field-emf",
67 "field-callsite",
68 };
69
70 static
71 void destroy_pretty_data(struct pretty_component *pretty)
72 {
73 bt_object_put_ref(pretty->input_iterator);
74
75 if (pretty->string) {
76 (void) g_string_free(pretty->string, TRUE);
77 }
78
79 if (pretty->tmp_string) {
80 (void) g_string_free(pretty->tmp_string, TRUE);
81 }
82
83 if (pretty->out != stdout) {
84 int ret;
85
86 ret = fclose(pretty->out);
87 if (ret) {
88 perror("close output file");
89 }
90 }
91 g_free(pretty->options.output_path);
92 g_free(pretty);
93 }
94
95 static
96 struct pretty_component *create_pretty(void)
97 {
98 struct pretty_component *pretty;
99
100 pretty = g_new0(struct pretty_component, 1);
101 if (!pretty) {
102 goto end;
103 }
104 pretty->string = g_string_new("");
105 if (!pretty->string) {
106 goto error;
107 }
108 pretty->tmp_string = g_string_new("");
109 if (!pretty->tmp_string) {
110 goto error;
111 }
112 end:
113 return pretty;
114
115 error:
116 g_free(pretty);
117 return NULL;
118 }
119
120 BT_HIDDEN
121 void pretty_finalize(struct bt_private_component *component)
122 {
123 void *data = bt_private_component_get_user_data(component);
124
125 destroy_pretty_data(data);
126 }
127
128 static
129 enum bt_component_status handle_notification(struct pretty_component *pretty,
130 struct bt_notification *notification)
131 {
132 enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
133
134 BT_ASSERT(pretty);
135
136 switch (bt_notification_get_type(notification)) {
137 case BT_NOTIFICATION_TYPE_PACKET_BEGIN:
138 ret = pretty_print_packet(pretty, notification);
139 break;
140 case BT_NOTIFICATION_TYPE_EVENT:
141 ret = pretty_print_event(pretty, notification);
142 break;
143 case BT_NOTIFICATION_TYPE_INACTIVITY:
144 fprintf(stderr, "Inactivity notification\n");
145 break;
146 default:
147 break;
148 }
149
150 return ret;
151 }
152
153 BT_HIDDEN
154 enum bt_component_status pretty_port_connected(
155 struct bt_private_component *component,
156 struct bt_private_port *self_port,
157 struct bt_port *other_port)
158 {
159 enum bt_component_status status = BT_COMPONENT_STATUS_OK;
160 enum bt_connection_status conn_status;
161 struct bt_private_connection *connection;
162 struct pretty_component *pretty;
163
164 pretty = bt_private_component_get_user_data(component);
165 BT_ASSERT(pretty);
166 BT_ASSERT(!pretty->input_iterator);
167 connection = bt_private_port_get_private_connection(self_port);
168 BT_ASSERT(connection);
169 conn_status = bt_private_connection_create_notification_iterator(
170 connection, &pretty->input_iterator);
171 if (conn_status != BT_CONNECTION_STATUS_OK) {
172 status = BT_COMPONENT_STATUS_ERROR;
173 }
174
175 bt_object_put_ref(connection);
176 return status;
177 }
178
179 BT_HIDDEN
180 enum bt_component_status pretty_consume(struct bt_private_component *component)
181 {
182 enum bt_component_status ret;
183 bt_notification_array notifs;
184 struct bt_notification_iterator *it;
185 struct pretty_component *pretty =
186 bt_private_component_get_user_data(component);
187 enum bt_notification_iterator_status it_ret;
188 uint64_t count = 0;
189 uint64_t i = 0;
190
191 it = pretty->input_iterator;
192 it_ret = bt_private_connection_notification_iterator_next(it, &notifs,
193 &count);
194
195 switch (it_ret) {
196 case BT_NOTIFICATION_ITERATOR_STATUS_END:
197 ret = BT_COMPONENT_STATUS_END;
198 BT_OBJECT_PUT_REF_AND_RESET(pretty->input_iterator);
199 goto end;
200 case BT_NOTIFICATION_ITERATOR_STATUS_AGAIN:
201 ret = BT_COMPONENT_STATUS_AGAIN;
202 goto end;
203 case BT_NOTIFICATION_ITERATOR_STATUS_OK:
204 break;
205 default:
206 ret = BT_COMPONENT_STATUS_ERROR;
207 goto end;
208 }
209
210 BT_ASSERT(it_ret == BT_NOTIFICATION_ITERATOR_STATUS_OK);
211
212 for (i = 0; i < count; i++) {
213 ret = handle_notification(pretty, notifs[i]);
214 if (ret) {
215 goto end;
216 }
217
218 bt_object_put_ref(notifs[i]);
219 }
220
221 end:
222 for (; i < count; i++) {
223 bt_object_put_ref(notifs[i]);
224 }
225
226 return ret;
227 }
228
229 static
230 enum bt_component_status add_params_to_map(struct bt_value *plugin_opt_map)
231 {
232 enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
233 unsigned int i;
234
235 for (i = 0; i < BT_ARRAY_SIZE(plugin_options); i++) {
236 const char *key = plugin_options[i];
237 enum bt_value_status status;
238
239 status = bt_value_map_insert_entry(plugin_opt_map, key, bt_value_null);
240 switch (status) {
241 case BT_VALUE_STATUS_OK:
242 break;
243 default:
244 ret = BT_COMPONENT_STATUS_ERROR;
245 goto end;
246 }
247 }
248 end:
249 return ret;
250 }
251
252 static
253 bt_bool check_param_exists(const char *key, struct bt_value *object, void *data)
254 {
255 struct pretty_component *pretty = data;
256 struct bt_value *plugin_opt_map = pretty->plugin_opt_map;
257
258 if (!bt_value_map_has_entry(plugin_opt_map, key)) {
259 fprintf(pretty->err,
260 "[warning] Parameter \"%s\" unknown to \"text.pretty\" sink component\n", key);
261 }
262 return BT_TRUE;
263 }
264
265 static
266 enum bt_component_status apply_one_string(const char *key,
267 struct bt_value *params,
268 char **option)
269 {
270 enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
271 struct bt_value *value = NULL;
272 enum bt_value_status status;
273 const char *str;
274
275 value = bt_value_map_borrow_entry_value(params, key);
276 if (!value) {
277 goto end;
278 }
279 if (bt_value_is_null(value)) {
280 goto end;
281 }
282 status = bt_value_string_get(value, &str);
283 switch (status) {
284 case BT_VALUE_STATUS_OK:
285 break;
286 default:
287 ret = BT_COMPONENT_STATUS_ERROR;
288 goto end;
289 }
290 *option = g_strdup(str);
291 end:
292 return ret;
293 }
294
295 static
296 enum bt_component_status apply_one_bool(const char *key,
297 struct bt_value *params,
298 bool *option,
299 bool *found)
300 {
301 enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
302 struct bt_value *value = NULL;
303 enum bt_value_status status;
304 bt_bool bool_val;
305
306 value = bt_value_map_borrow_entry_value(params, key);
307 if (!value) {
308 goto end;
309 }
310 status = bt_value_bool_get(value, &bool_val);
311 switch (status) {
312 case BT_VALUE_STATUS_OK:
313 break;
314 default:
315 ret = BT_COMPONENT_STATUS_ERROR;
316 goto end;
317 }
318 *option = (bool) bool_val;
319 if (found) {
320 *found = true;
321 }
322
323 end:
324 return ret;
325 }
326
327 static
328 void warn_wrong_color_param(struct pretty_component *pretty)
329 {
330 fprintf(pretty->err,
331 "[warning] Accepted values for the \"color\" parameter are:\n \"always\", \"auto\", \"never\"\n");
332 }
333
334 static
335 enum bt_component_status open_output_file(struct pretty_component *pretty)
336 {
337 enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
338
339 if (!pretty->options.output_path) {
340 goto end;
341 }
342
343 pretty->out = fopen(pretty->options.output_path, "w");
344 if (!pretty->out) {
345 goto error;
346 }
347
348 goto end;
349
350 error:
351 ret = BT_COMPONENT_STATUS_ERROR;
352 end:
353 return ret;
354 }
355
356 static
357 enum bt_component_status apply_params(struct pretty_component *pretty,
358 struct bt_value *params)
359 {
360 enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
361 enum bt_value_status status;
362 bool value, found;
363 char *str = NULL;
364
365 pretty->plugin_opt_map = bt_value_map_create();
366 if (!pretty->plugin_opt_map) {
367 ret = BT_COMPONENT_STATUS_ERROR;
368 goto end;
369 }
370 ret = add_params_to_map(pretty->plugin_opt_map);
371 if (ret != BT_COMPONENT_STATUS_OK) {
372 goto end;
373 }
374 /* Report unknown parameters. */
375 status = bt_value_map_foreach_entry(params, check_param_exists, pretty);
376 switch (status) {
377 case BT_VALUE_STATUS_OK:
378 break;
379 default:
380 ret = BT_COMPONENT_STATUS_ERROR;
381 goto end;
382 }
383 /* Known parameters. */
384 pretty->options.color = PRETTY_COLOR_OPT_AUTO;
385 if (bt_value_map_has_entry(params, "color")) {
386 struct bt_value *color_value;
387 const char *color;
388
389 color_value = bt_value_map_borrow_entry_value(params, "color");
390 if (!color_value) {
391 goto end;
392 }
393
394 status = bt_value_string_get(color_value, &color);
395 if (status) {
396 warn_wrong_color_param(pretty);
397 } else {
398 if (strcmp(color, "never") == 0) {
399 pretty->options.color = PRETTY_COLOR_OPT_NEVER;
400 } else if (strcmp(color, "auto") == 0) {
401 pretty->options.color = PRETTY_COLOR_OPT_AUTO;
402 } else if (strcmp(color, "always") == 0) {
403 pretty->options.color = PRETTY_COLOR_OPT_ALWAYS;
404 } else {
405 warn_wrong_color_param(pretty);
406 }
407 }
408 }
409
410 ret = apply_one_string("path", params, &pretty->options.output_path);
411 if (ret != BT_COMPONENT_STATUS_OK) {
412 goto end;
413 }
414 ret = open_output_file(pretty);
415 if (ret != BT_COMPONENT_STATUS_OK) {
416 goto end;
417 }
418
419 value = false; /* Default. */
420 ret = apply_one_bool("no-delta", params, &value, NULL);
421 if (ret != BT_COMPONENT_STATUS_OK) {
422 goto end;
423 }
424 pretty->options.print_delta_field = !value; /* Reverse logic. */
425
426 value = false; /* Default. */
427 ret = apply_one_bool("clock-cycles", params, &value, NULL);
428 if (ret != BT_COMPONENT_STATUS_OK) {
429 goto end;
430 }
431 pretty->options.print_timestamp_cycles = value;
432
433 value = false; /* Default. */
434 ret = apply_one_bool("clock-seconds", params, &value, NULL);
435 if (ret != BT_COMPONENT_STATUS_OK) {
436 goto end;
437 }
438 pretty->options.clock_seconds = value;
439
440 value = false; /* Default. */
441 ret = apply_one_bool("clock-date", params, &value, NULL);
442 if (ret != BT_COMPONENT_STATUS_OK) {
443 goto end;
444 }
445 pretty->options.clock_date = value;
446
447 value = false; /* Default. */
448 ret = apply_one_bool("clock-gmt", params, &value, NULL);
449 if (ret != BT_COMPONENT_STATUS_OK) {
450 goto end;
451 }
452 pretty->options.clock_gmt = value;
453
454 value = false; /* Default. */
455 ret = apply_one_bool("verbose", params, &value, NULL);
456 if (ret != BT_COMPONENT_STATUS_OK) {
457 goto end;
458 }
459 pretty->options.verbose = value;
460
461 /* Names. */
462 ret = apply_one_string("name-default", params, &str);
463 if (ret != BT_COMPONENT_STATUS_OK) {
464 goto end;
465 }
466 if (!str) {
467 pretty->options.name_default = PRETTY_DEFAULT_UNSET;
468 } else if (!strcmp(str, "show")) {
469 pretty->options.name_default = PRETTY_DEFAULT_SHOW;
470 } else if (!strcmp(str, "hide")) {
471 pretty->options.name_default = PRETTY_DEFAULT_HIDE;
472 } else {
473 ret = BT_COMPONENT_STATUS_ERROR;
474 goto end;
475 }
476 g_free(str);
477 str = NULL;
478
479 switch (pretty->options.name_default) {
480 case PRETTY_DEFAULT_UNSET:
481 pretty->options.print_payload_field_names = true;
482 pretty->options.print_context_field_names = true;
483 pretty->options.print_header_field_names = false;
484 pretty->options.print_scope_field_names = false;
485 break;
486 case PRETTY_DEFAULT_SHOW:
487 pretty->options.print_payload_field_names = true;
488 pretty->options.print_context_field_names = true;
489 pretty->options.print_header_field_names = true;
490 pretty->options.print_scope_field_names = true;
491 break;
492 case PRETTY_DEFAULT_HIDE:
493 pretty->options.print_payload_field_names = false;
494 pretty->options.print_context_field_names = false;
495 pretty->options.print_header_field_names = false;
496 pretty->options.print_scope_field_names = false;
497 break;
498 default:
499 ret = BT_COMPONENT_STATUS_ERROR;
500 goto end;
501 }
502
503 value = false;
504 found = false;
505 ret = apply_one_bool("name-payload", params, &value, &found);
506 if (ret != BT_COMPONENT_STATUS_OK) {
507 goto end;
508 }
509 if (found) {
510 pretty->options.print_payload_field_names = value;
511 }
512
513 value = false;
514 found = false;
515 ret = apply_one_bool("name-context", params, &value, &found);
516 if (ret != BT_COMPONENT_STATUS_OK) {
517 goto end;
518 }
519 if (found) {
520 pretty->options.print_context_field_names = value;
521 }
522
523 value = false;
524 found = false;
525 ret = apply_one_bool("name-header", params, &value, &found);
526 if (ret != BT_COMPONENT_STATUS_OK) {
527 goto end;
528 }
529 if (found) {
530 pretty->options.print_header_field_names = value;
531 }
532
533 value = false;
534 found = false;
535 ret = apply_one_bool("name-scope", params, &value, &found);
536 if (ret != BT_COMPONENT_STATUS_OK) {
537 goto end;
538 }
539 if (found) {
540 pretty->options.print_scope_field_names = value;
541 }
542
543 /* Fields. */
544 ret = apply_one_string("field-default", params, &str);
545 if (ret != BT_COMPONENT_STATUS_OK) {
546 goto end;
547 }
548 if (!str) {
549 pretty->options.field_default = PRETTY_DEFAULT_UNSET;
550 } else if (!strcmp(str, "show")) {
551 pretty->options.field_default = PRETTY_DEFAULT_SHOW;
552 } else if (!strcmp(str, "hide")) {
553 pretty->options.field_default = PRETTY_DEFAULT_HIDE;
554 } else {
555 ret = BT_COMPONENT_STATUS_ERROR;
556 goto end;
557 }
558 g_free(str);
559 str = NULL;
560
561 switch (pretty->options.field_default) {
562 case PRETTY_DEFAULT_UNSET:
563 pretty->options.print_trace_field = false;
564 pretty->options.print_trace_hostname_field = true;
565 pretty->options.print_trace_domain_field = false;
566 pretty->options.print_trace_procname_field = true;
567 pretty->options.print_trace_vpid_field = true;
568 pretty->options.print_loglevel_field = false;
569 pretty->options.print_emf_field = false;
570 pretty->options.print_callsite_field = false;
571 break;
572 case PRETTY_DEFAULT_SHOW:
573 pretty->options.print_trace_field = true;
574 pretty->options.print_trace_hostname_field = true;
575 pretty->options.print_trace_domain_field = true;
576 pretty->options.print_trace_procname_field = true;
577 pretty->options.print_trace_vpid_field = true;
578 pretty->options.print_loglevel_field = true;
579 pretty->options.print_emf_field = true;
580 pretty->options.print_callsite_field = true;
581 break;
582 case PRETTY_DEFAULT_HIDE:
583 pretty->options.print_trace_field = false;
584 pretty->options.print_trace_hostname_field = false;
585 pretty->options.print_trace_domain_field = false;
586 pretty->options.print_trace_procname_field = false;
587 pretty->options.print_trace_vpid_field = false;
588 pretty->options.print_loglevel_field = false;
589 pretty->options.print_emf_field = false;
590 pretty->options.print_callsite_field = false;
591 break;
592 default:
593 ret = BT_COMPONENT_STATUS_ERROR;
594 goto end;
595 }
596
597 value = false;
598 found = false;
599 ret = apply_one_bool("field-trace", params, &value, &found);
600 if (ret != BT_COMPONENT_STATUS_OK) {
601 goto end;
602 }
603 if (found) {
604 pretty->options.print_trace_field = value;
605 }
606
607 value = false;
608 found = false;
609 ret = apply_one_bool("field-trace:hostname", params, &value, &found);
610 if (ret != BT_COMPONENT_STATUS_OK) {
611 goto end;
612 }
613 if (found) {
614 pretty->options.print_trace_hostname_field = value;
615 }
616
617 value = false;
618 found = false;
619 ret = apply_one_bool("field-trace:domain", params, &value, &found);
620 if (ret != BT_COMPONENT_STATUS_OK) {
621 goto end;
622 }
623 if (found) {
624 pretty->options.print_trace_domain_field = value;
625 }
626
627 value = false;
628 found = false;
629 ret = apply_one_bool("field-trace:procname", params, &value, &found);
630 if (ret != BT_COMPONENT_STATUS_OK) {
631 goto end;
632 }
633 if (found) {
634 pretty->options.print_trace_procname_field = value;
635 }
636
637 value = false;
638 found = false;
639 ret = apply_one_bool("field-trace:vpid", params, &value, &found);
640 if (ret != BT_COMPONENT_STATUS_OK) {
641 goto end;
642 }
643 if (found) {
644 pretty->options.print_trace_vpid_field = value;
645 }
646
647 value = false;
648 found = false;
649 ret = apply_one_bool("field-loglevel", params, &value, &found);
650 if (ret != BT_COMPONENT_STATUS_OK) {
651 goto end;
652 }
653 if (found) {
654 pretty->options.print_loglevel_field = value;
655 }
656
657 value = false;
658 found = false;
659 ret = apply_one_bool("field-emf", params, &value, &found);
660 if (ret != BT_COMPONENT_STATUS_OK) {
661 goto end;
662 }
663 if (found) {
664 pretty->options.print_emf_field = value;
665 }
666
667 value = false;
668 found = false;
669 ret = apply_one_bool("field-callsite", params, &value, &found);
670 if (ret != BT_COMPONENT_STATUS_OK) {
671 goto end;
672 }
673 if (found) {
674 pretty->options.print_callsite_field = value;
675 }
676
677 end:
678 bt_object_put_ref(pretty->plugin_opt_map);
679 pretty->plugin_opt_map = NULL;
680 g_free(str);
681 return ret;
682 }
683
684 static
685 void set_use_colors(struct pretty_component *pretty)
686 {
687 switch (pretty->options.color) {
688 case PRETTY_COLOR_OPT_ALWAYS:
689 pretty->use_colors = true;
690 break;
691 case PRETTY_COLOR_OPT_AUTO:
692 pretty->use_colors = pretty->out == stdout &&
693 bt_common_colors_supported();
694 break;
695 case PRETTY_COLOR_OPT_NEVER:
696 pretty->use_colors = false;
697 break;
698 }
699 }
700
701 static
702 void init_stream_packet_context_quarks(void)
703 {
704 stream_packet_context_quarks[Q_TIMESTAMP_BEGIN] =
705 g_quark_from_string("timestamp_begin");
706 stream_packet_context_quarks[Q_TIMESTAMP_BEGIN] =
707 g_quark_from_string("timestamp_begin");
708 stream_packet_context_quarks[Q_TIMESTAMP_END] =
709 g_quark_from_string("timestamp_end");
710 stream_packet_context_quarks[Q_EVENTS_DISCARDED] =
711 g_quark_from_string("events_discarded");
712 stream_packet_context_quarks[Q_CONTENT_SIZE] =
713 g_quark_from_string("content_size");
714 stream_packet_context_quarks[Q_PACKET_SIZE] =
715 g_quark_from_string("packet_size");
716 stream_packet_context_quarks[Q_PACKET_SEQ_NUM] =
717 g_quark_from_string("packet_seq_num");
718 }
719
720 BT_HIDDEN
721 enum bt_component_status pretty_init(
722 struct bt_private_component *component,
723 struct bt_value *params,
724 UNUSED_VAR void *init_method_data)
725 {
726 enum bt_component_status ret;
727 struct pretty_component *pretty = create_pretty();
728
729 if (!pretty) {
730 ret = BT_COMPONENT_STATUS_NOMEM;
731 goto end;
732 }
733
734 ret = bt_private_component_sink_add_input_private_port(component,
735 "in", NULL, NULL);
736 if (ret != BT_COMPONENT_STATUS_OK) {
737 goto end;
738 }
739
740 pretty->out = stdout;
741 pretty->err = stderr;
742
743 pretty->delta_cycles = -1ULL;
744 pretty->last_cycles_timestamp = -1ULL;
745
746 pretty->delta_real_timestamp = -1ULL;
747 pretty->last_real_timestamp = -1ULL;
748
749 ret = apply_params(pretty, params);
750 if (ret != BT_COMPONENT_STATUS_OK) {
751 goto error;
752 }
753
754 set_use_colors(pretty);
755 ret = bt_private_component_set_user_data(component, pretty);
756 if (ret != BT_COMPONENT_STATUS_OK) {
757 goto error;
758 }
759
760 init_stream_packet_context_quarks();
761
762 end:
763 return ret;
764 error:
765 destroy_pretty_data(pretty);
766 return ret;
767 }
This page took 0.044215 seconds and 4 git commands to generate.