diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-06-09 15:06:17 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-06-09 15:06:17 -0400 |
commit | 5a863b6e82eff4ea370b9f44992172f8263a1c71 (patch) | |
tree | 6b2a4309f15aa0ec064e16f9769a86e3c7dc1231 /util.h | |
parent | 4b9e3dca949377618759913d8b2891200e2231d1 (diff) |
trace-graph: Use ref_count instead of comparisons
In find_previous_record in the trace-plot, instead of checking if
the last_record is equal to the start_record, simply up the ref count.
Then the free will not free the start_record.
This makes the code a bit cleaner.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'util.h')
0 files changed, 0 insertions, 0 deletions