* Babeltrace CTF Text Output Plugin
*
* Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
"field-trace:vpid",
"field-loglevel",
"field-emf",
- "field-callsite",
};
static
text->options.print_loglevel_field = false;
text->options.print_emf_field = false;
text->options.print_emf_field = false;
- text->options.print_callsite_field = false;
break;
case TEXT_DEFAULT_SHOW:
text->options.print_trace_field = true;
text->options.print_loglevel_field = true;
text->options.print_emf_field = true;
text->options.print_emf_field = true;
- text->options.print_callsite_field = true;
break;
case TEXT_DEFAULT_HIDE:
text->options.print_trace_field = false;
text->options.print_loglevel_field = false;
text->options.print_emf_field = false;
text->options.print_emf_field = false;
- text->options.print_callsite_field = false;
break;
default:
ret = BT_COMPONENT_STATUS_ERROR;
text->options.print_emf_field = value;
}
- value = false;
- found = false;
- ret = apply_one_bool("field-callsite", params, &value, &found);
- if (ret != BT_COMPONENT_STATUS_OK) {
- goto end;
- }
- if (found) {
- text->options.print_callsite_field = value;
- }
end:
bt_put(text->plugin_opt_map);
text->plugin_opt_map = NULL;