tools lib traceevent: Use proper function parameter type
authorNamhyung Kim <[email protected]>
Wed, 23 May 2012 02:36:51 +0000 (11:36 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 24 May 2012 14:34:12 +0000 (11:34 -0300)
The param needs to be updated when setting args up so that
the loop in process_defined_func() can see the correct
param->type for the farg.

Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/lib/traceevent/event-parse.c

index 355902795f0a849e22a0b4e340467161b14bc827..554828219c33cceaf0c5b9d3f57bd69d4a7a109f 100644 (file)
@@ -3375,6 +3375,7 @@ process_defined_func(struct trace_seq *s, void *data, int size,
                        break;
                }
                farg = farg->next;
+               param = param->next;
        }
 
        ret = (*func_handle->func)(s, args);