From patchwork Tue Aug 23 09:10:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 12951899 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E04FC32772 for ; Tue, 23 Aug 2022 09:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=N0NySNk5wsXFKSrZGJS+OhJTlMYElnHhotvMR+ecOVM=; b=PVw2cTQbDdQk+K pMvigLLVKhMnV4McmjvWKfMKkTNcPz0gpBOPXhIY53otC4npbQhlt5hjOgXPblR1xhL0JJu8STCCS fTIDO0bmPDDgfngpE3VADRZrb1gK+tGj/NAwzQOwwdQOSD4VhzCTbLRHEIm8pPI6xo0gtv4KgOtG4 2k7BFT3vQPHPpvuVlgPC66LbwpJS1fdZ+AxNJY3ANvNPqD7sP6cJecYhQPf7VE0CgXVz8LOG54k9h 37xc8s7dtj7wWFNIeivGyraSKBSMWsjV9qZ+OcTCVsZdCFBCtvid2u6RPEA7EWUQkC3vsUg7z5ESb OIQAaIltt0zeus06Hi5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQPy4-004Lbh-8Y; Tue, 23 Aug 2022 09:13:04 +0000 Received: from desiato.infradead.org ([90.155.92.199]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQPvf-004KWN-Si for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Aug 2022 09:10:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=References:In-Reply-To:Message-Id:Date :Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=aQd1+sXptG+dXZkMCM1QB94Fz8Pu2kkVLyqLPUwsHlw=; b=ShyZ4tkuMp57mv4E85jG/JdkoL bIZEV306fNZ6mYL+XjXLG+gV2kZRAOpy22nAm7a8aNeKnZQa0hIaxDDwRrvpqwVk512dpsBfrOVMY jTjBC2a4mtW438hnBZ/IW8Ap4r9vefcRpbJdj1VbCrbk24esuYN/paapClsFf22+3EslZKkYZUqW3 22yJrJ3cwBR+IyVuvIdnxI/Nsm5/W1KWYgX88MnY1iL45W7w4gziyYviYVnWcs51Vw2dOUPUWaSn2 5+VFhR7IhzfdoX2PHCyi00IYKEN4jCB0affmY7MmVvdrhUsMBiAsCMPQyFOm1o7tpyttViZrmUHmq 8XwqgnbQ==; Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQPvX-005L2g-La for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2022 09:10:32 +0000 Received: by mail-wm1-x32d.google.com with SMTP id n23-20020a7bc5d7000000b003a62f19b453so6106520wmk.3 for ; Tue, 23 Aug 2022 02:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc; bh=aQd1+sXptG+dXZkMCM1QB94Fz8Pu2kkVLyqLPUwsHlw=; b=LG0uBul7JWvbK6rlaTen26I5SXJEv/D7DhhHJp6FhtNH2DaSus7+I3xfk4h9h8cBxY ju4ArQTKNm+S0ZIVLPqoV/KU/WxjS1OSM1Q6rGiQPYbal2gzih3Rfd1Z6B0NPAYtWw0U wVaeolxhGcg+lWcx3tt9AuR8zz70Nz/HCITxS5npAfmC8MrHsmDzlDSp/4I9Xwxn1PJi 4aTaFfS1/awdlj9KmBI9MS1RnJj+vdHai6IFfvUjglgL3nXjeeKhwKYWnFIIegfjSLHv 3A4J4dKECJWAU52w/v1gykJTeOWmWSOLY4961lhUWVCk0Tq0+V4iyvFxUvsrI/pW1BLO REQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc; bh=aQd1+sXptG+dXZkMCM1QB94Fz8Pu2kkVLyqLPUwsHlw=; b=BGbd+VLBXc1USPVU5OuEjMaJW2e7T4FjmjOhEv07pnH3K1ShPvP/WpoGviCU11vk/p mPOawrNSx8XWA8r84kZmaIRBV89VFZ99Bo9Q52sbcWeuX2TJqBMvLt8REOInKQD9FEuj qCYvPoNjoKP6RHvRiyat8WmJba2S1cPC2xEzHHwq8++snnRcaCfyDlQujdJa1ZcT8d2+ cr94IY2EEZnHUC/8AgdnWCi+OqxK1KSDf7GaGZHKpeBtmslRB0t1WE7ppPZxSoms2IoF FLsL5MxCuj3gNiN68dqC7Jbut9Vkp9yNLfqk1En0BqgwpO/xy+757GyM92VX3pmV8eaa gmfQ== X-Gm-Message-State: ACgBeo1AfWGRKbz95wmjZy4vDByKMW6sgYY+DRV8aBn9bGuIhO0mb5xM GgX6suid2CvJEyFyp8tYJYKZ0w== X-Google-Smtp-Source: AA6agR5i0OGJJj/Hn6w7u4mF0zrw3CvQptA+b0ncS08T4HuYTJy2luWzxhEJienGgJdv18Byld9Igg== X-Received: by 2002:a05:600c:154b:b0:3a6:1863:acc0 with SMTP id f11-20020a05600c154b00b003a61863acc0mr1541219wmg.29.1661245824501; Tue, 23 Aug 2022 02:10:24 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6809:2201:4553:cf11:6cff:b293]) by smtp.gmail.com with ESMTPSA id w6-20020adfde86000000b002253d162491sm10760721wrl.52.2022.08.23.02.10.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 02:10:23 -0700 (PDT) From: Mike Leach To: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mathieu.poirier@linaro.org, suzuki.poulose@arm.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-perf-users@vger.kernel.org, leo.yan@linaro.org, quic_jinlmao@quicinc.com, Mike Leach Subject: [PATCH v4 10/13] kernel: events: Export perf_report_aux_output_id() Date: Tue, 23 Aug 2022 10:10:06 +0100 Message-Id: <20220823091009.14121-11-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220823091009.14121-1-mike.leach@linaro.org> References: <20220823091009.14121-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220823_101029_776508_01BBBB71 X-CRM114-Status: GOOD ( 10.43 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org CoreSight trace being updated to use the perf_report_aux_output_id() in a similar way to intel-pt. This function in needs export visibility to allow it to be called from kernel loadable modules, which CoreSight may configured to be built as. Signed-off-by: Mike Leach Acked-by: Suzuki K Poulose --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/core.c b/kernel/events/core.c index 80782cddb1da..f5835e5833cd 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9117,6 +9117,7 @@ void perf_report_aux_output_id(struct perf_event *event, u64 hw_id) perf_output_end(&handle); } +EXPORT_SYMBOL_GPL(perf_report_aux_output_id); static int __perf_event_account_interrupt(struct perf_event *event, int throttle)