From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933601AbbFJUCK (ORCPT ); Wed, 10 Jun 2015 16:02:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50115 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754311AbbFJUCA (ORCPT ); Wed, 10 Jun 2015 16:02:00 -0400 Date: Wed, 10 Jun 2015 22:01:38 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Adrian Hunter , Andi Kleen , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Stephane Eranian Subject: Re: [PATCH 02/25] perf tools: Introduce xyarray__zero function Message-ID: <20150610200138.GB32245@krava.redhat.com> References: <1433959858-31858-1-git-send-email-jolsa@kernel.org> <1433959858-31858-3-git-send-email-jolsa@kernel.org> <20150610190600.GD3332@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150610190600.GD3332@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2015 at 04:06:00PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Jun 10, 2015 at 08:10:35PM +0200, Jiri Olsa escreveu: > > To zero all the xyarray contents. It will be used > > in following patches. > > I guess I would prefer xyarray__memset(), similar semantics as > 'memset()', but I did a quick look and this is used in the kernel in > things like bitmap_zero() and wrappers to it have that semantic... > > Interesting that we don't have anymore a bzero() like function, but > then, looking at 'man bzero': > > ---------------------------- > CONFORMING TO > > 4.3BSD. This function is deprecated (marked as LEGACY in > POSIX.1-2001): use memset(3) in new programs. POSIX.1-2008 removes the > specification of bzero(). > > ----------------------------- > > Guess we should use 'xyarray__memset()', ok? hum, how about xyarray__reset ? jirka