Lines Matching defs:history
78 void populate_events(spdk_trace_history *history, int num_entries, bool overflowed);
94 spdk_trace_history *history;
100 history = spdk_get_per_lcore_history(_trace_file, lcore);
102 return history == NULL ? 0 : history->num_entries;
108 spdk_trace_history *history;
110 history = spdk_get_per_lcore_history(_trace_file, lcore);
111 assert(history);
114 static_cast<void *>(&history->entries[history->num_entries - 1]))) {
115 return reinterpret_cast<spdk_trace_entry_buffer *>(&history->entries[0]);
227 spdk_trace_parser::populate_events(spdk_trace_history *history, int num_entries, bool overflowed)
233 lcore = history->lcore;
234 e = history->entries;
285 spdk_trace_history *history;
347 history = spdk_get_per_lcore_history(_trace_file, i);
348 if (history == NULL || history->num_entries == 0 || history->entries[0].tsc == 0) {
351 entry_num = history->num_entries - 1;
354 if (history->entries[entry_num].tsc == 0) {
366 history = spdk_get_per_lcore_history(_trace_file, i);
367 if (history == NULL || history->num_entries == 0 || history->entries[0].tsc == 0) {
370 populate_events(history, history->num_entries, overflowed);
373 history = spdk_get_per_lcore_history(_trace_file, opts->lcore);
374 if (history == NULL) {
375 SPDK_ERRLOG("Trace file %s has no trace history for lcore %d\n",
379 if (history->num_entries > 0 && history->entries[0].tsc != 0) {
380 populate_events(history, history->num_entries, false);