Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp102561pxa; Wed, 26 Aug 2020 06:03:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsD3FywhktiI13KSDV746GiWNoAs5eg8+Pl0INl7Cnar9mwC5mdr2O8OZoVEqaXPzeC8T3 X-Received: by 2002:a50:fc18:: with SMTP id i24mr14573681edr.176.1598446990447; Wed, 26 Aug 2020 06:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598446990; cv=none; d=google.com; s=arc-20160816; b=OSauFMgnIRr7YYz0ZRZJfTFfWjEPOBLi10bc93oV5YyTGlfRLlV5fQmzPUiSXqTsuT xzG34iSoWYOQPa9z1GVJcWwyJG8fw6XHtub24zVQ4/PVfw5oaw4Oj6S+AvxrvS+YDq0W D9JnqOfINiAJPci+AouEYMdO9jEGWQWQnjUBaAD826VgJgc6uyvF0x2NaJTPW3pzlnQ5 Wj5Nkmu+j9kV1C132+NaBOKZIgjucaAdhlpgyhEmZw/WXeF2Oh3/YXo/m7HYR2ckIK1U rfEXno2oMW2bER4eUll0XUmpL5Q5BOrLgrm16lvbzIYlhl+d6chc4rcdkeoh7c3gEo1L F+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=koQrPyF3lU29AwyhxGPmQLEdkcp9WQz+E2jeISu6ARM=; b=sWFA/UgAMqSBffv0tht+urIhsTeU5HdN+pNIfvllp8FokJRcEkyXxWoavyJMettOm+ /AGZvHBZKRdufQ1Wr3JsPanGnA0T6WNz6M+L608k/D53GNKsef6OZHzCdkqj0QfRchQF MhvC9AYsSZg2UOGr9B+zJoSCrHxDfs1WO78T4Stx1gOxhVAlxl1ee8yc7i8/5BTo82R+ 8mIZ7gbSJUJTyFtqNxTADHNfYexveXEmvPmExcJMuIMPO4RxkD9FQm1/snELQTmJdrcz 7ePtg1ORL+G8RkqOK8pn+PtQe1WMvldjwaI0PeYl1DnvwsXs3Eip/e0Fu6mW7pTUSXvB g4OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wQEodM1+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz6si1620814edb.254.2020.08.26.06.02.41; Wed, 26 Aug 2020 06:03:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wQEodM1+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730113AbgHZNAR (ORCPT + 99 others); Wed, 26 Aug 2020 09:00:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728977AbgHZNAF (ORCPT ); Wed, 26 Aug 2020 09:00:05 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B7992080C; Wed, 26 Aug 2020 13:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598446805; bh=IWtrVErsNt6biC0nU1M0P0Qygjeyy2+q3KfSsdSxkWs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wQEodM1+P3RE3vRwZe7NXLBYax59zSpUQettpNZkIZoxD716uYg5Y5dr9ygkgcHjM LWkQwKSuXf8I3r9R3XC4g3l++FvC9PSokP/AXKlm9mD65LGE8kl1GXp0xBjoONt9Zg 7c1c2LddBk9KWYIuXi54lB7MgG0vUI3uuo0OOsxU= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 46B4040D3D; Wed, 26 Aug 2020 10:00:03 -0300 (-03) Date: Wed, 26 Aug 2020 10:00:03 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Thomas Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH] perf stat: Fix s390x compile error on F32 utils/stat-display.c Message-ID: <20200826130003.GE1059382@kernel.org> References: <20200825063304.77733-1-tmricht@linux.ibm.com> <20200825071442.GB631468@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200825071442.GB631468@krava> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Aug 25, 2020 at 09:14:42AM +0200, Jiri Olsa escreveu: > On Tue, Aug 25, 2020 at 08:33:04AM +0200, Thomas Richter wrote: > > SNIP > > > diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c > > index 57d0706e1330..cbe836649f84 100644 > > --- a/tools/perf/util/stat-display.c > > +++ b/tools/perf/util/stat-display.c > > @@ -117,12 +117,11 @@ static void aggr_printout(struct perf_stat_config *config, > > cpu_map__id_to_die(id), > > config->csv_output ? 0 : -3, > > cpu_map__id_to_cpu(id), config->csv_sep); > > - } else { > > + } else if (id > -1) > > fprintf(config->output, "CPU%*d%s", > > config->csv_output ? 0 : -7, > > evsel__cpus(evsel)->map[id], > > config->csv_sep); > > - } > I think we want multiple if lines within { } but > scripts/checkpatch.pl does not scream about this, so leaving this to > Arnaldo ;-) Yeah, I removed the removal of the {} for a multiline else block, added your Acked-by, thanks, - Analdo > Acked-by: Jiri Olsa > > thanks, > jirka > > > break; > > case AGGR_THREAD: > > fprintf(config->output, "%*s-%*d%s", > > -- > > 2.26.2 > > > -- - Arnaldo