Lines Matching refs:entry

109 print_object_id(const struct spdk_trace_tpoint *d, struct spdk_trace_parser_entry *entry)  in print_object_id()  argument
115 if (entry->related_type != OBJECT_NONE) { in print_object_id()
117 g_file->object[entry->related_type].id_prefix, in print_object_id()
118 entry->related_index); in print_object_id()
122 entry->object_index, related_id); in print_object_id()
133 print_event(struct spdk_trace_parser_entry *entry, uint64_t tsc_rate, uint64_t tsc_offset) in print_event() argument
135 struct spdk_trace_entry *e = entry->entry; in print_event()
144 printf("%-*s ", (int)sizeof(g_file->tname[entry->lcore]), g_file->tname[entry->lcore]); in print_event()
145 printf("%2d: %10.3f ", entry->lcore, us); in print_event()
161 print_object_id(d, entry); in print_event()
163 if (entry->object_index != UINT64_MAX) { in print_event()
164 us = get_us_from_tsc(e->tsc - entry->object_start, tsc_rate); in print_event()
165 print_object_id(d, entry); in print_event()
175 if (entry->args[i].is_related) { in print_event()
183 print_ptr(d->args[i].name, (uint64_t)entry->args[i].u.pointer); in print_event()
186 print_uint64(d->args[i].name, entry->args[i].u.integer); in print_event()
189 print_string(d->args[i].name, entry->args[i].u.string); in print_event()
197 print_event_json(struct spdk_trace_parser_entry *entry, uint64_t tsc_rate, uint64_t tsc_offset) in print_event_json() argument
199 struct spdk_trace_entry *e = entry->entry; in print_event_json()
206 spdk_json_write_named_uint64(g_json, "lcore", entry->lcore); in print_event_json()
225 entry->object_index); in print_event_json()
228 if (entry->object_index != UINT64_MAX) { in print_event_json()
231 entry->object_index); in print_event_json()
233 e->tsc - entry->object_start); in print_event_json()
241 if (entry->related_index != UINT64_MAX) { in print_event_json()
243 g_file->object[entry->related_type].id_prefix, in print_event_json()
244 entry->related_index); in print_event_json()
252 spdk_json_write_uint64(g_json, (uint64_t)entry->args[i].u.pointer); in print_event_json()
255 spdk_json_write_uint64(g_json, entry->args[i].u.integer); in print_event_json()
258 spdk_json_write_string(g_json, entry->args[i].u.string); in print_event_json()
329 struct spdk_trace_parser_entry entry; in trace_print() local
345 while (spdk_trace_parser_next_entry(g_parser, &entry)) { in trace_print()
346 if (entry.entry->tsc < tsc_offset) { in trace_print()
349 print_event(&entry, tsc_rate, tsc_offset); in trace_print()
358 struct spdk_trace_parser_entry entry; in trace_print_json() local
373 while (spdk_trace_parser_next_entry(g_parser, &entry)) { in trace_print_json()
374 if (entry.entry->tsc < tsc_offset) { in trace_print_json()
377 print_event_json(&entry, tsc_rate, tsc_offset); in trace_print_json()