From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752488AbcF1Iym (ORCPT ); Tue, 28 Jun 2016 04:54:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60569 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422AbcF1Iyj (ORCPT ); Tue, 28 Jun 2016 04:54:39 -0400 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 Content-Disposition: inline In-Reply-To: <1466660967-2016-1-git-send-email-maddy@linux.vnet.ibm.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 28 Jun 2016 08:54:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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