Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp420995imn; Thu, 28 Jul 2022 05:03:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1swxdIgwGsCn+5alsvUT0pM6Mn4MsbkhMr4TZybyfJuxEqio/YO6Z4/a5U3B8sUjkwGfzQ1 X-Received: by 2002:a17:902:6b8b:b0:16c:e884:81ec with SMTP id p11-20020a1709026b8b00b0016ce88481ecmr25586849plk.163.1659009809872; Thu, 28 Jul 2022 05:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659009809; cv=none; d=google.com; s=arc-20160816; b=wI5Cw1teP6hx1V8T2vdJ887+53lEJm+1rCMC70TbGF293fH9r65ihgXYBrs4n+ekWs sN1EZfnJgP9GyPnGXgDcL4K5RL6sVCVYv+vTdNEES0KhZlSfsT+/3Z4JvUnHWxnNVCri nVhVOooV0LCMwQtsitQh8Jf5L2w3/njEuBF6Bk+rvYo7EVynxUldALeHy8Y00yxBhPnx BjsxVgvcq7wxq3Ga/wTZRaSyZcEeJUIvauGm00bI8OjuWJqTxMFyvc9FaWIEHFQIvPyd yAkOwpN2ZomfvCpCRE/bMqxVcfa6VfkoGe+m/Fp7sG5j4kVP9jXa42eHktmige42pumI QjEQ== 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=mQKJyGqrf6rhuV/rNk+defeQvECAxkFOeJM00U2qB5E=; b=oxSObuewDiZ5pqkrr0VXhKCSa62I50CEk4aByXQV5fadYuOy65GsAfVduAZtiqplFE GV9wjSnovr+COBBNt03CZRL7sctqcJBLPn8T+xygKJABY9C9KjQzYzClQRXTvl7db1tx cIhGR0jhthc2ubf0txF56rwcGzhUgVIJLRB30iOFQ6bwBAWW9rUgmrTVgv8VbOg1z3wo WVH8UkfACgkNpz5IGUFnPgLP/J9oT4upMTbvri9llhvYnpwJCz8jToYlS6ZrqYrXVTWV Kvo2HIz/72UhQB5qZ2j1AHLlyfYHUKuP9Kt0owrr+WNE2x5wsohrjfV5SvjsdbPDBQSu a/6A== 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 bg18-20020a056a02011200b00419a2dd0b3bsi929929pgb.374.2022.07.28.05.02.58; Thu, 28 Jul 2022 05:03: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 S236812AbiG1MBT (ORCPT + 99 others); Thu, 28 Jul 2022 08:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235664AbiG1MBS (ORCPT ); Thu, 28 Jul 2022 08:01:18 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADCEC1D6; Thu, 28 Jul 2022 05:01:16 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Ltpzg6SlXzWfZT; Thu, 28 Jul 2022 19:57:19 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 28 Jul 2022 20:01:08 +0800 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.2375.24; Thu, 28 Jul 2022 20:01:07 +0800 Subject: Re: [RFC v3 06/17] perf kwork: Implement perf kwork report To: Arnaldo Carvalho de Melo CC: , , , , , , , , References: <20220709015033.38326-1-yangjihong1@huawei.com> <20220709015033.38326-7-yangjihong1@huawei.com> From: Yang Jihong Message-ID: Date: Thu, 28 Jul 2022 20:01:07 +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: 7bit 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.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 Arnaldo, On 2022/7/27 22:04, Arnaldo Carvalho de Melo wrote: > Em Wed, Jul 27, 2022 at 08:39:33AM +0800, Yang Jihong escreveu: >> Hello, >> >> On 2022/7/27 1:40, Arnaldo Carvalho de Melo wrote: >>> Em Sat, Jul 09, 2022 at 09:50:22AM +0800, Yang Jihong escreveu: >>>> + >>>> +static void report_print_work(struct perf_kwork *kwork, >>>> + struct kwork_work *work) >>>> +{ >>>> + int ret = 0; >>>> + char kwork_name[PRINT_KWORK_NAME_WIDTH]; >>>> + char max_runtime_start[32], max_runtime_end[32]; >>> >>> Committer notes: >>> >>> - Add some {} for multiline for/if blocks >>> >>> - Return the calculated number of printed bytes in report_print_work, >>> otherwise soem compilers will complain that variable isn't used, e.g.: >>> >>> 2 92.64 almalinux:9 : FAIL clang version 13.0.1 (Red Hat 13.0.1-1.el9) >>> builtin-kwork.c:1061:6: error: variable 'ret' set but not used [-Werror,-Wunused-but-set-variable] >>> int ret = 0; >>> >>> >> OK, I'll fix it in next version. > > your work with these fixups is already at acme/perf/core: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core > > Please continue from there. Please let me know if I made some mistake. > > Thanks for working on this! > Thanks to these fixups. OK, I'll send fix patches according to review comments based on this branch. Regards, Jihong