Received: by 10.192.165.148 with SMTP id m20csp4456859imm; Tue, 8 May 2018 08:44:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQHBLbQrVFZc+pqYrtuws0mi/kew2i/Ah0mAQWVg4N2wPO07Phhjo6+P2ig0dfpmc776UY X-Received: by 2002:a63:7058:: with SMTP id a24-v6mr34040838pgn.101.1525794281426; Tue, 08 May 2018 08:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525794281; cv=none; d=google.com; s=arc-20160816; b=RzRy9nmvVfEPHxG2Fb3b37I+NRojZ//rlVYr2zlRe6Cb8JdM1a/7pwdIkH11D1O4Uf iQZYDkcZQfGmRX13V45do5b0YabykBbUtG5XrKr25m2skZVoczWiHKrTdqydocLRknx+ hhfrhSEhsvUb1X1PVWivgn8jGcN8KAt0p9NIqnNLA/mlo6aWt8CQL4COO2D4Jufgar5C TbGMog+d9FO2ZZHDx7/zwfO6pdJ4I82AguVJm8cPWiRaF9dgNVxEXM3i9A5QsQAx+5T3 LAwnVydPe4v8kvUg3R6jLYGLTWd807DucqQ4L98xEWzwl31uowuaJNKMG8HT4JuINVQa quFg== 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 :dkim-signature:arc-authentication-results; bh=lU42wR9BpEpjt97GZuUtA9YrCxH8ZwHe5V49kgL7oek=; b=nXsaf8Hkp4RUofbhZpObeV2r9+WjpUvlPsewLqLR/gNIGI4LAdO77WUH0sqS8hcGYd oqiF+Ei/gT9JYy/y3bT0pD/WH5b2gIvhvp8QNc9DQH058ZuxCynqBJa9/Hb401/kn3Hg oWIsHZuED8IuNcYmLepT0NrVgHsTayNnevzquPmGsn5CJo+qOZvCNoOEFtf/jD+HSUm0 O5koHo0B+/5O40efXDD0MhJl7LYrL87gN5LQleckiKKXjfF0DycGaoGR8W/0pIS7r+4k lWg1u6mH1hNfqGS1yapiZJPt6RK1ZrDcebuBwuSFEy1F5gb+wnBNqZCqPQihcwIYv/Z4 cf/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KS+JZSV5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16-v6si24380575plk.79.2018.05.08.08.44.25; Tue, 08 May 2018 08:44:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KS+JZSV5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755113AbeEHPnD (ORCPT + 99 others); Tue, 8 May 2018 11:43:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:60168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754986AbeEHPnB (ORCPT ); Tue, 8 May 2018 11:43:01 -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 5F551217B4; Tue, 8 May 2018 15:42:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525794181; bh=nRzxbS9z8EKE3IzPCI5SYN3c694ccLDqUifAorlpN1Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KS+JZSV5Pe0hbL/DQTkG1DHfKB/SyYvJQqIGnbraBfOfFIsgiMYwe+q6cyUiKhqbw DrkLdpCZkUfom6DZVLziNZfsS6lX4/Q/dSnwdclbrrA3cJ4/V4eGbBfj/5+2V1nDuL ozd1Zc/NwL3b02rWUSxgtJRHLhvucGW4ugB+cfnw= Date: Wed, 9 May 2018 00:42:57 +0900 From: Masami Hiramatsu To: Ravi Bangoria 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 Subject: Re: [PATCH v2 3/3] perf/buildid-cache: Support --purge-all option Message-Id: <20180509004257.9ad74de57b9e0f90ad5e7e81@kernel.org> In-Reply-To: References: <20180417041346.5617-1-ravi.bangoria@linux.vnet.ibm.com> <20180417041346.5617-4-ravi.bangoria@linux.vnet.ibm.com> <20180423160219.b58fdc600e5d6927105ba57b@kernel.org> 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 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. 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, -- Masami Hiramatsu