Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7187351rwd; Tue, 6 Jun 2023 07:28:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6m8jO7DbZOhvwc1goK7AsbhdwCqzgomo07n85lQ7+JMeBZDz+jvh5LfHecULCUMzr7BUUw X-Received: by 2002:a05:6214:130b:b0:626:2461:9f09 with SMTP id pn11-20020a056214130b00b0062624619f09mr2398129qvb.40.1686061690315; Tue, 06 Jun 2023 07:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686061690; cv=none; d=google.com; s=arc-20160816; b=SOZ3rmCKuR+G5B/gbXoedtEjDYpcSEkeVqrN2wodwvYhm04ywU38EALzMSPpzsop1L 646H1QwTIGazKINkOeuExBsyGcC3ZfNtmLLsjEi5sXJEjGRpyZQ5qG7IO0/g+VYPCaVU XQdztO23bKTGivcdNb9UjR6YEx2NxSPSG7OflDKwVeL2PpERZC32xuNxm7S5Z5fGh7Bd G7oPid6Q1fqchhypt5idIjMaQJ3qcDDRlFaVtAsP7PKybKwgaRQ0CF4L4kHQHUenmnUu TR3hdc7CMrt4jEvOSjkIjLY5AQ1h62J77yceVVHVeYaeR2Awj8RIV3ze1UpbE/Eaixyr +Acw== 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=LSooPmB/j2Pp/PnwHf1bhlqZCLbzn/W3D7OHKRG++8g=; b=xe7HwSkvztyRRVWQIWGbVLUyp4U3OaagUwTRbz6sOvGfy7IpwODa0s9mSGShYYtcea rdxZYUCoy5wASDkw9FRA7fOS5MIKw4VEUTmaL7/NuX/L+qtX4coaSBJQErisuNwrD5rL sRT9Rkz2EhGb6qiGaax77xdLgHsYh39mCGFgM1+dAqB9q4vKsF12cixCTYkyAYZ0TvGS 97Hd7ixGTO6gReIkSVakBcC1vjKAF+T4hj8WoqL+ST9F+vwuCSg6UCZxzwUQm4hF6jFy wSJr4+o76aoet5RkJFjtCIy4FYvQPf0LPSNnfJT6t4lMXb+JRhTOZx3WkcmOu5vKC77O P3mw== 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 q4-20020a05621419e400b0056e9871bbc0si6483035qvc.23.2023.06.06.07.27.55; Tue, 06 Jun 2023 07:28:10 -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 S237776AbjFFOYb (ORCPT + 99 others); Tue, 6 Jun 2023 10:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237551AbjFFOYU (ORCPT ); Tue, 6 Jun 2023 10:24:20 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BBB1E42; Tue, 6 Jun 2023 07:24:18 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QbCN04f0QztQVt; Tue, 6 Jun 2023 22:21:52 +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.23; Tue, 6 Jun 2023 22:24:13 +0800 From: Yicong Yang To: , , , , , CC: , , , , , Subject: [PATCH v4 4/5] hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU Date: Tue, 6 Jun 2023 22:22:43 +0800 Message-ID: <20230606142244.10939-5-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20230606142244.10939-1-yangyicong@huawei.com> References: <20230606142244.10939-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: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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. Reviewed-by: Jonathan Cameron 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 5c7e93e7705f..ff2c16efe5b1 100644 --- a/drivers/hwtracing/ptt/hisi_ptt.c +++ b/drivers/hwtracing/ptt/hisi_ptt.c @@ -1210,7 +1210,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