Message ID | 20200916191737.4001561-11-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=u8n1=CZ=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C06496CA for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 16 Sep 2020 19:21:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7AB1120770 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 16 Sep 2020 19:21:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GwVhLsko"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KZJOSshq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7AB1120770 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=y/Vq2AdEuHMerP0j2F2/G8kRv2WR9s5YhNrx7oHIGo8=; b=GwVhLskomzuX2IhaNmXELabLo UixePbXQ8roQCWPuZy8fKyO++Hq0+8s1lNe2viHrYbTxPXEPZ8kNGoiAqo5mH4PiHXzigoqwQK7dq rmciZYsLR77rEv8iMX5Nv7B+uphhwClWX0KN8AjtNMs2iYk6Ub1eNzDWjew9iOXdR/vUbyHK0H5j0 MSBU21ZQS+LbWFWUE7o22mo5JJUFimoRCpG8TWc9yvEM2gxA9OwlH4vX0EkE54zpZ7hRVaqIzyyxE YBIfuBrvjZ4x0Rlppkomz0Sfxh+Qq93V7MPES8AHPTS/ojLg99zu4/Qkq5uNAGAeFt5kdLXH1I/Oe PbOpUTeig==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIcxg-0005j7-9L; Wed, 16 Sep 2020 19:19:24 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIcwC-00058z-SJ for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 19:17:56 +0000 Received: by mail-pf1-x444.google.com with SMTP id k8so1200418pfk.2 for <linux-arm-kernel@lists.infradead.org>; Wed, 16 Sep 2020 12:17:52 -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 :mime-version:content-transfer-encoding; bh=4vmHBZCLmqwGh1JrNfyEzOHsM8+Nrv3dx8TspskyRXo=; b=KZJOSshqj5FFzQ7czSqunHffeDNfegzos7p7XFd0SdxE2EBbpS1IWYdpTpcJn0XxQ5 ClNb0/mXssumjBRQnZn0J9dLOQRFd/5F8t7zo2TpN+f1fYlb8lk1PbcNZwqOM5Ztk5Xx fed76TqxxRzzx6PmfQIoGWuypcKRpYh5cuyAX8gxwTEpXwDyFjLhNKrBtPyqqrqa3nOy 3BJ2goSv5DwQtrv5N0k2/XdNGuivWFd2ZLHJ+aOM4mQ5lP726zDZk+W6NQXilOrsLN0v OD+cOR75uc9azOko6WqLYItsoa/pjRaslja7dbL0jtAFuzGJv0MlFdOGsIsUWOmuOICf pwOg== 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:mime-version:content-transfer-encoding; bh=4vmHBZCLmqwGh1JrNfyEzOHsM8+Nrv3dx8TspskyRXo=; b=ZpCoSs/NTiOS4e5I33zWK1Mn1qW6QPaKd6v+IT8fvaSHSQx3wA54CA3KmvlkQEElnE +j/Ag4rd+jYee3p5rOG6rrQO6Qsd652pRZ7j9Uz2HHJBAurtHSgitbgM2l3/5wr4hMR7 yHnrFFmFOYhwfkHzF3ewY3hbYkaTbM7RuOXZgOfMsRCclVLBXX9m+tY9KMXrpjn6xYTq 43evRzXw16KyqGaj8l/HA1lZkI/cg1ZquU0GsWb7AmyWEhDPYRBWPyCsU6XQfzeCZvHx DcswLLkZpzGVC4ZtMGK36mMzisRfwtOYWsJwlewtw5oAQoQmYn0JsqIYONwAAQNXyq1w +DNw== X-Gm-Message-State: AOAM5316t7DoWF2a/PwWG26loA82RaDHBQOx564+tOKUvH8DEK+ckkh/ rIq5LMLwVyquWuAgv9ZX2jvj1UZWZ0PPbw== X-Google-Smtp-Source: ABdhPJwqgLEEt/Zs/+PIDGya7dvTCcQaxAtK24x78juhCiKYpfkL4WT80mdnASV/NVVQMbx8iH/JdA== X-Received: by 2002:a63:4a43:: with SMTP id j3mr20191746pgl.42.1600283870703; Wed, 16 Sep 2020 12:17:50 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id b2sm11373688pfp.3.2020.09.16.12.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 12:17:50 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Subject: [PATCH 10/16] coresight: etm4x: Handle unreachable sink in perf mode Date: Wed, 16 Sep 2020 13:17:31 -0600 Message-Id: <20200916191737.4001561-11-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200916191737.4001561-1-mathieu.poirier@linaro.org> References: <20200916191737.4001561-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200916_151752_961679_69DA672D X-CRM114-Status: GOOD ( 17.18 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 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: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 |
Series |
coresight: next v5.9-rc5
|
expand
|
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 1a3169e69bb1..9d61a71da96f 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -321,6 +321,16 @@ static void etm_event_start(struct perf_event *event, int flags) if (!event_data) goto fail; + /* + * Check if this ETM is allowed to trace, as decided + * at etm_setup_aux(). This could be due to an unreachable + * sink from this ETM. We can't do much in this case if + * the sink was specified or hinted to the driver. For + * now, simply don't record anything on this ETM. + */ + if (!cpumask_test_cpu(cpu, &event_data->mask)) + goto fail_end_stop; + path = etm_event_cpu_path(event_data, cpu); /* We need a sink, no need to continue without one */ sink = coresight_get_sink(path);