diff options
Diffstat (limited to 'rt-plot.c')
-rw-r--r-- | rt-plot.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -123,7 +123,7 @@ rt_plot_display_info(struct graph_info *ginfo, struct graph_plot *plot, | |||
123 | { | 123 | { |
124 | struct rt_plot_common *rt_info = plot->private; | 124 | struct rt_plot_common *rt_info = plot->private; |
125 | struct event_format *event; | 125 | struct event_format *event; |
126 | struct record *record, *prev_record, *data_record; | 126 | struct record *record = NULL, *prev_record = NULL, *data_record = NULL; |
127 | unsigned long long msec, nsec, rts, ptime, rtime, range; | 127 | unsigned long long msec, nsec, rts, ptime, rtime, range; |
128 | long long pdiff, rdiff; | 128 | long long pdiff, rdiff; |
129 | int eid; | 129 | int eid; |
@@ -395,8 +395,9 @@ void get_previous_release(struct graph_info *ginfo, int match_tid, | |||
395 | last_rec->ref_count++; | 395 | last_rec->ref_count++; |
396 | 396 | ||
397 | while ((rec = tracecmd_read_prev(ginfo->handle, last_rec))) { | 397 | while ((rec = tracecmd_read_prev(ginfo->handle, last_rec))) { |
398 | if (rec->ts < min_ts) { | 398 | if (get_rts(ginfo, rec) < min_ts) { |
399 | free_record(rec); | 399 | free_record(rec); |
400 | |||
400 | goto loop_end; | 401 | goto loop_end; |
401 | } | 402 | } |
402 | 403 | ||
@@ -425,5 +426,6 @@ void get_previous_release(struct graph_info *ginfo, int match_tid, | |||
425 | loop_end: | 426 | loop_end: |
426 | free_record(last_rec); | 427 | free_record(last_rec); |
427 | } | 428 | } |
429 | |||
428 | free_record(ret); | 430 | free_record(ret); |
429 | } | 431 | } |