Received: by 10.192.165.156 with SMTP id m28csp503943imm; Mon, 16 Apr 2018 04:13:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+yJR1FKCB0VxIHOguBs9mDQ+mVG8UBy9NP+FqOa58oDTHtjGwiKnVNV7uQwO5IuLB5MqF1 X-Received: by 10.99.61.15 with SMTP id k15mr12526378pga.361.1523877201089; Mon, 16 Apr 2018 04:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523877201; cv=none; d=google.com; s=arc-20160816; b=Ews4HFjj/AxZn5o/3VmuJ910krtdtStQ2xM4ZIwEfqOwGY93Awc+jcfE5Dcw4xKTsH M5AiUbwZbabXt5FmGVQSzgnPRGtwIFY2aToX9gB13fF2PfBgLrDdBTvPb8nFATLIn9q9 iePTMfQ3yorGiZT4pILE5Mhxyezma27xsEHlmjyRasVFA9i0t7NacNNIcH693AlpIT9i C8F5lXk3oKPuYBGofnQ5xOLKz9cNyF8Qgw6xpw2HxDhdnnGKGDZUjqdaNYQ0nz9n2CqU Cnob98pzQ1WVliKs2EJb6U7yh25cpX6nrdVi4TCvKkLt7svbcbHLcemt5qkOLf5BIKHh 4mSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=7Czus/S0uRTrEmNiA8dwjjZu7GcAmBBsy1pNvi8ZTcg=; b=0dnpJsVWYkNmezTUB74dgCHqDb38MRmwWX0HkxkoFk9JA6Ori9xp3TF/VphgDt8TSF SS349DDg0QzdAEPMkiUO5sPeSega+SipuaXmgD/j6WZ/H6NfHAnklsPJV1t83r895QnK XhqvBTfMrXHECGoCCKyjwiKcsrveAV0A4g83AVdDxIa+lGJXfs2kZ9PkJuiejk0ZsCF9 VviE/pWHvrDDtd856WHKg0ub0BUWst2GOIV7uQ8oM5TRwiwkGsNHZSsxzXlcMKD9tW+G jGdzoDp9S7nRfWwsFy0sK7DdudVteoavrDPMfIVImT+0oy/tICIf6kms4VHV+5s3UzA2 4D4Q== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f39-v6si2255609plb.162.2018.04.16.04.13.06; Mon, 16 Apr 2018 04:13:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754750AbeDPJky (ORCPT + 99 others); Mon, 16 Apr 2018 05:40:54 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37220 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754285AbeDPJkv (ORCPT ); Mon, 16 Apr 2018 05:40:51 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3G9ZigN108845 for ; Mon, 16 Apr 2018 05:40:50 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hcpcsr1v8-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 16 Apr 2018 05:40:50 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Apr 2018 10:40:48 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 16 Apr 2018 10:40:44 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3G9eiDg57016434; Mon, 16 Apr 2018 09:40:44 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6F30111C058; Mon, 16 Apr 2018 10:32:42 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3F58611C052; Mon, 16 Apr 2018 10:32:39 +0100 (BST) Received: from [9.109.219.140] (unknown [9.109.219.140]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 16 Apr 2018 10:32:39 +0100 (BST) Subject: Re: [PATCH 3/3] perf/buildid-cache: Support --purge-all option To: Masami Hiramatsu Cc: 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, jolsa@redhat.com, namhyung@kernel.org, uneedsihyeon@gmail.com, kjlx@templeofstupid.com, ravi Bangoria References: <20180409110633.20767-1-ravi.bangoria@linux.vnet.ibm.com> <20180409110633.20767-4-ravi.bangoria@linux.vnet.ibm.com> <20180416182735.4399e94b3c7e6d190ec7dc3e@kernel.org> From: Ravi Bangoria Date: Mon, 16 Apr 2018 15:10:40 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180416182735.4399e94b3c7e6d190ec7dc3e@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18041609-0020-0000-0000-00000412617B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041609-0021-0000-0000-000042A69AD9 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-16_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804160090 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Ravi