Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp320894imn; Wed, 27 Jul 2022 07:13:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLtSokERMJAxh/nkx2gGua1AL4lQvO63cpDFvH6xmTAGQyxRZCH1EO0FVycUER9mBvYVSw X-Received: by 2002:a05:6402:280f:b0:43b:d7f5:1401 with SMTP id h15-20020a056402280f00b0043bd7f51401mr23628932ede.346.1658931183455; Wed, 27 Jul 2022 07:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658931183; cv=none; d=google.com; s=arc-20160816; b=yWTHZ7Grd60V05OhsUYv+aMPec3a/qZKOkkJu6aXqxf/V7FCiUhhOYNwknQ//Dezjm f0JIVkxum275tog5eNRmjazL5B2xPrFTzXi5IfYCikEy+ZZZUpIi/EzuH2gimxG7HnBz 7AIVXpIA21cVPh+cRP//a+tR/yIiXy9P3vBDZYxPyFj4mRVi9Mk0LLTPsyeFi3R7e5N9 cRLCA2tD+qW8Ai4kDC1phsjZM7AIVzH3beFFAm4kxovXsuQ7cY9qThIlZZ8oDfBC2/k+ DgXd5MAYMKcUsPwg0aFw+E01sn/uxeE9/3ErbH29jFm7oidMTUxZUdvqqBtek0X+y+VA ONNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9DYO7qdsJHEnr98bGVU1FqPse0Hyc4rY5+5ffg7Rw18=; b=KAjqDT6yOdhBtOsegJiMzwAWSoaUm36jnJ4tOKAtbdKzUY+eRT0QUIsVA4Kd4F56XT kYku+HgSpwqVkzgjrEQ4FF43gUI8J+lyRPysq8jycmYN47QNPGZPXhS95JHuY7fJyDfO Pg+rDXol1CPQaaCOeJFfzSdUSI+8nPiqOdcYVxgOTZjGgdiZhcH/f75kUAvpDC+5dTL3 DbpUmzHUZ22DckQVI2l3B0xZBmWP7XPrOwjQ+WFkGDaeSuLKjNtEZxgM5kXcrbCJc6xy iyyui3BZ1EBe7j1TbfPUYE5xymWQyizoEsTSK7tbNkRqMONqhxJO/ecYGZoI7JTKSd+m 2nig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iKCtRLWf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b006fe8fdac65dsi19017324ejc.745.2022.07.27.07.12.37; Wed, 27 Jul 2022 07:13:03 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iKCtRLWf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232851AbiG0OEm (ORCPT + 99 others); Wed, 27 Jul 2022 10:04:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbiG0OEk (ORCPT ); Wed, 27 Jul 2022 10:04:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD76515FC7; Wed, 27 Jul 2022 07:04:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6F013617C0; Wed, 27 Jul 2022 14:04:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7895C433C1; Wed, 27 Jul 2022 14:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658930678; bh=O6jeZVLKYQMWPi3PKSOn064mNnD47HdvIqglROSSWAo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iKCtRLWfM+8Rrgzm3doB5vIqySsG+YUcPS1Ge/iClPuQsripsOYXN90RaNJ5CwR3c 0FNkbeYPwuo0fSDV586zvxXkUlHAhkZlxh//dfZ9qtf7R60w3qwaKcBT1LjrXdF9Lf iqEUbGXx47Z7w97SOCKi0+lYfgkmMCqcL7CFYnnMsCgDoMavosU4t3M+dkxEdLxtdb cBl6Yc22NTmJ0CWUOqwJQE7Ag3gCbgwN2iibuSq5fVtbquyMjR5xn2b4gWlRTSLJE6 mLG09+NXpl/9qgSaPeja8aYm5FP61mHe9tnfaz31/VvJ3fYpD9Hpfb4d2k4w6DGBmB 16JClnZcbsXsA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2760F405DD; Wed, 27 Jul 2022 11:04:35 -0300 (-03) Date: Wed, 27 Jul 2022 11:04:35 -0300 From: Arnaldo Carvalho de Melo To: Yang Jihong Cc: peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, pc@us.ibm.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [RFC v3 06/17] perf kwork: Implement perf kwork report Message-ID: References: <20220709015033.38326-1-yangjihong1@huawei.com> <20220709015033.38326-7-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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! - Arnaldo