Message ID | 20230621092804.15120-5-yangyicong@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4242833vqr; Wed, 21 Jun 2023 02:55:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lJ+BPF0Ejii+eSVxPJ3FyWDUjJblJ01L6DFHQYwwbBgoNzNCFVjIxytZCecg/8Pdv4Rcc X-Received: by 2002:a05:6808:1803:b0:39e:dbbd:aae2 with SMTP id bh3-20020a056808180300b0039edbbdaae2mr8832643oib.54.1687341326806; Wed, 21 Jun 2023 02:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687341326; cv=none; d=google.com; s=arc-20160816; b=Sv/m+Cipk/vVow3wtCkQ+IAUGEJB0QTQmpoyxAuI1TTpURSp0tR4pNZv8MWtt4XJfn jPr5HXwLdnTPqNAeEQJiu43M2YjVadzWXxx1/yf8j3V0ojRLWqAfTshL2v862kkAiVh4 NukGHf87rbgMquVPW5HpDmJlkbegZdZnPd1054voleOk6t+Xjfy1mZaE7h5F5Jvn2DR2 vMeLW0WG4+3dn5ROdicSby7fT0m+G53JbouosR/oqwQ1qvmSCHQa0W86G0n+joxbvCuM XOBzM+A0D+F2ON3Txr395knyRg22LQB3bZPB05tX54sIQUDbrUX4tuVRIbFzlAYkpN3d 0few== 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=7eFTTsjCXCHWmGNZzyLix7iKSv17hHVFWGab1XtUqrQ=; b=V4+WWi7TGluOKBpgug+j8CUE8WFQ0PtKvzT92wvNH0glp/K6r85G7pcJsS23vlrxWO U4BvmB0EN+7kNmyLmooOjFiSRK8NZihASzbd2eljWUaJZs82BEkB60Hq06YF0b783vpD shwB6Wyktxcm6ThPEXI0oPS6Pw2KjPpGaLBJsMpZnZnu9Lrj13cPQk9bhwKK2jCTrfrK 2DGFsgY/rvDCduFlh4AaRtGSLgPti+gPpWqbHr6U/+SR1Mq1KmWkkV9GxhUlExL04DYK bxU/IOr0EFH9M+wTxAhyuId5qj93/fAvwyC+Kl7eu8OKen3tBP4onUbqJnz/tFZmWybA ysgg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i195-20020a636dcc000000b005533ed46a70si3617043pgc.814.2023.06.21.02.55.10; Wed, 21 Jun 2023 02:55:26 -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 S230479AbjFUJbS (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Wed, 21 Jun 2023 05:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232300AbjFUJap (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 21 Jun 2023 05:30:45 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B44D1997; Wed, 21 Jun 2023 02:29:45 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QmJ9B158pzTlNk; Wed, 21 Jun 2023 17:29:02 +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.27; Wed, 21 Jun 2023 17:29:43 +0800 From: Yicong Yang <yangyicong@huawei.com> To: <mathieu.poirier@linaro.org>, <suzuki.poulose@arm.com>, <jonathan.cameron@huawei.com>, <corbet@lwn.net>, <linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org> CC: <alexander.shishkin@linux.intel.com>, <helgaas@kernel.org>, <linux-pci@vger.kernel.org>, <prime.zeng@huawei.com>, <linuxarm@huawei.com>, <yangyicong@hisilicon.com>, <hejunhao3@huawei.com> Subject: [PATCH v6 4/5] hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU Date: Wed, 21 Jun 2023 17:28:03 +0800 Message-ID: <20230621092804.15120-5-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20230621092804.15120-1-yangyicong@huawei.com> References: <20230621092804.15120-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: dggems706-chm.china.huawei.com (10.3.19.183) 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769305619098363021?= X-GMAIL-MSGID: =?utf-8?q?1769305619098363021?= |
Series |
Improve PTT filter interface and some fixes
|
|
Commit Message
Yicong Yang
June 21, 2023, 9:28 a.m. UTC
From: Yicong Yang <yangyicong@hisilicon.com> 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 replace PERF_PMU_CAP_ITRACE with 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 additional information and with this patch it reduced to ~0.226MB. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> --- 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 5c366a757573..103fb6b9bffb 100644 --- a/drivers/hwtracing/ptt/hisi_ptt.c +++ b/drivers/hwtracing/ptt/hisi_ptt.c @@ -1212,7 +1212,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_EXCLUSIVE | PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_sw_context, .attr_groups = hisi_ptt_pmu_groups, .event_init = hisi_ptt_pmu_event_init,