Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14396789rwd; Sat, 24 Jun 2023 19:13:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7rufoIBxTYiY+4bGiZItj+eDiAD8BL78U7KB7DVR3wc2Y33fljQkKKsRNmgnSJd1Kh7370 X-Received: by 2002:a17:90a:df98:b0:25e:3c2b:37d1 with SMTP id p24-20020a17090adf9800b0025e3c2b37d1mr24909288pjv.39.1687659209339; Sat, 24 Jun 2023 19:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687659209; cv=none; d=google.com; s=arc-20160816; b=dlxKCa3LLO03gAo5ZlPQMHkFTjbacK6zkLvqClqAEsJVRciZUg8FEzYviOb2fUEyb3 VVw6ZDDpJ7Z9UW82uXIJQtoBWy7iSAORAnVhNEshYw4DO22zOFr2OHTmtmNx5S9TQWrx JYFVMOLnoTmsn7VjUJhCp7iKP5LJFkyvSUqnql2guES7sl1I5KxbbHssKF4SPBkpQXL8 y1AU7hoBKjZM2UJ9LjqrHb7aiIId4ppUDzxJbQdwBOIgvbQUx6PfeCFfCIPkrZQy1LvG P8z5OEnqMctrjY5tNVpgpm2Kx9D5MZ2sKLq86+ZUMC8atlzX8/jhE3NBSFGhfiF1RXn2 2xmw== 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=eIApsDrDtpzQFgrYUmt3+Dx/P7lPdmTnl6PnKdyPSbU=; fh=YUnQLJG8dDiA7xSjQUkasVD1g800wih/L3Y9wtdGwNw=; b=BoSiq5X9rfncG9pkh6jO0YXHSL5jp5ulXtYPzAvMLRM2qUSeef+2rxzWtfpRqdN4au KL97dsGf509HcJ/r7RShqAD6mqZY4Jf9lGdryeq+CtxDpVcOeA7VXE8avwBWTzhxZEsn F6013nsiO+zdNboZDcEGvJqIRsSaFkNBty0YyXsP4OLn1c2rDT2RlraUI1CYZa5NN1j3 JeIMFSbz21/TDtwtXpIu6M4uti2Vz/hqPnTNgD5Wgupce4eLfI5g51ysgfYDN1JWJbEj bxi6jvVMJF7FKWJ7zOYICxEGPjfY1eRJBian6U2j01O1KcaKf/HtO0L3ANgUKs1noctw iXGA== 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 3-20020a17090a01c300b00259be05b1eesi4422925pjd.138.2023.06.24.19.13.17; Sat, 24 Jun 2023 19:13:29 -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 S230189AbjFYBid (ORCPT + 99 others); Sat, 24 Jun 2023 21:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjFYBic (ORCPT ); Sat, 24 Jun 2023 21:38:32 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 255AAA8; Sat, 24 Jun 2023 18:38:31 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QpYV32r8kzLmwb; Sun, 25 Jun 2023 09:36:27 +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.27; Sun, 25 Jun 2023 09:38:28 +0800 Subject: Re: [PATCH v5 4/4] perf tools: Add printing perf_event_attr config symbol in perf_event_attr__fprintf() To: Namhyung Kim CC: , , , , , , , , , , , References: <20230623054416.160858-1-yangjihong1@huawei.com> <20230623054416.160858-5-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <2654189b-0804-305a-be06-3234f39f0403@huawei.com> Date: Sun, 25 Jun 2023 09:38:27 +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: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 Hello, On 2023/6/24 13:28, Namhyung Kim wrote: > Hello, > > On Thu, Jun 22, 2023 at 10:46 PM Yang Jihong wrote: >> >> When printing perf_event_attr, always display perf_event_attr config and >> its symbol to improve the readability of debugging information. >> > > [SNIP] >> + >> +#ifdef HAVE_LIBTRACEEVENT >> +static void __p_config_tracepoint_id(char *buf, size_t size, u64 value) >> +{ >> + char *str = tracepoint_id_to_name(value); > > This makes the python module import test failing due to the > undefined symbol. I'll fix it by adding a dummy function in > util/python.c file. But next time, please run `perf test` first > and make sure you don't break anything. Thanks for the correction. Running `perf test` on my environment has only one testcase for python: 19:'import perf' in python: Ok The result is OK. The possible cause is that some libraries are missing in my environment. As a result, other Python tests are not executed. I'll check them first. Thanks, Yang