Message ID | 20230607093123.51421-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 k13csp132238vqr; Wed, 7 Jun 2023 02:47:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4An/HXTaveql8OXjb3reribRKTYxswr0S/diVaccz9ojCCRDYch+xu0xDG/omJ0uCRkX90 X-Received: by 2002:a05:6a21:100e:b0:f8:1101:c074 with SMTP id nk14-20020a056a21100e00b000f81101c074mr2800073pzb.54.1686131254646; Wed, 07 Jun 2023 02:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686131254; cv=none; d=google.com; s=arc-20160816; b=QWo3jTOoNMp58jwFnA+hVQudyOUwUtQUHtipHBMIdltDWhllIN+pokhGPbvrsC52xN 3Thku4ivWM/bWoKsjiWg9pWrAk6Jpa7qepej5CU/rRXlo2KGAMj9bA6n+z8SO90ouWLk g7JLUl6rZDCX0E8Fvk8KMW86gYhrVpWJiqfgURlHA2E8J4CySMyM0Vslo1I0lOUqI7PK 6UFwOZ0s54PPm+4Aj2bzyKz9fPzyZwWjaVbZ8Zdq4vYusJo5eglW9Hvwm4HT8kaQ5fg/ iujZ8qqxfw8MAr8CuQqTT91ds1MtsZr9A+Ml9eMXxqS99Twp7Iv/UCxuJ+723mZqihsm 2Utg== 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=jfP6oSb09jIT4Z9TfWrFaKGaQ0TF6zXT/TSMBiGZibw=; b=l0IEhAI/Dmq2DAxxGNrRHfc5Fw0ZlcAvQOv9kMCZNLPs9mi0U4uL3ufzvPN1nw00Bc qrXenki9NREtZ0CnCjwtMi+em3EWOqFXMBijc83SZkmqYyFK5Iv2s33rKKJ0VbisuFcX PAbsmmQMuLqyYrMSDJ24SjmtShrl6HF38NpNta3sJfbML+GkKL9TiFCufX3g0M1eUQqn T/YfLuPcGg3C0A1Q/U9x+6ceTmm77HcUTFvIEK3YmI1Fh9LUKdiVE60skzv7HWLX5N6k hbxkUQpnnB+9ZR5jGIXPcC6rsQ5/unUsqFKslU1BW0AyeafEhar868IkNiqxK6997aI9 xKEw== 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 j12-20020a170902da8c00b001b231cb6f22si2872370plx.111.2023.06.07.02.47.22; Wed, 07 Jun 2023 02:47:34 -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 S235217AbjFGJdF (ORCPT <rfc822;literming00@gmail.com> + 99 others); Wed, 7 Jun 2023 05:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240079AbjFGJc4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Jun 2023 05:32:56 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718D4173B; Wed, 7 Jun 2023 02:32:54 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Qbht56mThzlXJ9; Wed, 7 Jun 2023 17:31:09 +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; Wed, 7 Jun 2023 17:32:52 +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> Subject: [PATCH v5 4/5] hwtracing: hisi_ptt: Advertise PERF_PMU_CAP_NO_EXCLUDE for PTT PMU Date: Wed, 7 Jun 2023 17:31:22 +0800 Message-ID: <20230607093123.51421-5-yangyicong@huawei.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20230607093123.51421-1-yangyicong@huawei.com> References: <20230607093123.51421-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: dggems701-chm.china.huawei.com (10.3.19.178) 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?1768036766455087578?= X-GMAIL-MSGID: =?utf-8?q?1768036766455087578?= |
Series |
Improve PTT filter interface and some fixes
|
|
Commit Message
Yicong Yang
June 7, 2023, 9:31 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 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 <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..dd404d93081b 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_NO_EXCLUDE, .task_ctx_nr = perf_sw_context, .attr_groups = hisi_ptt_pmu_groups, .event_init = hisi_ptt_pmu_event_init,