Message ID | 1531295145-596-3-git-send-email-leo.yan@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7D6E06028E for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 11 Jul 2018 07:47:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F9A42807B for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 11 Jul 2018 07:47:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 640E528249; Wed, 11 Jul 2018 07:47:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1EE3E2807B for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 11 Jul 2018 07:47:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=97xt5TSWkiAhyovX4dFWpMhMWpkr33GhIyh8P9eZtfk=; b=tgDGNTQLzYmEqt7wVlT03eNsFf uDAYuM8R/RIH9+QD9E+DQmU0QdCXjei+yYdYzDiHZOamQWa/POh8tvyOokR+mWzecM4wUMoYbwSHH gs1d7tjz1K7Ka1DEz5KqkkOcu/CBPztlXeSbNFimMRgVyQQxuFDFl7IoKuwQf7j3BS/ffml96hHX9 COyxyx3s6fUWYHoZppEut4uz81VhkxCc3zxkusdxkRCT3/IulrkIyciirtUi91HaJItiPUNqgbWpr rPgvLtBtdMgejKMtJNgzNeByffsmU7gKaGXwV+7++nPYMKLk9ZVh/MYDC910en9OReHSwudUxQqhS 0z8Px9bQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fd9q3-0001Nb-Jh; Wed, 11 Jul 2018 07:47:03 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fd9pd-0000dx-RE for linux-arm-kernel@lists.infradead.org; Wed, 11 Jul 2018 07:46:41 +0000 Received: by mail-pl0-x242.google.com with SMTP id 6-v6so8806037plb.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 11 Jul 2018 00:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IOhFeWQKL4l7VSWl48ZwW81Bvvd5Dpc7t8AlhIsqGMU=; b=Z7TFSBa7IXjcR6kZ9BJHPpvk89owgHTZ7JwGbCDUIrxfX77sGORypSLBnIYmoYIpE0 t07RnIVXO5mN1+F9pKBGybuhcj9fl/unOUfIzXyd8B21fAC1aRa1OrDUhdnGS1BitiYk DYw75b7Zp/f7QnOcepf9OuezSu47L6A47tols= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IOhFeWQKL4l7VSWl48ZwW81Bvvd5Dpc7t8AlhIsqGMU=; b=C7IXh59vnwPzvuqN2pjrAavE/TjwoI9c9Asuv9jsqVNCo+JZZdniZUeOJOHzxYODC0 8DQLZmU9Q4E/0h/bY6+nOBHmQTO03BSx6dIMM0jBwGQZ7o5dsNZsuthgP7SnxHEvThE/ LdDsIEAqboWs6AizwWfbxszSP3mRIUVBzvWl0dDynjjDuSgvTRBCou7N7N116nGUXSNf tuQ7uF5s3ZZ5vYuk9PeCiQuNy9D0i2H3qk7bxUWF9SA/JmieF1MZn7gUYWs4JAqv6QtY BeSOzHBxhxWR0tJLsDDBJlWR9KIc/lkUxx9jTNOiImLseSU1cPtp/PvPLfX6Rbcbdewz GCeg== X-Gm-Message-State: APt69E0XCkqqEbYsylwaWkLwG+cZstRcWST3DypfYWwv58in63n6QcLh lKRlZUhP1YUGphpQXLgD+izXng== X-Google-Smtp-Source: AAOMgpex2mE7JdK7APRi3dtc4ZSbSrWLDl1ptTmP9QODnf4kvw+7b7gZLJpgGmYRaoFw72n5kJ2O1A== X-Received: by 2002:a17:902:7044:: with SMTP id h4-v6mr22421314plt.179.1531295187415; Wed, 11 Jul 2018 00:46:27 -0700 (PDT) Received: from localhost.localdomain (li1192-169.members.linode.com. [45.79.93.169]) by smtp.gmail.com with ESMTPSA id 16-v6sm9260374pfp.6.2018.07.11.00.46.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jul 2018 00:46:26 -0700 (PDT) From: Leo Yan <leo.yan@linaro.org> To: Arnaldo Carvalho de Melo <acme@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mike Leach <mike.leach@linaro.org>, Robert Walker <robert.walker@arm.com>, Kim Phillips <kim.phillips@arm.com> Subject: [PATCH v2 2/6] perf cs-etm: Bail out immediately for instruction sample failure Date: Wed, 11 Jul 2018 15:45:41 +0800 Message-Id: <1531295145-596-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531295145-596-1-git-send-email-leo.yan@linaro.org> References: <1531295145-596-1-git-send-email-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180711_004638_046060_E20C2D15 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Leo Yan <leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index 822ba91..8b2c099 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; /*