Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp781375rdb; Fri, 25 Aug 2023 00:19:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXm3q6gXcJ8Tkk41e+as3nBTjlrm374lX3BcwjsZlZs0NrL2iejvwxVI//vxRU9iW/TJfb X-Received: by 2002:a17:907:770f:b0:9a5:7759:19c0 with SMTP id kw15-20020a170907770f00b009a5775919c0mr843534ejc.64.1692947982428; Fri, 25 Aug 2023 00:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692947982; cv=none; d=google.com; s=arc-20160816; b=FK1ZlKlrELXkP8BfjkpxhJRBhpV1drInVw1jwWFfyxXs3ivr/j932SDQDVpBD6996M DpPbg3jOWlCBzePHziRoNh1J93GaeNjvGb+Rb0OiS4rb6C34y61acl9tBffWyyTtSwzI MM30dyLAu2LQsLmjn1eIoLmkl6Wz0CFA6lMPnlGnq/sP43M8CXJDCgz4/FmkhyW5pwSK 2QoAhyzjULN8xKZ4sa/oJRKk7Qa3wodhLXwTOrXooMv5ZhLKn0M60eiI0RJmS42EjLhZ hyXQQbD3ZUnuDaou81J1eooXvRTuWDGWzksuJHgq621h/Ge9gIdoDjRvI6qLUn0I/zsI epNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=F6Cerm5Sck8f2ZPyVt1BW1sVuTHlc1QjvoeEn9O4nG4=; fh=xo9tINpoVzO9DZPTaVEGY70vsewaMyY6lTu17nLBmWs=; b=0Ee9UmSxnRtmnO4nuyBqkU6SDlSN+jte4EcMOR7GhhxJKc9GzYTpFt2FfBXbQ3BjWU YFiimK9x1IsTHiGc5K8hRCsSW17lJYVg9x3DWhj8IAdlP6y/YyHhiVujfdXyBWSNjpwW 67VWvwFgd43LSg6AvCtjvhJdNgtC3IgAcRkCil+aigrpK8tyCHjgY8ALEm7f8n7B6suI +JJ2F515nx1PcEdj7tH9OkiE/fAk2iSXe11OPM7u910wBiU7kfdSwPyXp8pe72SQVbtm H2xyN9hCCufw8dVcxjO1c7BFsWUw4ZYPkerWntAEiNysYydOaLprB2ctoqY/3/75DqzI +wyw== 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 o13-20020a17090608cd00b009930371a03csi603371eje.1001.2023.08.25.00.19.15; Fri, 25 Aug 2023 00:19:42 -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 S241562AbjHYGOA (ORCPT + 99 others); Fri, 25 Aug 2023 02:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241607AbjHYGNf (ORCPT ); Fri, 25 Aug 2023 02:13:35 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 353BB1FEC; Thu, 24 Aug 2023 23:12:58 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RX8g86vp7zJrr7; Fri, 25 Aug 2023 14:09:40 +0800 (CST) Received: from [10.67.111.205] (10.67.111.205) 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.31; Fri, 25 Aug 2023 14:12:47 +0800 Subject: Re: [PATCH v6 6/7] perf test: Add test case for record sideband events To: Ian Rogers CC: , , , , , , , , , , , , , , References: <20230821012734.18241-1-yangjihong1@huawei.com> <20230821012734.18241-7-yangjihong1@huawei.com> From: Yang Jihong Message-ID: Date: Fri, 25 Aug 2023 14:12:46 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Hello, On 2023/8/25 13:28, Ian Rogers wrote: > On Sun, Aug 20, 2023 at 6:30 PM Yang Jihong wrote: >> >> Add a new test case to record sideband events for all CPUs when tracing >> selected CPUs >> >> Test result: >> >> # ./perf test list 2>&1 | grep 'perf record sideband tests' >> 95: perf record sideband tests >> # ./perf test 95 >> 95: perf record sideband tests : Ok >> >> Signed-off-by: Yang Jihong >> Tested-by: Adrian Hunter >> --- >> tools/perf/tests/shell/record_sideband.sh | 44 +++++++++++++++++++++++ >> 1 file changed, 44 insertions(+) >> create mode 100755 tools/perf/tests/shell/record_sideband.sh >> >> diff --git a/tools/perf/tests/shell/record_sideband.sh b/tools/perf/tests/shell/record_sideband.sh >> new file mode 100755 >> index 000000000000..2ecf00011cb1 >> --- /dev/null >> +++ b/tools/perf/tests/shell/record_sideband.sh >> @@ -0,0 +1,44 @@ >> +#!/bin/sh >> +# perf record sideband tests >> +# SPDX-License-Identifier: GPL-2.0 >> + >> +set -e >> + >> +err=0 >> +perfdata=$(mktemp /tmp/__perf_test.perf.data.XXXXX) > > Could you add some kind of cleanup on trap function like: > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tree/tools/perf/tests/shell/record.sh?h=perf-tools-next#n26 > It'd be okay to do this as a follow up patch. > Okay, it'll be modified in the next version. Thanks, Yang