Lines Matching +full:differ +full:-
1 // SPDX-License-Identifier: GPL-2.0
15 #include "util/synthetic-events.h"
20 if (s1->m != s2->m) { \
21 pr_debug("Samples differ at '"#m"'\n"); \
27 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \
28 pr_debug("Samples differ at '"#m"'\n"); \
79 for (i = 0; i < s1->read.group.nr; i++) in samples_same()
87 COMP(callchain->nr); in samples_same()
88 for (i = 0; i < s1->callchain->nr; i++) in samples_same()
89 COMP(callchain->ips[i]); in samples_same()
94 if (memcmp(s1->raw_data, s2->raw_data, s1->raw_size)) { in samples_same()
95 pr_debug("Samples differ at 'raw_data'\n"); in samples_same()
101 COMP(branch_stack->nr); in samples_same()
102 COMP(branch_stack->hw_idx); in samples_same()
103 for (i = 0; i < s1->branch_stack->nr; i++) in samples_same()
104 MCOMP(branch_stack->entries[i]); in samples_same()
108 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same()
112 if (s1->user_regs.abi && in samples_same()
113 (!s1->user_regs.regs || !s2->user_regs.regs || in samples_same()
114 memcmp(s1->user_regs.regs, s2->user_regs.regs, sz))) { in samples_same()
115 pr_debug("Samples differ at 'user_regs'\n"); in samples_same()
122 if (memcmp(s1->user_stack.data, s2->user_stack.data, in samples_same()
123 s1->user_stack.size)) { in samples_same()
124 pr_debug("Samples differ at 'user_stack'\n"); in samples_same()
139 size_t sz = hweight_long(s1->intr_regs.mask) * sizeof(u64); in samples_same()
143 if (s1->intr_regs.abi && in samples_same()
144 (!s1->intr_regs.regs || !s2->intr_regs.regs || in samples_same()
145 memcmp(s1->intr_regs.regs, s2->intr_regs.regs, sz))) { in samples_same()
146 pr_debug("Samples differ at 'intr_regs'\n"); in samples_same()
159 if (memcmp(s1->aux_sample.data, s2->aux_sample.data, in samples_same()
160 s1->aux_sample.size)) { in samples_same()
161 pr_debug("Samples differ at 'aux_sample'\n"); in samples_same()
193 .data = {1, -1ULL, 211, 212, 213}, in do_test()
245 int err, ret = -1; in do_test()
272 return -1; in do_test()
276 event->header.type = PERF_RECORD_SAMPLE; in do_test()
277 event->header.misc = 0; in do_test()
278 event->header.size = sz; in do_test()
289 for (i = bufsz; i > 0; i--) { in do_test()
290 if (*(i - 1 + (u8 *)event) != 0xff) in do_test()
323 * test__sample_parsing - test sample parsing.
328 * returned, otherwise %-1 is returned.
344 …pr_debug("sample format has changed, some new PERF_SAMPLE_ bit was introduced - test needs updatin… in test__sample_parsing()
345 return -1; in test__sample_parsing()
374 sample_type = PERF_SAMPLE_MAX - 1; in test__sample_parsing()