diff options
Diffstat (limited to 'rt-plot-cpu.c')
-rw-r--r-- | rt-plot-cpu.c | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/rt-plot-cpu.c b/rt-plot-cpu.c index aa7b611..ea88891 100644 --- a/rt-plot-cpu.c +++ b/rt-plot-cpu.c | |||
@@ -386,28 +386,32 @@ rt_cpu_plot_display_last_event(struct graph_info *ginfo, struct graph_plot *plot | |||
386 | unsigned long long offset; | 386 | unsigned long long offset; |
387 | int eid, cpu; | 387 | int eid, cpu; |
388 | 388 | ||
389 | cpu = rtc_info->cpu; | 389 | /* TODO: disabled */ |
390 | record = tracecmd_peek_data(ginfo->handle, cpu); | 390 | return 0; |
391 | if (record) | ||
392 | offset = record->offset; | ||
393 | 391 | ||
394 | record = find_display_record(ginfo, cpu, time); | 392 | /* cpu = rtc_info->cpu; */ |
393 | /* record = tracecmd_peek_data(ginfo->handle, cpu); */ | ||
394 | /* if (record) */ | ||
395 | /* offset = record->offset; */ | ||
395 | 396 | ||
396 | if (offset) | 397 | /* record = find_display_record(ginfo, cpu, time); */ |
397 | tracecmd_set_cursor(ginfo->handle, cpu, offset); | ||
398 | if (!record) | ||
399 | return 0; | ||
400 | 398 | ||
401 | eid = pevent_data_type(ginfo->pevent, record); | 399 | /* if (offset) */ |
402 | event = pevent_data_event_from_type(ginfo->pevent, eid); | 400 | /* tracecmd_set_cursor(ginfo->handle, cpu, offset); */ |
403 | if (event) { | 401 | /* if (!record) */ |
404 | trace_seq_puts(s, event->name); | 402 | /* return 0; */ |
405 | trace_seq_printf(s, "\n"); /* Doesn't work otherwise */ | ||
406 | } else | ||
407 | trace_seq_printf(s, "UNKNOWN EVENT %d\n", eid); | ||
408 | free_record(record); | ||
409 | 403 | ||
410 | return 1; | 404 | |
405 | /* eid = pevent_data_type(ginfo->pevent, record); */ | ||
406 | /* event = pevent_data_event_from_type(ginfo->pevent, eid); */ | ||
407 | /* if (event) { */ | ||
408 | /* trace_seq_puts(s, event->name); */ | ||
409 | /* trace_seq_printf(s, "\n"); /\* Doesn't work otherwise *\/ */ | ||
410 | /* } else */ | ||
411 | /* trace_seq_printf(s, "UNKNOWN EVENT %d\n", eid); */ | ||
412 | /* free_record(record); */ | ||
413 | |||
414 | /* return 1; */ | ||
411 | } | 415 | } |
412 | 416 | ||
413 | struct record* | 417 | struct record* |