Message ID | 1544513908-16805-2-git-send-email-leo.yan@linaro.org |
---|---|
State | Accepted |
Commit | 43fd56669c28cd354e9228bdb58e4bca1c1a8b66 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp324644ljp; Mon, 10 Dec 2018 23:40:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/VmsdodnVlBhjFc67/MGtbzDV3VUc80Aa8ZuybpsELId60Ho7OHvFFJ2PJ5yjCzltI+MWRD X-Received: by 2002:a63:a51b:: with SMTP id n27mr13942989pgf.17.1544514034307; Mon, 10 Dec 2018 23:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544514034; cv=none; d=google.com; s=arc-20160816; b=HGK2VBu+ZVhGdLI6QJc4JNZBsRBEQHJZ/mAZBAWL7jUg3U8UO3VotpIaaAatWJgEDK a3+Vm7lWs8ohsyxkaoQpRvy4hdUxUmQg933gwGPTAJDjSEOHjOxqx9qqqKdoTndvRDNR SBnZj0S3yNhvgQlooRFSD+Ody+2NeaAtlb48QXyyetCSOpJpmphEOF9RDgRswVYgefXG km5cIQVumSuEdYMHET4n1esTCd/Txm1Y/E54Tc12xMwyz7kcxb7GoXGOUyUw6A9UY7oh QGzMb6gk9taTZ75O3uyVMrpJ5CKU7mw4Fpx2+XzRlhd/nzb9J3MGVsTzT/kdo9qgOoxl SZhg== 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; bh=DdJei3MXkGiE0iSB4u2n/6IcLLnmeX4skh5tiKXlEYc=; b=YG4GIBPR7mgM2tlQFiBx9FNGqYg1VrKblB+v+czPEZoiWIJ5bJYIf+OC5qq3JwF0/D AQOnKkHyN2QTeb6ZSm+4cYM39Xwx+HFbHJOHcK8XHyvi6lvUPQ36GKgwMM+7N4a3aOBJ oHREQZTEi2RrJ+uRelPoqWX8/kxn94uuPD5t+TYRcVdeD6PStMJpEAlvYpZ6PDAnbI3o FsVqZ3S/oWFuvx0A8Da/TTQ4N716e0kJ95Lh3oT/96Buqwe4FaHkul+NgC7uexi+a7rn kNvMv/6BOzz8p4sxcTf0olbYdWAZfiL02FA3aBjQ16WZmsvUY8w+71yv6eZh8ObGfduh /g9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pelw3oX0; 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=linaro.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 e136si13347052pfh.17.2018.12.10.23.40.34; Mon, 10 Dec 2018 23:40:34 -0800 (PST) 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=@linaro.org header.s=google header.b=Pelw3oX0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726226AbeLKHkc (ORCPT <rfc822;igor.opaniuk@linaro.org> + 31 others); Tue, 11 Dec 2018 02:40:32 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39291 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbeLKHka (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Dec 2018 02:40:30 -0500 Received: by mail-wr1-f68.google.com with SMTP id t27so12956178wra.6 for <linux-kernel@vger.kernel.org>; Mon, 10 Dec 2018 23:40:29 -0800 (PST) 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=DdJei3MXkGiE0iSB4u2n/6IcLLnmeX4skh5tiKXlEYc=; b=Pelw3oX02t5Wn+zKQ4m+N8Q2Dtp048djj7lyuhalY/P2THi7fEdeG+Bdnq1t9DWCFK fqtZNs8ALDy2Mz2QZiMlVxvS6eXVEY+0sXKLexHhklfSFc8m8IGnjV8dgEgFf4Y9KJS8 mN58fXhibOuSqg/6lEofkfd1OuiHWd5HpeJaA= 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=DdJei3MXkGiE0iSB4u2n/6IcLLnmeX4skh5tiKXlEYc=; b=ZS9bmYD7ThZJc/0r4B2UKrzprMGX2atbNs5mAYoZQ1IzyK7Xj2Rpujatpf6QN0d0zL Zj+86z8A7j4y7PSm6Vz9jx57xHwIprE+MVsMG/nvpvcQrv5+uOQZGeB/vN08MqBNBLzR Rwcc/yvba07Alda3Z3KfXCfCb1SDR+pcNoGx/owYZkjZBSumuItbpfReM0TdwMmK0thq w5EiNioyUsQvq9PeRxyeFuyLRHOLcscZ1yeaJdnykad96dAqjzUKwv+o3u3VW6w5pL2C xL/pKZo4g3oYOjwu6GAWsspg0lB0KKEww60W0Jhx/1sF/HHoopttZzjVCd04tx3OspXz XC9g== X-Gm-Message-State: AA+aEWakqiNlPKu+Bg5qx+yssCc48duOPI4UAvTK07etmzcY+LCVDulc bh4Vpjznvhi+nGDm2Wck3plJ7g== X-Received: by 2002:adf:efd1:: with SMTP id i17mr12066007wrp.200.1544514028756; Mon, 10 Dec 2018 23:40:28 -0800 (PST) Received: from localhost.localdomain ([209.250.228.18]) by smtp.gmail.com with ESMTPSA id k7sm14186961wrl.51.2018.12.10.23.40.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Dec 2018 23:40:27 -0800 (PST) From: Leo Yan <leo.yan@linaro.org> To: Arnaldo Carvalho de Melo <acme@kernel.org>, Mathieu Poirier <mathieu.poirier@linaro.org>, 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, Coresight ML <coresight@lists.linaro.org> Cc: Leo Yan <leo.yan@linaro.org>, Mike Leach <mike.leach@linaro.org>, Robert Walker <robert.walker@arm.com> Subject: [PATCH v3 1/8] perf cs-etm: Correct packets swapping in cs_etm__flush() Date: Tue, 11 Dec 2018 15:38:21 +0800 Message-Id: <1544513908-16805-2-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544513908-16805-1-git-send-email-leo.yan@linaro.org> References: <1544513908-16805-1-git-send-email-leo.yan@linaro.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 |
perf cs-etm: Correct packets handling
|
expand
|
diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index 23159c33..789707b 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -1042,7 +1042,7 @@ static int cs_etm__flush(struct cs_etm_queue *etmq) } swap_packet: - if (etmq->etm->synth_opts.last_branch) { + if (etm->sample_branches || etm->synth_opts.last_branch) { /* * Swap PACKET with PREV_PACKET: PACKET becomes PREV_PACKET for * the next incoming packet.