diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-12 10:11:20 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-12 10:11:20 -0500 |
commit | b2202021815c7716b4b45087736697b78826415b (patch) | |
tree | 6d3689ed4e9b01762e7d23304a2494e6e2439b9f | |
parent | 0f64a9efd51a8e08fdba826c6399c7ffb4f2442c (diff) |
trace-cmd: Fix trace-read to do a read not a peek
A previous change broke the cpu filtering and had the trace-read
return a peek and not a read. This would later be freed incorrectly.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-read.c b/trace-read.c index 5befaba..f7b9e17 100644 --- a/trace-read.c +++ b/trace-read.c | |||
@@ -248,7 +248,7 @@ static void read_data_info(struct tracecmd_input *handle) | |||
248 | ts = 0; | 248 | ts = 0; |
249 | if (filter_cpu >= 0) { | 249 | if (filter_cpu >= 0) { |
250 | cpu = filter_cpu; | 250 | cpu = filter_cpu; |
251 | record = tracecmd_peek_data(handle, cpu); | 251 | record = tracecmd_read_data(handle, cpu); |
252 | } else | 252 | } else |
253 | record = tracecmd_read_next_data(handle, &cpu); | 253 | record = tracecmd_read_next_data(handle, &cpu); |
254 | 254 | ||