From patchwork Sat Jul 15 03:29:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Jihong X-Patchwork-Id: 120743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp4368vqt; Fri, 14 Jul 2023 20:58:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlGsh5D8zRwELtmozBdHPOx+fIc/+4UULa3oTc8sIt4miV6olQtQJaagFfrBT09+73xJ3XqV X-Received: by 2002:a17:906:7786:b0:993:d8be:53f5 with SMTP id s6-20020a170906778600b00993d8be53f5mr6018274ejm.14.1689393491574; Fri, 14 Jul 2023 20:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689393491; cv=none; d=google.com; s=arc-20160816; b=D9OurC44qqSoIBePclbmvZGySob3Brrb/aHH+j+iEPla4bfYdoqsTzSrzzJY6DpZCf CkhtjunWE2lPGqugAZmhn0T4V6hIK0761Vv+jKHxzlzqxQqlMkc3XABS9SA/eI/gLwto hwgBdL+L/xeoGknRunUZ/8b2cKOa3BKdtwZV1p/iIncNEC8IDBcd5FC6809CSSK09HRT hO8obI4UOlRNlkDUT3OesnJ1xbgH/jILXvAKuvEs1UXnjO5WS9YkTZ5tBZunlTi/gRnG HEnAyqUsliZ4qwFTxEDoW42HsgWIJXnizLJAEPXwOLnhiKl7bk+nESNv+0DqQjIBvXWV t+IA== 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=IatdIuDm32S+jI7u2TTnbDbca96AqMuozFPWM3DhnF0=; fh=Ib1wi7jRbo+eNDLEErvWCJx+cnUm87PkGFthhdFf08Y=; b=wA2PPI/6epbI6WYmmjzWzvRYC1l/fYZWKmQZhmrMvuLJ3BYeR6B6d/p2NWUPKCatto UaxsLDO+ItRYx23Ej6TtImTiDsijQ2z18YwW7F40mSEKBlUEideuP5uSiU1iSDz9rczt GkKJqSNwtEd3qUxD1lmMSeyJPG4T9j3Syt5LW7t2hmTsHZUEEmw6sD2mm4i3PJ3q5PCU W5SROpvPcJRqB9TMlmFfImxbeB216K/hjdl4X16a8ej/PyzNve4zdB+MUejz2RBfaKl1 gV8Y6Lg944CYjwzXBKcKpo9KOcBA8qr1o7j2CHVhXmr+MTyIkQ1o5+jMT5lOz9ZWwtnt ssAA== 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 j15-20020a50ed0f000000b0051e05151467si9858616eds.224.2023.07.14.20.57.48; Fri, 14 Jul 2023 20:58:11 -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 S230235AbjGODb7 (ORCPT + 99 others); Fri, 14 Jul 2023 23:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbjGODbh (ORCPT ); Fri, 14 Jul 2023 23:31:37 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C87B43A99; Fri, 14 Jul 2023 20:31:36 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R2v492nYMzVhkT; Sat, 15 Jul 2023 11:30:17 +0800 (CST) Received: from localhost.localdomain (10.67.174.95) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 15 Jul 2023 11:31:33 +0800 From: Yang Jihong To: , , , , , , , , , , , , , , , CC: Subject: [PATCH v2 6/7] perf test: Update system-wide-dummy attr expected values Date: Sat, 15 Jul 2023 03:29:14 +0000 Message-ID: <20230715032915.97146-7-yangjihong1@huawei.com> X-Mailer: git-send-email 2.30.GIT In-Reply-To: <20230715032915.97146-1-yangjihong1@huawei.com> References: <20230715032915.97146-1-yangjihong1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.174.95] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771457469980824604 X-GMAIL-MSGID: 1771457469980824604 The perf record uses evlist__add_aux_dummy() instead of evlist__add_dummy() to add a dummy event. The value of attr needs to be updated. The perf test result is as follows: # ./perf test list 2>&1 | grep 'Setup struct perf_event_attr' 17: Setup struct perf_event_attr # ./perf test 17 17: Setup struct perf_event_attr : Ok Signed-off-by: Yang Jihong --- tools/perf/tests/attr/system-wide-dummy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/tests/attr/system-wide-dummy b/tools/perf/tests/attr/system-wide-dummy index 2f3e3eb728eb..69f61f3271cc 100644 --- a/tools/perf/tests/attr/system-wide-dummy +++ b/tools/perf/tests/attr/system-wide-dummy @@ -9,8 +9,8 @@ flags=8 type=1 size=136 config=9 -sample_period=4000 -sample_type=455 +sample_period=1 +sample_type=199 read_format=4|20 # Event will be enabled right away. disabled=0 @@ -18,12 +18,12 @@ inherit=1 pinned=0 exclusive=0 exclude_user=0 -exclude_kernel=0 -exclude_hv=0 +exclude_kernel=1 +exclude_hv=1 exclude_idle=0 mmap=1 comm=1 -freq=1 +freq=0 inherit_stat=0 enable_on_exec=0 task=1 @@ -32,7 +32,7 @@ precise_ip=0 mmap_data=0 sample_id_all=1 exclude_host=0 -exclude_guest=0 +exclude_guest=1 exclude_callchain_kernel=0 exclude_callchain_user=0 mmap2=1