Received: by 10.192.165.148 with SMTP id m20csp1618428imm; Wed, 25 Apr 2018 22:57:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/8h5mf7BlD46Vedigj1k/r4X1AHBwUZlxoLkW6uzMlZPz31Vn3RBE+aQl5lT3S2Dowdf93 X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr31771237plf.288.1524722257763; Wed, 25 Apr 2018 22:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524722257; cv=none; d=google.com; s=arc-20160816; b=auKkE9jmnuH0jHTs7iDbmp2p5lU4gG0OGq/8+9DquKxBQBXfHpv6t8JZQ/tm7iE0QJ hwJmK7OHteqPvl/sGVouivRBhoG+7lsXUdPChe3BojAab9mZS1HK1mpUWFPyWP+ZD5lR mbSqdVWUIolTcIjodmxcGAmE43ZhTXwrHrLv33sbxJNoZBGWBf/uhe+AWhh0mj+ce5dz 2+XMLuUrGxxTg/qrNt2gFSYynS+38VbTo2ThfiJAb136F5+gqcfk6WH7mawFoOgs+5xM iSQ1ZCzJJoYsxmgKjnRo2ZtAjRJOjwNujVloBGtiBtxqDpNZLFrsAeUpvIieD5ilVtX5 LxMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=1YvZwrVpSy4lWj0+hItheA7NhKHF88n9ZYk4uf4plAg=; b=OdxteIUK3L1ClzzalFDW2ZrCVc6xxp4mAn82RQoNvhZSy8U4gQLMuuIFGnSXZuFmFZ PbrLUaf+8mScYKgPBt5M8z6fdmjvdFA6ttOnNDKKmWc6Ue1+3v9aAs4CKwi7LaDphqhn en6p7Vg/3nuEUipLa8tzzTiz8dDnk+hyiD8uxEI9q2/sfjaZYDf8+BitQSUO/DmNuYTF Zwkg2JupZOmjeYkK2kekvRstaFn5Aa/cB2k+YXwOTjq81L9hZexKSinRhEWFtxdye2Gr cXzbGD7TRxMQIFM2MsDGVlxGJCuJddToYRo81t2Ulf5fMJsYIu9oLefEyn3As3AIJ5wT UIrQ== 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 s8-v6si19258778plk.550.2018.04.25.22.57.23; Wed, 25 Apr 2018 22:57:37 -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 S1753499AbeDZFz4 (ORCPT + 99 others); Thu, 26 Apr 2018 01:55:56 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34277 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbeDZFzv (ORCPT ); Thu, 26 Apr 2018 01:55:51 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w3Q5th351777503; Wed, 25 Apr 2018 22:55:43 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w3Q5thLB1777500; Wed, 25 Apr 2018 22:55:43 -0700 Date: Wed, 25 Apr 2018 22:55:43 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thomas Richter Message-ID: Cc: brueckner@linux.vnet.ibm.com, tmricht@linux.ibm.com, linux-kernel@vger.kernel.org, schwidefsky@de.ibm.com, tglx@linutronix.de, heiko.carstens@de.ibm.com, mingo@kernel.org, hpa@zytor.com, acme@redhat.com Reply-To: mingo@kernel.org, hpa@zytor.com, acme@redhat.com, tglx@linutronix.de, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, tmricht@linux.ibm.com, linux-kernel@vger.kernel.org, brueckner@linux.vnet.ibm.com In-Reply-To: <20180423142940.21143-1-tmricht@linux.ibm.com> References: <20180423142940.21143-1-tmricht@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf record: Fix s390 undefined record__auxtrace_init() return value Git-Commit-ID: 5d9946c3e5e38e07ab7019db9413a96807a325f2 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 5d9946c3e5e38e07ab7019db9413a96807a325f2 Gitweb: https://git.kernel.org/tip/5d9946c3e5e38e07ab7019db9413a96807a325f2 Author: Thomas Richter AuthorDate: Mon, 23 Apr 2018 16:29:40 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 23 Apr 2018 12:05:02 -0300 perf record: Fix s390 undefined record__auxtrace_init() return value Command 'perf record' calls: cmd_report() record__auxtrace_init() auxtrace_record__init() On s390 function auxtrace_record__init() returns random return value due to missing initialization. This sometime causes 'perf record' to exit immediately without error message and creating a perf.data file. Fix this by setting error the return code to zero before returning from platform specific functions which may not set the error code in call cases. Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Hendrik Brueckner Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180423142940.21143-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/s390/util/auxtrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/arch/s390/util/auxtrace.c b/tools/perf/arch/s390/util/auxtrace.c index 6cb48e4cffd9..3afe8256eff2 100644 --- a/tools/perf/arch/s390/util/auxtrace.c +++ b/tools/perf/arch/s390/util/auxtrace.c @@ -87,6 +87,7 @@ struct auxtrace_record *auxtrace_record__init(struct perf_evlist *evlist, struct perf_evsel *pos; int diagnose = 0; + *err = 0; if (evlist->nr_entries == 0) return NULL;