From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rf040502hzDqnK for ; Tue, 28 Jun 2016 18:54:40 +1000 (AEST) Date: Tue, 28 Jun 2016 10:54:34 +0200 From: Jiri Olsa To: Madhavan Srinivasan Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Yury Norov , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Wang Nan , Michael Ellerman Subject: Re: [PATCH v5] tools/perf: Fix the mask in regs_dump__printf and print_sample_iregs Message-ID: <20160628085434.GA28550@krava> References: <1466660967-2016-1-git-send-email-maddy@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1466660967-2016-1-git-send-email-maddy@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Jun 23, 2016 at 11:19:27AM +0530, Madhavan Srinivasan wrote: SNIP > > Changelog v1: > 1)updated commit message and patch subject > 2)Add the fix to print_sample_iregs() in builtin-script.c > > tools/include/linux/bitmap.h | 2 ++ > tools/lib/bitmap.c | 18 ++++++++++++++++++ > tools/perf/builtin-script.c | 4 +++- > tools/perf/util/session.c | 4 +++- > 4 files changed, 26 insertions(+), 2 deletions(-) > > diff --git a/tools/include/linux/bitmap.h b/tools/include/linux/bitmap.h > index 28f5493da491..5e98525387dc 100644 > --- a/tools/include/linux/bitmap.h > +++ b/tools/include/linux/bitmap.h > @@ -2,6 +2,7 @@ > #define _PERF_BITOPS_H > > #include > +#include this could go in the bitmap.c file, but anyway: Acked-by: Jiri Olsa thanks, jirka > #include > > #define DECLARE_BITMAP(name,bits) \ > @@ -10,6 +11,7 @@ > int __bitmap_weight(const unsigned long *bitmap, int bits); > void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1, > const unsigned long *bitmap2, int bits); > +void bitmap_from_u64(unsigned long *dst, u64 mask); > > #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1))) > SNIP