Message ID | 20180725180001.15108-5-acme@kernel.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1106358ljj; Wed, 25 Jul 2018 11:00:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpctQisU+TIclZalYWiuPQAxNrvZg02gXPj/bd1mDDZN/o0Dk0KsFHLoU8z1KuUcFaPr6wzE X-Received: by 2002:a62:89d8:: with SMTP id n85-v6mr11677184pfk.83.1532541650380; Wed, 25 Jul 2018 11:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532541650; cv=none; d=google.com; s=arc-20160816; b=cZpcBH59+GZgMnsKQTUuBw+QyVQ2jhRVRBHXdHmy7hjW+XU/hvy5O9XWNI8j103Y5B MUZXmQFtiPiuejGmpgKEn8QLtB6gbRUrqzz927A+SVoLNEZTZoWsr2CQqxq8OHe+5F42 sWqso1MhlEWOnxoTNyfh9HPIPY6wr/KoDkbBCEFALVgggiNxeBuC7xqMN7tKPRXCS7tw XPvoNfSYehDRgxUrMcCK/cVvO3BtqoSkvpN2tahkdaFNhJo3lb6UcwgD2x8s/lP1VRpT FBdL13CGlPpcCM/F+1+SWlydBG1xaMJhiYd7ketmDKNixZSjUgopR+EQv9RPEgNZWUCK kF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=fYz1fTlfGSUA7AKyPV7XjGxLxhv9SzKvBZGPLPfAI/I=; b=MxAAdu8Q2+0uLtYqwoC5VcpFDuJ1RChh97V66P/hhM5sJwdiof5B3vWoo3w6e5h+wn sXd0O0rAOPYItsF/Vqtyc1L2uuxBKpPYdsfNnv6b5Wm2hP9KnLa84ovsTRICSh0MaIRC zg5TQ0xPUgtiVjWHbY10jE2b7DmySt37QIcvRnyE0+8NiQ2UkkdNoOHhhd3eviqL0+Li azYMfiMlRFUr2bJba4oxE6v6SuoGYudxzQUjyqXlEWVxsu861f2wySLJmxGMzVd/y1LB w3GJ80HaQnB+n6gQJxR1VtGl0iDSFWIgbAjeI9zhVGfm2yp2EzynxYMmtf4itwg2BjdU Focg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ov1zL8Z4; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s65-v6si13634147pgb.486.2018.07.25.11.00.50; Wed, 25 Jul 2018 11:00:50 -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=Ov1zL8Z4; 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 S1730939AbeGYTNd (ORCPT <rfc822; heyi.guo@linaro.org> + 31 others); Wed, 25 Jul 2018 15:13:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:42616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729885AbeGYTNc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jul 2018 15:13:32 -0400 Received: from jouet.infradead.org (189-94-96-116.3g.claro.net.br [189.94.96.116]) (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 EC06C20833; Wed, 25 Jul 2018 18:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532541647; bh=ppmIxlNOnW1PVQKGK3DbtHWZMJUw0wXV/Jl4Rr/6cfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ov1zL8Z41hEJDCixcQMTM3hvsr4Smpc6OKD/jc1HjGLbmv8dIL7AFUfO+2PDYKSKM 3Zbc2ZxnCU1so1EIgAfkXZKRx2fhL+Z02kXJy0bemdKVw5JbvWtOwlId/Nuzy2jiPA hemGTJ6Fkx9jIW2GjLoXNvt4mQ1W+KCi0QsSg/tw= From: Arnaldo Carvalho de Melo <acme@kernel.org> To: Ingo Molnar <mingo@kernel.org> Cc: Clark Williams <williams@redhat.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan <leo.yan@linaro.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Kim Phillips <kim.phillips@arm.com>, Mike Leach <mike.leach@linaro.org>, Namhyung Kim <namhyung@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Robert Walker <robert.walker@arm.com>, linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo <acme@redhat.com> Subject: [PATCH 04/27] perf cs-etm: Bail out immediately for instruction sample failure Date: Wed, 25 Jul 2018 14:59:38 -0300 Message-Id: <20180725180001.15108-5-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180725180001.15108-1-acme@kernel.org> References: <20180725180001.15108-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index 822ba915d144..8b2c099e750a 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -939,6 +939,9 @@ static int cs_etm__flush(struct cs_etm_queue *etmq) err = cs_etm__synth_instruction_sample( etmq, addr, etmq->period_instructions); + if (err) + return err; + etmq->period_instructions = 0; /*