From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,TVD_SPACE_RATIO, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45623C433B4 for ; Wed, 21 Apr 2021 12:07:44 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 EDBBF61448 for ; Wed, 21 Apr 2021 12:07:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDBBF61448 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gaXd8zJHR9UtEd2TX+NQoOY3vcMg9/hhKVOzlFrtz1c=; b=Am4MHOY76AW+iJx8XX6uT+KCy MUCYPcS3UYCL3MEDolMNI5kJJVeT6jbBD10MZeu8guddthXcV6o0ukhtk7lHslizYPC1H/k4Cv0io vbr2dv8flRZWplliSNHl9PF/Bvggt3SultODzpLTOnGxFT/n86i7QM6cB05/ecGqaiRAmEoYtgLDp deTT/83jpvlYHucopXpq0jZSrPa8zoYIWc5xW+I2IkCiqyJgT1vLbvBEwez+8cfFVFAKOjqbV4sLB BCWTW+IYKzah6h6FSEGo7X/R4F3thIZQlmNiuneXkLC2y2m7RAEL0+93HpJEcJV5nzacHawrgd+hW zp6xVQmgQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZBbt-00ELqK-OX; Wed, 21 Apr 2021 12:05:40 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZBbH-00ELnE-LK for linux-arm-kernel@desiato.infradead.org; Wed, 21 Apr 2021 12:05:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=EqKQMQv4iqHYS9kG6zJCWnRHTW6KkgJD0Ua4NGsgY+A=; b=Ap/kxM62OwpKG3QJLWlI7Q46ci UcWo4XKc8NxwW+1wywekAd6SNmA+V3C3GiJJYHr/blw51zldztbzbiTfjBnKG9+h3cXKudYFVPd1b eEZXG+lK4clMMxqm4fD9I+xdeeoOmcct0o7frM+BxuocM86XesxzDvHK/wDdPqWTHRGIbeoUdYkSD mFoJHUTqTiEfhmWa+hgBBpT1wco1zcegR3OSA3wqyAqXzleEB/L4FAn8KBFRu2lMGcOrXPguZ3B6W bGy1weRhXSKqa4RvkagRZzCxcEkr9xYyoXHuqVohe13yeVoeoFTAG3Hu4AVNvlfTgaQuR5dkbwgDP YBL6K+tg==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZBbA-00Cqzz-74 for linux-arm-kernel@lists.infradead.org; Wed, 21 Apr 2021 12:04:58 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7898A1424; Wed, 21 Apr 2021 05:04:50 -0700 (PDT) Received: from e120529.arm.com (unknown [10.37.12.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DA2533F694; Wed, 21 Apr 2021 05:04:48 -0700 (PDT) From: Daniel Kiss To: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, leo.yan@linaro.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: denik@google.com, Daniel Kiss , Branislav Rankov Subject: [PATCH 3/4] coresight: etm-perf: Export etm_event_cpu_path. Date: Wed, 21 Apr 2021 14:04:12 +0200 Message-Id: <20210421120413.3110775-4-daniel.kiss@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210421120413.3110775-1-daniel.kiss@arm.com> References: <20210421120413.3110775-1-daniel.kiss@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: FoSSMail X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210421_050452_317275_C180B7A9 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Signed-off-by: Daniel Kiss Signed-off-by: Branislav Rankov --- drivers/hwtracing/coresight/coresight-etm-perf.c | 2 +- drivers/hwtracing/coresight/coresight-etm-perf.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index f123c26b9f549..78a55fc2bcab5 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -117,7 +117,7 @@ etm_event_cpu_path_ptr(struct etm_event_data *data, int cpu) return per_cpu_ptr(data->path, cpu); } -static inline struct list_head * +struct list_head * etm_event_cpu_path(struct etm_event_data *data, int cpu) { return *etm_event_cpu_path_ptr(data, cpu); diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.h b/drivers/hwtracing/coresight/coresight-etm-perf.h index 3e4f2ad5e193d..6d02abbad1b0f 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.h +++ b/drivers/hwtracing/coresight/coresight-etm-perf.h @@ -69,6 +69,7 @@ static inline void *etm_perf_sink_config(struct perf_output_handle *handle) return data->snk_config; return NULL; } +struct list_head *etm_event_cpu_path(struct etm_event_data *data, int cpu); #else static inline int etm_perf_symlink(struct coresight_device *csdev, bool link) { return -EINVAL; } -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel