Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5062520ima; Tue, 5 Feb 2019 05:54:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IbrjznR351/QmY2UCPD8G7AyoFdxW9US3YwiZvRecmZAOnthspe74yLWvSi3BDtaUi2KMf/ X-Received: by 2002:a62:4641:: with SMTP id t62mr5087057pfa.141.1549374875317; Tue, 05 Feb 2019 05:54:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549374875; cv=none; d=google.com; s=arc-20160816; b=vuYU0dMvShL9KErhnujG0IQGNQ8k9FXARodc+qxQRCVioLAwm/kyi+RABIMffFSRq0 NeztTF7VR/jf/lEii+AomN7NUrH8AaVZCCcvPBwOOVgYl7foFN3ksklg11tm2Vgc5D4P jzIBZB0OzSqtqEUCejFU9IgAi+MOgey6gHS4vg0P/fYABurM3d5f3zBmcvuZX8ek1Tcy xV7mckJvV5fskTSpgGE7tuIpNVyR+Jqc3ChHNowgVdw+d4U6K5PCqh6YVV+lIorYIUJG +Q6MhpL+9Hh5UzfZTBam0fRKP0+ySpz86CAIBRASk8W7AiO8Ehc2BTw1gahr4TsBS4jG T2PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JrcRCSUFli3K0UPJw59xFjVKVNepbw7CiDxki89QDPE=; b=eIvlpFuG3JvulMQPX7txtBQ65JMdEpKMs+Pscy65879BtGDziutWfBQBbc+sthix4Z 3w8lyq5Za/kuAnxHfbrEwTIeK7Gj1isCtoqj1Nzp/OAGy3mBjZxyn8EtfafNAGjUDE5M oi3FD2rtfGoSLVRk22Sq2roHlgEwebdcCRGvB/Jz+YDiasYt5MaA3RW9Y4PoZLKjHEyf 06JAO7kRwyGW8jpA0WSQbr3waoRFvBQEdC5NpKMbNS5EfN3LQi1rv4tJFoj27u/IRF59 KUa2gAEPBeH12DNZQaxXpQQC+goHfqTT3RIEaG+V7GkWZjaIOMD69q/jbZoSrAZSOsqG wI5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 82si3068601pga.270.2019.02.05.05.54.19; Tue, 05 Feb 2019 05:54:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727537AbfBENxt (ORCPT + 99 others); Tue, 5 Feb 2019 08:53:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40124 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbfBENxt (ORCPT ); Tue, 5 Feb 2019 08:53:49 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0268E1393B; Tue, 5 Feb 2019 13:53:49 +0000 (UTC) Received: from krava (unknown [10.43.17.224]) by smtp.corp.redhat.com (Postfix) with SMTP id D19F56B461; Tue, 5 Feb 2019 13:53:46 +0000 (UTC) Date: Tue, 5 Feb 2019 14:53:46 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Adrian Hunter , Andi Kleen , Stephane Eranian , Alexey Budankov Subject: Re: [PATCH 06/14] perf data: Add perf_data__(create_dir|free_dir) functions Message-ID: <20190205135346.GJ4794@krava> References: <20190203153018.9650-1-jolsa@kernel.org> <20190203153018.9650-7-jolsa@kernel.org> <20190205134607.GA10613@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205134607.GA10613@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 05 Feb 2019 13:53:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 05, 2019 at 10:46:07AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Feb 03, 2019 at 04:30:10PM +0100, Jiri Olsa escreveu: > > Adding perf_data__create_dir to create nr files inside > > struct perf_data path directory: > > int perf_data__create_dir(struct perf_data *data, int nr); > > > > and function to free that data: > > void perf_data__free_dir(struct perf_data *data); > > Can you please rename this to perf_data__remove_dir(), I think it is > more appropriate, just like that rm_rf() thing. ok, I will check on the rollback in the new version jirka