Received: by 10.192.165.156 with SMTP id m28csp863322imm; Tue, 17 Apr 2018 22:54:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sY6junR7xaLpV3Zt9hwVbw6i4ZjDANufpSiNo14lV7UdYOR8TpuL3v+ncwtDGCLSbeVpa X-Received: by 2002:a17:902:3e5:: with SMTP id d92-v6mr841578pld.104.1524030888845; Tue, 17 Apr 2018 22:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524030888; cv=none; d=google.com; s=arc-20160816; b=FPFiHRgahm3lfq81gCi/auVL1FwhjwjkO5yKlaonke+BHYR+MAR6IN6Hs7HqwlIHd2 ks2Jb32h7VcUPQTfvnSjX8iCo/sIML+0S1NjAPOkzAw6fVrLLFKfT21tJk5zoVqjPjl7 e7eVOsMQCCfZDQK0IcmumjAhoIRnNoEc73R/PTwVXo8YMjIIh13L7hsK0LKF+4zcjN3W 2hkn+3UhHBcWeodddlBA1NKGG24b7Rpaa/pYCg0BFt2B9Ccyz2NBfpTyIMdFtSPxJOkr 9eSLD3ADfjGtp3FS0socQCHny6gnrER9qa0zvkbnDB+AAEvMCTzg0g3i5ll2BI8zhjuH PuKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=uqDBd9TzqIRb6FH2gtLC348jsAFFzt+JS7SLtKE3enE=; b=HpLW3tkuuAZl8dmLfqkBDHsto5mklw4IowD54CvPyOMEo+RlylkFstpGkOspxwCg5y fu7KWqRtYvrexjP5SEMBPY4ihUpFfDBNwDTXCmSxODyxT0BPqJuJNKYYZ07t7zW3sBXa rGbBhcFLBsJDFk5Zg44pwRKZuwU0ubJSPu5Yoei8j7tAwTa5qu5zIGjKJnyfczewX12K L4BwhEOjMa6KW9Eh6xKWWWEx9YOObXcph6nJA9HZZr43AQJI6OAMpP2aeuohE202ncWQ hlyODnvoClJjA+N9Z5LbRkW8x4oN61NWQPcR6aGUK+istxAdyDcCdRMWJuyD9uA7OAj/ 7eyA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23-v6si556386plk.245.2018.04.17.22.54.34; Tue, 17 Apr 2018 22:54:48 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752649AbeDRFx3 (ORCPT + 99 others); Wed, 18 Apr 2018 01:53:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:50120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbeDRFx2 (ORCPT ); Wed, 18 Apr 2018 01:53:28 -0400 Received: from devbox (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E48A421727; Wed, 18 Apr 2018 05:53:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E48A421727 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org Date: Wed, 18 Apr 2018 14:53:22 +0900 From: Masami Hiramatsu To: Jiri Olsa Cc: Ravi Bangoria , Masami Hiramatsu , acme@redhat.com, kstewart@linuxfoundation.org, tglx@linutronix.de, pombredanne@nexb.com, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, namhyung@kernel.org, uneedsihyeon@gmail.com, kjlx@templeofstupid.com, ravi Bangoria Subject: Re: [PATCH 3/3] perf/buildid-cache: Support --purge-all option Message-Id: <20180418145322.74caf3b39ff7587ab7ae2234@kernel.org> In-Reply-To: <20180416103017.GB23274@krava> References: <20180409110633.20767-1-ravi.bangoria@linux.vnet.ibm.com> <20180409110633.20767-4-ravi.bangoria@linux.vnet.ibm.com> <20180416182735.4399e94b3c7e6d190ec7dc3e@kernel.org> <20180416103017.GB23274@krava> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Apr 2018 12:30:17 +0200 Jiri Olsa wrote: > On Mon, Apr 16, 2018 at 03:10:40PM +0530, Ravi Bangoria wrote: > > Hi Masami, > > > > On 04/16/2018 02:57 PM, Masami Hiramatsu wrote: > > > On Mon, 9 Apr 2018 16:36:33 +0530 > > > Ravi Bangoria wrote: > > > > > >> User can remove files from cache using --remove/--purge options > > >> but both needs list of files as an argument. It's not convenient > > >> when you want to flush out entire cache. Add an option to purge > > >> all files from cache. > > >> > > >> Ex, > > >> # perf buildid-cache -l > > >> /tmp/a.out (8a86ef73e44067bca52cc3f6cd3e5446c783391c) > > >> /tmp/a.out.1 (ebe71fdcf4b366518cc154d570a33cd461a51c36) > > >> # perf buildid-cache -P -v > > >> Removing /tmp/a.out (8a86ef73e44067bca52cc3f6cd3e5446c783391c): Ok > > >> Removing /tmp/a.out.1 (ebe71fdcf4b366518cc154d570a33cd461a51c36): Ok > > >> Purged all: Ok > > > Hmm, for purging all caches will be done by > > > > > > $ rm -rf ~/.debug > > > > > > Are there any difference? > > > > No logical difference if you know it's ~/.debug where it goes. :) > > I also used to do rm -rf earlier. > > > > This option is for a perf users. But I'm fine if it's not really needed. > > Will drop it. > > I'd keep it.. as you said it could be configured at some other dir Sounds reasonable. :) Thanks, > > jirka -- Masami Hiramatsu