lkml.org 
[lkml]   [2016]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] perf tools: fix incorrect argument order in calls to get_common_field
Date
From: Colin Ian King <colin.king@canonical.com>

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@canonical.com>
---
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
\
 
 \ /
  Last update: 2016-03-02 16:41    [W:0.025 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site