From patchwork Wed Nov 23 19:50:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 13054258 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 6505CC433FE for ; Wed, 23 Nov 2022 20:28:25 +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=02eat3Oyds++6K1x1w0n3h/7ZoHeaqFEDRgXNlpBzIM=; b=VAAXNYw8GtdUOJ SCeZSWRHF6CYZ3FTFDyGN2O6z1G9aUDxV8CZuO6WGFjxoe4wp2QtbvrGzupzrkGtxsh2sPqyLzLhJ SE6NkwITgaMxnJaBGntn96XnAoYHj8GqQWBr8VOPc2PTAR6IetKdntmZgUQVlLkcOLZULdVtl00Dq dxp0IxHsOrSQHW2QvA1rtSfieFpZ202hDlCJTA7l9v32ZOLFB8f7qWnMXtPVUBwIxf1Ugirr7+Pmf B+upGCXfKy11caZBd/NPnlht7o8pwM2H4Sw2JJaWh7xmNG6BenMSwX49wl17B/BYQBc6P4jLCyxri JTyMSwBSd43v7iCDhDVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwKz-002G5d-2l; Wed, 23 Nov 2022 20:27:17 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxwKc-002FuA-Bs for linux-arm-kernel@bombadil.infradead.org; Wed, 23 Nov 2022 20:26:54 +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=q/rZtCQJIH1tcdWsQUgVvKDosjDAE+Gq7OIwmjNOiDI=; b=gfSmDhv0enQgi67eFWCHB9o/F1 2cA9Qsr1oVFxlWIzz+yek/sc+aN9P0/vE/MgxaPtkkL86E5lL5vgUPegxf96Rqf7xNQ03vALayGy5 ipnWdOoiJYffoHxhSlnaCQVOnA2vzwiQaVMhSnS5Rc0T2EJ7g2m+0HB+WIUNnxogIrMfuJFldeFFR ghup0yxtnxVgfXxwVY9hamUtLFDfTg205CKxL0uzeHlRLKXBAA5iMCT5sqiNKLC0cohXG6OHxvXjI cFJbzjD1GNmppaYFx7Rw0fU5rFcKmBVq3F9oR8b0Pr8mnMS9lepjCjzgDuCgVlS80bv0kqNwzpcVk z2f90LMQ==; Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxvlR-003uma-5i for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2022 19:50:38 +0000 Received: by mail-wr1-x42b.google.com with SMTP id i12so27160291wrb.0 for ; Wed, 23 Nov 2022 11:50:33 -0800 (PST) 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:subject:date:message-id:reply-to; bh=q/rZtCQJIH1tcdWsQUgVvKDosjDAE+Gq7OIwmjNOiDI=; b=Y0wzeg/9IEcrSrRDjm7ewn/WmRVLl9UfqDflyrgJ9IvuIAkyBU71uuBK++bvGEkdBS cBKsQM9HBAjhqCRA05xgQhQfmSaQ32g/6tLlrugADv7VQQ1B46VcGwY1VGRZ+0XePHqo tUU2qNaUxoTJVRD3r3y7Kx+lb35dMY7UBYvUrG6J+YOzEomA//1xxqz6gdk2bxBUkihB RgRMCwsDeT8HCDqK0TuLt5kJTl9bI0/b/eG5k+FzAfSz5IyYKGZU3qDb8UP/0FcAa1aS stE219YI2e8ekdnspHR7Xns+ih/fw88y9ATSKPvblGnWdf405TqixObxDC4Fs9o7Ywv1 nY7g== 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:subject:date:message-id:reply-to; bh=q/rZtCQJIH1tcdWsQUgVvKDosjDAE+Gq7OIwmjNOiDI=; b=wWSOp8hEH4ySK27prHjvHcsCGwoCiDhcdki3254JqG9ohRuAs3zWCYPPhw9736yQXA IuulfeSvNscUosZls/DJiIag57KjhFN9tbArxQmWB/Cm3N31dRKnsMu1u3xGect7IE5r Hbra6Q1TGz1XNa0jlhP7tFzNW8lz8JM4dMfcTGpREGkt5jvBJlhCxlzpaFx2gMh7VIKA GDhqxJCXoRyAn29ikqL1i5yWrP6zIYgXRGTWPdJVM92pVxXOLwbMWD1fIXMi3bcCaG2I +Mjkdjwd+LMpseURDg+q6nCnhrbb8dp5epI+DELeWkGVfzw0am7XUCHfr+cUGnqqLM4Y rUSQ== X-Gm-Message-State: ANoB5pl3IemDqG+RFdudcGfyFKUJ89kc/94C4gIQ89NpLVuWp42S/mqI tqEtK2LYulTOYtg44gAyzr7e7g== X-Google-Smtp-Source: AA0mqf5Ymr48oHJexOSABWqRTfaBxwQ6JYV5duyinhabrT6UzI2CSiqCwawpQ+QIa/NWw32+bwWSJg== X-Received: by 2002:adf:f805:0:b0:236:ef0b:68c5 with SMTP id s5-20020adff805000000b00236ef0b68c5mr18911996wrp.373.1669233032908; Wed, 23 Nov 2022 11:50:32 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:fcbc:7b5d:8d6c:43a4]) by smtp.gmail.com with ESMTPSA id w5-20020a5d6805000000b002364c77bcacsm7267414wru.38.2022.11.23.11.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 11:50:32 -0800 (PST) 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 v6 11/14] kernel: events: Export perf_report_aux_output_id() Date: Wed, 23 Nov 2022 19:50:07 +0000 Message-Id: <20221123195010.6859-12-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221123195010.6859-1-mike.leach@linaro.org> References: <20221123195010.6859-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221123_195033_344070_1EF039EF X-CRM114-Status: GOOD ( 10.06 ) 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 Acked-by: Peter Zijlstra (Intel) --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/core.c b/kernel/events/core.c index 4ec3717003d5..ad388552f1d5 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9231,6 +9231,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)