[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-605a3069161dd966d6cea795133c673fb6706e52@git.kernel.org>
Date: Wed, 28 Jan 2015 07:10:18 -0800
From: tip-bot for Rasmus Villemoes <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, linux-kernel@...r.kernel.org, hpa@...or.com,
a.p.zijlstra@...llo.nl, acme@...hat.com, linux@...musvillemoes.dk,
mingo@...nel.org, paulus@...ba.org
Subject: [tip:perf/core] perf tests: Fix typo in sample-parsing.c
Commit-ID: 605a3069161dd966d6cea795133c673fb6706e52
Gitweb: http://git.kernel.org/tip/605a3069161dd966d6cea795133c673fb6706e52
Author: Rasmus Villemoes <linux@...musvillemoes.dk>
AuthorDate: Thu, 22 Jan 2015 18:01:23 +0100
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Thu, 22 Jan 2015 17:03:01 -0300
perf tests: Fix typo in sample-parsing.c
It was testing the same buffer for differences:
memcmp(s1->user_stack.data, s1->user_stack.data, s1->user_stack.size)
I'm pretty sure this wasn't supposed to be dead code.
Signed-off-by: Rasmus Villemoes <linux@...musvillemoes.dk>
Cc: Paul Mackerras <paulus@...ba.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Link: http://lkml.kernel.org/r/1421946083-29863-1-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/tests/sample-parsing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/tests/sample-parsing.c b/tools/perf/tests/sample-parsing.c
index 4908c64..30c0218 100644
--- a/tools/perf/tests/sample-parsing.c
+++ b/tools/perf/tests/sample-parsing.c
@@ -110,7 +110,7 @@ static bool samples_same(const struct perf_sample *s1,
if (type & PERF_SAMPLE_STACK_USER) {
COMP(user_stack.size);
- if (memcmp(s1->user_stack.data, s1->user_stack.data,
+ if (memcmp(s1->user_stack.data, s2->user_stack.data,
s1->user_stack.size)) {
pr_debug("Samples differ at 'user_stack'\n");
return false;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists