From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752837AbdDLFqL (ORCPT ); Wed, 12 Apr 2017 01:46:11 -0400 Received: from terminus.zytor.com ([65.50.211.136]:41037 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbdDLFqJ (ORCPT ); Wed, 12 Apr 2017 01:46:09 -0400 Date: Tue, 11 Apr 2017 22:41:33 -0700 From: tip-bot for David Carrillo-Cisneros Message-ID: Cc: alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org, peterz@infradead.org, acme@redhat.com, mingo@kernel.org, pjt@google.com, jolsa@kernel.org, ak@linux.intel.com, mhiramat@kernel.org, eranian@google.com, tglx@linutronix.de, hekuang@huawei.com, hpa@zytor.com, sque@chromium.org, wangnan0@huawei.com, davidcc@google.com Reply-To: acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, alexander.shishkin@linux.intel.com, pjt@google.com, jolsa@kernel.org, mhiramat@kernel.org, ak@linux.intel.com, hekuang@huawei.com, tglx@linutronix.de, eranian@google.com, sque@chromium.org, hpa@zytor.com, wangnan0@huawei.com, davidcc@google.com In-Reply-To: <20170410201432.24807-8-davidcc@google.com> References: <20170410201432.24807-8-davidcc@google.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Do not print missing features in pipe-mode Git-Commit-ID: c9d1c93421e3b3c7051b193c9cf648a3bc55cb3e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c9d1c93421e3b3c7051b193c9cf648a3bc55cb3e Gitweb: http://git.kernel.org/tip/c9d1c93421e3b3c7051b193c9cf648a3bc55cb3e Author: David Carrillo-Cisneros AuthorDate: Mon, 10 Apr 2017 13:14:32 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 11 Apr 2017 16:22:22 -0300 perf tools: Do not print missing features in pipe-mode Pipe-mode has no perf.data header, hence no upfront knowledge of presend and missing features, hence, do not print missing features in pipe-mode. Signed-off-by: David Carrillo-Cisneros Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: He Kuang Cc: Masami Hiramatsu Cc: Paul Turner Cc: Peter Zijlstra Cc: Simon Que Cc: Stephane Eranian Cc: Wang Nan Link: http://lkml.kernel.org/r/20170410201432.24807-8-davidcc@google.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/header.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index ef09f26..2ccc7f0 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -2270,6 +2270,9 @@ int perf_header__fprintf_info(struct perf_session *session, FILE *fp, bool full) perf_header__process_sections(header, fd, &hd, perf_file_section__fprintf_info); + if (session->file->is_pipe) + return 0; + fprintf(fp, "# missing features: "); for_each_clear_bit(bit, header->adds_features, HEADER_LAST_FEATURE) { if (bit)