diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index d20f851796c5233c0ffa0d74890fa5ec68a64539..a4c78499c838b256d41386335d22ec8dd5500102 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -1037,7 +1037,7 @@ static int perf_sample__fprintf_brstackinsn(struct perf_sample *sample, insn++; } } - if (off != (unsigned)len) + if (off != end - start) printed += fprintf(fp, "\tmismatch of LBR data and executable\n"); }