Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp664678rwl; Fri, 31 Mar 2023 00:05:40 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDfkmsjzx3Pw4feemZMJsOU4oUf6/F3UXYsewNQybja/Yl5VWR1zJxi2QjSgTpJe2Y7TFw X-Received: by 2002:a05:6402:40d6:b0:502:367:d5b8 with SMTP id z22-20020a05640240d600b005020367d5b8mr5404259edb.4.1680246340476; Fri, 31 Mar 2023 00:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680246340; cv=none; d=google.com; s=arc-20160816; b=JCjvNZDxNcGbtux0Mzo+6NS3bRtT9oG24z9FOTHpHaDgNg2nNaA5dlbZxh6VZkJqOM lkTmd5nPwxkwVTDkZxw0RyPu0wmoozJnl9PW0V7S6m7CLT7LNAHI4kMX+OTOXrJTvCF3 a2dXUPZpB5/zs93e8ihIZIsfk5XJ2fK8b6BlP70/z0OsptDjy+uFHBKISE85Xx5oCtTw HYDXemTaqLwMFU946Js8toXieYwWm80yaavGvMf/bEw0h3i3oxahxfczsM/5hyQeD41v BdzcepCB61OucCnTNytA9mLVfjhqIJsUgWoNlUvybpEuy+Dd3xGzII2Pi4l2+jVFRRa0 CwCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0chF1GNLQO2PrhK+OUVYCr6xLlnT5KslZggHwPrQH1w=; b=IH5fVId04sU8Ya5AB6SON21NtYE/JL7ZWzfY1yibNIjQMbWwnurcchzN+R9qgp2VKK sT4/P6dXyl2jKI8Nx5AKX+FYYuaZOqeYpJoevrprmL9Oh5KvKCBw6FbAmC06F6BTJon3 31f5bdR4vrilZZDqxyrmEV2qBTGj2Dss+nChCaTMN7z6MMl0Bi1EbLCQaBzqMgNQPKpJ NTa6hC1/P2Fnb20CW3cXwhfoD5idFAIXkrqUxfAhhW2gDFWKTOsrJKvGKy/MJTOGa+Dd rI8Pmu1755uLyAPaCdwJ+Qz9ucPDLMv11/MiFoEAlBJWet6nD8eGM4taPj7L1SqiOQYq v2+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a056402345400b004fd56e106dfsi1259310edc.547.2023.03.31.00.05.15; Fri, 31 Mar 2023 00:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbjCaHEN (ORCPT + 99 others); Fri, 31 Mar 2023 03:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjCaHEI (ORCPT ); Fri, 31 Mar 2023 03:04:08 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3081A47F; Fri, 31 Mar 2023 00:03:53 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Pnrmk5TmszKwCk; Fri, 31 Mar 2023 15:01:26 +0800 (CST) Received: from localhost.localdomain (10.50.163.32) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 31 Mar 2023 15:03:51 +0800 From: Yicong Yang To: , , , , , CC: , , , , Subject: [PATCH v2 4/4] hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU Date: Fri, 31 Mar 2023 15:03:10 +0800 Message-ID: <20230331070310.5465-5-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20230331070310.5465-1-yangyicong@huawei.com> References: <20230331070310.5465-1-yangyicong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.50.163.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yicong Yang The PTT trace collects PCIe TLP headers from the PCIe link and don't have the ability to exclude certain context. It doesn't support itrace as well. So only advertise PERF_PMU_CAP_NO_EXCLUDE. This will greatly save the storage of final data. Tested tracing idle link for ~15s, without this patch we'll collect ~28.682MB data for context related information and with this patch it reduced to ~0.226MB. Signed-off-by: Yicong Yang --- drivers/hwtracing/ptt/hisi_ptt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/ptt/hisi_ptt.c b/drivers/hwtracing/ptt/hisi_ptt.c index 71bc0c784c51..b0f070ad88a1 100644 --- a/drivers/hwtracing/ptt/hisi_ptt.c +++ b/drivers/hwtracing/ptt/hisi_ptt.c @@ -1205,7 +1205,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt) hisi_ptt->hisi_ptt_pmu = (struct pmu) { .module = THIS_MODULE, - .capabilities = PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE, + .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_sw_context, .attr_groups = hisi_ptt_pmu_groups, .event_init = hisi_ptt_pmu_event_init, -- 2.24.0