diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/tests/sample-parsing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/sample-parsing.c b/tools/perf/tests/sample-parsing.c index 4908c648a597..30c02181e78b 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, | |||
110 | 110 | ||
111 | if (type & PERF_SAMPLE_STACK_USER) { | 111 | if (type & PERF_SAMPLE_STACK_USER) { |
112 | COMP(user_stack.size); | 112 | COMP(user_stack.size); |
113 | if (memcmp(s1->user_stack.data, s1->user_stack.data, | 113 | if (memcmp(s1->user_stack.data, s2->user_stack.data, |
114 | s1->user_stack.size)) { | 114 | s1->user_stack.size)) { |
115 | pr_debug("Samples differ at 'user_stack'\n"); | 115 | pr_debug("Samples differ at 'user_stack'\n"); |
116 | return false; | 116 | return false; |