Message ID | 20190611185911.11645-40-acme@kernel.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2722083ilk; Tue, 11 Jun 2019 12:02:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5vkGGfYrjqoweoZZ/jgvjxiGQ+Tm5z983kwIbBA5oCUcrMxKLfoS4XdzPIT203BBOSkMT X-Received: by 2002:a65:64d6:: with SMTP id t22mr18421236pgv.406.1560279740953; Tue, 11 Jun 2019 12:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560279740; cv=none; d=google.com; s=arc-20160816; b=VdeHgFJCRbqgVOWZ1V098a/omWRyhYN5PxDGX6sTBhShWg66Oa+ktbe0IK7pd0T9bN M7LQnUEeJGvB5cNyfstodYUn9+Or7Z1YT+SoJU0T+5jrmP4KOKGrepjBei9jdTK5mQ6O iGN/c12pVRp2OsSVr6GC/+/v/3HzkpX0Zxhw9tZNZXtNeMtVMwdxFifRBSy6k2RMYTRh LcbIKvCzDEXUOvCdkXpdjdgOKPSUBFxAGx9s2cmirxV7CRgN5qtWev05XOqradSR/bdG kaCTVpPz4v/ocGPh2vlVzOdt/B4FpcetBVlL5hU5RXcqTDAaTJcmRwm0RFzer3YtT6VW 5Qdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JcxJBm5d10SsbFt8uB8yrzUNVVL/xN9rAFHl3BtDhk8=; b=hyajHxN2iaXTwjgvDZUo2Nizz2AfORURx1ZGwOEMLkao2qASoLJcaDl86loqhNfFpA WbzzScEYSqWyk1SGIsdCgWiVM5K13qCtElZwMgK5MBmNztzd0zEmWrmgERyzjgmaJTht uS4Nf5ace6Dwe+LZIbXLu7UaD3UWvaX3aEaCpEy8tfE+XeFM08lJ8taEcCZBEJgOj9Rb 20f7jgbq09wD0brp6On1/TYBTmpxkO1WlvoToOInq5TsmLU9qYcl3Bhe+F4/X8rYa7Dz RcooMRWb8SDl9bcVevGxndvFQNDwf40mQUmwaUQ0p/8HyeGiSExH6OvSoDdfGfL3s+b9 d04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u+9MkASY; 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 f16si13440653plr.340.2019.06.11.12.02.20; Tue, 11 Jun 2019 12:02:20 -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=u+9MkASY; 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 S2392373AbfFKTCU (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Tue, 11 Jun 2019 15:02:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:38464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391736AbfFKTCS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Jun 2019 15:02:18 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.35.11]) (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 68F0C2184E; Tue, 11 Jun 2019 19:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560279738; bh=Qhd6bVtVoT9QbbazKZOFnIspsu4pUvCgE79I8j9p3yo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u+9MkASYJuO+Q1mu5YtJloZrYVKLk3PIdu6DTxlxGtyMxpR6G8rEzop1fsRizLzhw uwfbiBgHHxA+ED4GlZeBdsAT/uPfzMIwhqBlc3EqjAmVQzjM501rK+esRa+m5tfvCL LAQ2NPmxUQodA6uEOzIUAX/nbtYLpTWXGkyKqSNc= From: Arnaldo Carvalho de Melo <acme@kernel.org> To: Ingo Molnar <mingo@kernel.org>, Thomas Gleixner <tglx@linutronix.de> Cc: Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Clark Williams <williams@redhat.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Mathieu Poirier <mathieu.poirier@linaro.org>, Leo Yan <leo.yan@linaro.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Suzuki Poulouse <suzuki.poulose@arm.com>, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo <acme@redhat.com> Subject: [PATCH 39/85] perf cs-etm: Configure SWITCH_EVENTS in CPU-wide mode Date: Tue, 11 Jun 2019 15:58:25 -0300 Message-Id: <20190611185911.11645-40-acme@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190611185911.11645-1-acme@kernel.org> References: <20190611185911.11645-1-acme@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c index be1e4f20affa..cc7f1cd23b14 100644 --- a/tools/perf/arch/arm/util/cs-etm.c +++ b/tools/perf/arch/arm/util/cs-etm.c @@ -257,6 +257,9 @@ static int cs_etm_recording_options(struct auxtrace_record *itr, ptr->evlist = evlist; ptr->snapshot_mode = opts->auxtrace_snapshot_mode; + if (perf_can_record_switch_events()) + opts->record_switch_events = true; + evlist__for_each_entry(evlist, evsel) { if (evsel->attr.type == cs_etm_pmu->type) { if (cs_etm_evsel) {