From patchwork Mon Jan 16 12:49:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 13102975 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 E8D60C54EBE for ; Mon, 16 Jan 2023 12:52:35 +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=oSkaCkSWm3Z2qu26v8yRxX29kqEYs3ql32BlpDbshFM=; b=pusRuq5cHzDJKq 5JLAsLaG0hyq0eoyf2eM+74mK1axghefxSW9OUB68rK2QuByz79MjuxqWoiOEwp0zbuqN3z1RtVrt kHl0Z77R3fpDLC9WqZgpZgAyUJSsNIbLbfAaKCKbEbT+NuPez3W5FeLt04Jf90ztHKDYRA5/p+I9N 4RVaUcA/wpnLZ79ETNsgnW+KOtc1tYxW2xlTXdx9dz3e2GwT6mNbjH8GMqIp6CwdYK2UD0IhPypjm /vtH3N8VYeA7HL9r3nyQ0UCr9eJ86+XXIkJjgDgeD8Y/koGP3XuvZvbqHi9WXBv+mBfggx09xK0AK oj7o5irLXYk8T8LY/Qkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHOxX-00AAY9-Se; Mon, 16 Jan 2023 12:51:32 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHOvq-00A9iZ-W3 for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 12:49:48 +0000 Received: by mail-wm1-x329.google.com with SMTP id l41-20020a05600c1d2900b003daf986faaeso2165571wms.3 for ; Mon, 16 Jan 2023 04:49:46 -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=ScWzcZ8GlnQaw7+uEXztcqpehjbIj8j0N5YRKyPA8bU=; b=WHPVyZdCVyEzH3IQumz+ZQa93TPXD+IvVnD5r+JQl0+23uLtICALw+QIWV2Yh+OEBC +/Ig9NhloS97/UP2/soGvPQgGbwWyM4iD5vx0OIdXvWmqPF8vW00G6gJeFha7LFz+0zb RfiDzlmmgjZzZdC5eA0NuGwKVeQU0wvwM7wHlISyQEQj+PeXKaKoEVd3tZf66lI15I8A 9L/yh+PaZuuWaPS6R72qonxwrJmNWTPXWz9qvqYs0sx3ueFYZcQ4E8+ISyx7dg2zgso8 yeccJi1N6Mi1C8hXYyyfd/6fAC/8KitdyACjiZeNuhE47g7FHPUh6ERVNbwbQulo3c// 6BfA== 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=ScWzcZ8GlnQaw7+uEXztcqpehjbIj8j0N5YRKyPA8bU=; b=bwo9KgE+GuN4SFqpCg7AhH7z8E9gf4ezI8fZHPcmhMBTFKHZWQC8HUjzomyiR77Fl5 ecdv/bU4ItyXzDNQcveWorQLOg64Fvh/ephQ1H9tik3KauEy2uMORXmVk8CsyFdlbA7F IxWF17mky9OD/QT1jAuKO5S1UdtZcgEHUQFCN2Jv83HX3axx8GQYPr5fl34coM7fjBUo wzLCu4782P6Foe/eKUGcSEukMYQeQuOxzfszJ3iKOt6RuZeJDl0QWYlLx5TOwqlQszfs wP4nT9y5aAhcaDTPgQzlavU+gEHn0q5zLvmoKcF7GB+Hn4OyYs4MvT4fJEv79PE7nya4 JrzQ== X-Gm-Message-State: AFqh2krTWA2Rq0O64D2xDnvKPaEKL6LL3PIQ9RESYhU7oBKtGzXKf/1z 0xlC/lRTa6pnA09kCO0vIO3tnA== X-Google-Smtp-Source: AMrXdXtBIDna1fmJkgO9b5RpMFwOmD6mfayzSdk8279hx3uLfniDASDnGAKy9HI2AHknxxCIGXuuEQ== X-Received: by 2002:a05:600c:1e10:b0:3da:1d51:ef9d with SMTP id ay16-20020a05600c1e1000b003da1d51ef9dmr12313675wmb.15.1673873386615; Mon, 16 Jan 2023 04:49:46 -0800 (PST) Received: from linaro.org ([2a00:23c5:6809:2201:6c91:710d:9433:e868]) by smtp.gmail.com with ESMTPSA id fl12-20020a05600c0b8c00b003dab40f9eafsm6896832wmb.35.2023.01.16.04.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 04:49:46 -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 v7 11/15] kernel: events: Export perf_report_aux_output_id() Date: Mon, 16 Jan 2023 12:49:24 +0000 Message-Id: <20230116124928.5440-12-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116124928.5440-1-mike.leach@linaro.org> References: <20230116124928.5440-1-mike.leach@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_044947_081839_0672EEF7 X-CRM114-Status: GOOD ( 10.02 ) 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 d56328e5080e..f7036ed53b3f 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9399,6 +9399,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)