[PATCH] perf tools: fix incorrect argument order in calls to get_common_field
From: Colin King
Date: Wed Mar 02 2016 - 10:02:36 EST
From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Although the arguments are not currently being used, there are three
places where the size and offset arguments are being passed in the
wrong order, so fix these.
Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
tools/perf/util/trace-event-parse.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c
index 33b52ea..2c04317 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -56,7 +56,7 @@ int common_lock_depth(struct scripting_context *context)
static int size;
int ret;
- ret = get_common_field(context, &size, &offset,
+ ret = get_common_field(context, &offset, &size,
"common_lock_depth");
if (ret < 0)
return -1;
@@ -70,7 +70,7 @@ int common_flags(struct scripting_context *context)
static int size;
int ret;
- ret = get_common_field(context, &size, &offset,
+ ret = get_common_field(context, &offset, &size,
"common_flags");
if (ret < 0)
return -1;
@@ -84,7 +84,7 @@ int common_pc(struct scripting_context *context)
static int size;
int ret;
- ret = get_common_field(context, &size, &offset,
+ ret = get_common_field(context, &offset, &size,
"common_preempt_count");
if (ret < 0)
return -1;
--
2.7.0