+ if ((opt_trace_name || opt_all_field_names) && stream_class->trace->path[0] != '\0') {
+ set_field_names_print(pos, ITEM_HEADER);
+ if (pos->print_names) {
+ if (opt_trace_name || opt_all_field_names)
+ fprintf(pos->fp, "trace = ");
+ }
+
+ fprintf(pos->fp, "%s", stream_class->trace->path);
+ if (pos->print_names)
+ fprintf(pos->fp, ", ");
+ else
+ fprintf(pos->fp, " ");
+ }
+ if ((opt_trace_domain) && stream_class->trace->domain[0] != '\0') {
+ set_field_names_print(pos, ITEM_HEADER);
+ if (pos->print_names) {
+ fprintf(pos->fp, "trace:domain = ");
+ }
+ if (opt_trace_domain)
+ fprintf(pos->fp, "%s", stream_class->trace->domain);
+ if (pos->print_names)
+ fprintf(pos->fp, ", ");
+ dom_print = 1;
+ }
+ if ((opt_trace_procname) && stream_class->trace->procname[0] != '\0') {
+ set_field_names_print(pos, ITEM_HEADER);
+ if (pos->print_names) {
+ fprintf(pos->fp, "trace:procname = ");
+ } else if (dom_print) {
+ fprintf(pos->fp, ":");
+ }
+
+ if (opt_trace_procname)
+ fprintf(pos->fp, "%s", stream_class->trace->procname);
+ if (pos->print_names)
+ fprintf(pos->fp, ", ");
+ dom_print = 1;
+ }
+ if ((opt_trace_vpid) && stream_class->trace->vpid[0] != '\0') {
+ set_field_names_print(pos, ITEM_HEADER);
+ if (pos->print_names) {
+ fprintf(pos->fp, "trace:vpid = ");
+ } else if (dom_print) {
+ fprintf(pos->fp, ":");
+ }
+
+ if (opt_trace_vpid)
+ fprintf(pos->fp, "%s", stream_class->trace->vpid);
+ if (pos->print_names)
+ fprintf(pos->fp, ", ");
+ dom_print = 1;
+ }
+ if ((opt_loglevel || opt_all_field_names) && event_class->loglevel_identifier != 0) {
+ set_field_names_print(pos, ITEM_HEADER);
+ if (pos->print_names) {
+ fprintf(pos->fp, "loglevel = ");
+ } else if (dom_print) {
+ fprintf(pos->fp, ":");
+ }
+
+ fprintf(pos->fp, "%s (%lld)",
+ g_quark_to_string(event_class->loglevel_identifier),
+ (long long) event_class->loglevel_value);
+ if (pos->print_names)
+ fprintf(pos->fp, ", ");
+ dom_print = 1;
+ }
+ if (dom_print && !pos->print_names)
+ fprintf(pos->fp, " ");
+ set_field_names_print(pos, ITEM_HEADER);