Received: by 10.192.165.148 with SMTP id m20csp5127523imm; Tue, 8 May 2018 23:01:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpy0onvTFJcPQs0X3MqA/vRJY9dNf7fiDEOxmbDoh3mjYv441JiOwFDkQvPw1AQMK1P8irV X-Received: by 10.98.65.132 with SMTP id g4mr42936287pfd.51.1525845700906; Tue, 08 May 2018 23:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525845700; cv=none; d=google.com; s=arc-20160816; b=GXUY+8bG6rvCBAv+N442XE1n6XajthkP+Br0vKCgUBaWqU4FT3yNoW1CBKeTnaOg/a O32W07a3AxVN29TZCRfKIFFnu9GOSQK1L8WjYcjtf5UY0NWiagQO+F8NnA/8s0zhfi6N 8B44jpUCgy5MR++ws3tuYrvWXCmFV18AmFBNJ0vxAb0mKlReAKFcQNPsmJDC472TojFn WC2KEqJMTF/n9AkEuzvBC9899b+EAmFK7/DJGalawbt9Ksicu6jzS1SIVXS1pUTqxO2v 7K6ECsLuEvaAMf92Bity+FZe5mpk4ha/mi1FZ8mf1hjuAYS8LOEsP1FPKYEj48JTWMR8 TIoA== 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=efByZjrbzRCNRzkgLzb/Ro3+k3zQ7/Gy5jg8Q4uAixg=; b=ieeLd4AxlPQwtWt0by+Ht3t8llnANDmIp7v4rlX0xErvhZ/lg9tyYa8XU2wa01Bs7Z mdjWaVIePmEwNR+t8C1Pw/w1zOM0aXG4XgqQCSBGISaWWI7Gx7NhJMWYgCrbq47UCVam 70JHDRj8YLhdx5EtkFVub5ijftcBpLj3OCghjjlyG5FXTwdZV6/tsfLdj9i7Xxr6cvp5 BOgOxKe/LKcGcDaDsQ+pat0MoiqiclUqhlxeWsan/bGlCV9/1WH8Dv40RW055rWDMVob WVB5R2BtrpJplsnWuGOzqJCvatfrlML4HIWiOYfAYhJhUFtkjOY58njbsycAycykCCg8 JlHA== 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 o7-v6si678151pgr.88.2018.05.08.23.01.25; Tue, 08 May 2018 23:01:40 -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 S1755846AbeEIGA4 (ORCPT + 99 others); Wed, 9 May 2018 02:00:56 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33042 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751922AbeEIGAy (ORCPT ); Wed, 9 May 2018 02:00:54 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4960Osf073784 for ; Wed, 9 May 2018 02:00:54 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hutnusfr9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 09 May 2018 02:00:54 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 9 May 2018 07:00:51 +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; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 9 May 2018 07:00:48 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4960lCX35258428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 May 2018 06:00:47 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96E684C059; Wed, 9 May 2018 06:52:47 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 36E8B4C052; Wed, 9 May 2018 06:52:45 +0100 (BST) Received: from [9.124.31.20] (unknown [9.124.31.20]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 9 May 2018 06:52:45 +0100 (BST) Subject: Re: [PATCH v2 3/3] perf/buildid-cache: Support --purge-all option To: Masami Hiramatsu Cc: jolsa@redhat.com, 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 References: <20180417041346.5617-1-ravi.bangoria@linux.vnet.ibm.com> <20180417041346.5617-4-ravi.bangoria@linux.vnet.ibm.com> <20180423160219.b58fdc600e5d6927105ba57b@kernel.org> <20180509004257.9ad74de57b9e0f90ad5e7e81@kernel.org> From: Ravi Bangoria Date: Wed, 9 May 2018 11:30:43 +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: <20180509004257.9ad74de57b9e0f90ad5e7e81@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18050906-0020-0000-0000-0000041AA215 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050906-0021-0000-0000-000042AFDF8B Message-Id: <60b9c453-72a2-3fc7-71c7-e03eabd819ce@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-09_02:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805090060 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2018 09:12 PM, Masami Hiramatsu wrote: > On Thu, 3 May 2018 14:24:04 +0530 > Ravi Bangoria wrote: > >> Hi Masami, >> >> On 04/23/2018 12:32 PM, Masami Hiramatsu wrote: >>> On Tue, 17 Apr 2018 09:43:46 +0530 >>> Ravi Bangoria wrote: >>> >>>> + pr_debug("Purged all: %s\n", err ? "FAIL" : "Ok"); >>> Hmm, I think this should use pr_info(or pr_warning), at least for Failure case. >> Actually, I followed what is already there for other options. > Please see cmd_buildid_cache(), if we failed to purge one buildid-cache, > it is warned with pr_warning. Oh ok. I thought you are asking me to change pr_debug(). I'll quickly prepare and send a patch. Thanks, Ravi > > if (purge_name_list_str) { > list = strlist__new(purge_name_list_str, NULL); > if (list) { > strlist__for_each_entry(pos, list) > if (build_id_cache__purge_path(pos->s, nsi)) { > if (errno == ENOENT) { > pr_debug("%s wasn't in the cache\n", > pos->s); > continue; > } > pr_warning("Couldn't remove %s: %s\n", > pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); > } > > strlist__delete(list); > } > } > > Thank you, >