aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-12 16:49:39 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-12 16:49:39 -0500
commit61d90eef4b5849d00ca064512fe178345f4bcfd1 (patch)
tree8120be5921656ee4ab76b2ac248c63359a6b6cad
parent0d3108639ed717b2f2c9cf5e0868cdc2c2d19cd1 (diff)
squash me
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/trace-input.c b/trace-input.c
index 29b44c6..0a8ebb1 100644
--- a/trace-input.c
+++ b/trace-input.c
@@ -981,6 +981,9 @@ static int init_read(struct tracecmd_input *handle, int cpu)
981 981
982static int init_cpu(struct tracecmd_input *handle, int cpu) 982static int init_cpu(struct tracecmd_input *handle, int cpu)
983{ 983{
984 handle->cpu_data[cpu].offset = handle->cpu_data[cpu].file_offset;
985 handle->cpu_data[cpu].size = handle->cpu_data[cpu].file_size;
986
984 if (!handle->cpu_data[cpu].size) { 987 if (!handle->cpu_data[cpu].size) {
985 printf("CPU %d is empty\n", cpu); 988 printf("CPU %d is empty\n", cpu);
986 return 0; 989 return 0;
@@ -1053,8 +1056,6 @@ int tracecmd_init_data(struct tracecmd_input *handle)
1053 offset = read8(handle); 1056 offset = read8(handle);
1054 size = read8(handle); 1057 size = read8(handle);
1055 1058
1056 handle->cpu_data[cpu].offset = offset;
1057 handle->cpu_data[cpu].size = size;
1058 handle->cpu_data[cpu].file_offset = offset; 1059 handle->cpu_data[cpu].file_offset = offset;
1059 handle->cpu_data[cpu].file_size = size; 1060 handle->cpu_data[cpu].file_size = size;
1060 1061