Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8132896rwb; Wed, 23 Nov 2022 16:11:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4MhftubjkxhloKggp8gimqCLeut2mReRVTC4p8lpHJb6t+WMzTibH6fOfVBf/pxWfSY/B8 X-Received: by 2002:a17:906:d281:b0:782:7790:f132 with SMTP id ay1-20020a170906d28100b007827790f132mr10159539ejb.649.1669248660601; Wed, 23 Nov 2022 16:11:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669248660; cv=none; d=google.com; s=arc-20160816; b=Qplk6Cq5OGn2JmKGFTPDC+3QdIdnkKD7W+sKuz9aqb6OOlyXLCthdu4fq2Vmtkz0gD u2scAeU0FR/7ybtnKGqlxNGzajMx+4bVva0vHgPTLJd8J4g31Og9xjAocZLyC/kG8IPf 6LGFx4cL+FYsK9RyQm8bQYK7Jk/bB7V7qVcQkDHizG1kRBubSogJSzIVgaY7PfvoT7sF c9nrlIMH48YB4SpamXyfXCDkmzAi+vuOgZRp2SbV3blZVwEYNcGQx/tJUNnEjkpiMsZv tCqLnaWlP62Yfz2W4QyhGoxp1uJUZ9tv1tZ7x/qwazMt3Ni8BxNhq56vIdNCzRrEGY3V FO3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=70Ny9DI7+FCGlZC99ZMX0gprkrrRN/2B6ssSCnxJ3SQ=; b=ikK7QT+fyK6QppOZTMFXKW2Q9o/F7iwT5Hfse4diy+WKLRGX/xfn1tqV2i9dcUBt+G Hr1rsXlSBCIAT5v2FlX60BkHd95ySYlOgkVNXWurd0hFYYe3j3zA1XWFDWuH59iar8jN 5kExQWsChF97E2zTtwvYohEe6DHhJxrAYmQAsRdLjfBNL8mpkcr73p2NEQ9UNrvxTNZG UBrDZEbjd9Chuq/QNuO9YGc+KHRbrQCrR4RAHxADWGK9EWy/ggHQ6zku7cjqlO5ECkXd ORdBExdDxu4deIT0j/p8T3e2aWYMKJVAlxXAAoyEwlMgJYh748xfu8zUsGygZqmrlo8Q +r+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="Yh/Rfw7+"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v8-20020a170906b00800b0078261fd56efsi12740155ejy.571.2022.11.23.16.10.38; Wed, 23 Nov 2022 16:11:00 -0800 (PST) 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=@google.com header.s=20210112 header.b="Yh/Rfw7+"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229898AbiKWXUb (ORCPT + 89 others); Wed, 23 Nov 2022 18:20:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiKWXU2 (ORCPT ); Wed, 23 Nov 2022 18:20:28 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5327511E70F for ; Wed, 23 Nov 2022 15:20:27 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id i12so46712wrb.0 for ; Wed, 23 Nov 2022 15:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=70Ny9DI7+FCGlZC99ZMX0gprkrrRN/2B6ssSCnxJ3SQ=; b=Yh/Rfw7+88BOigs5W1OnTsmT29XFTLvJ0nNVz4V4Rljd1J72CQqBxv1wXFiWvgDXaJ OWJ4GnY7FkhvCf0hlIVBXqf446VkMLwkf5lyPUJIFPDG6yW+aTRa4eNXR0cirVIXEVeX 9ZTWDrC0kbY8kQgt2wBrFHIgg/Qw7Wx4udDRjAdQV/WaDVkR2MsRNbwEJDlTVvsFTRLF VPHq3P0XuhbpDMUc4Q5dqJArq40SRqj8wE+ZAUTATmsrm1Wrfl7j1+9cWjGQvhhQRuC4 XvObc2Z5ZJsJqAFvlMT8qNkXq3vyxvWOe/WRWu0SVc/89m3JQ/sWJCueI8DppXekMxzQ 577Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=70Ny9DI7+FCGlZC99ZMX0gprkrrRN/2B6ssSCnxJ3SQ=; b=h2APqv1tdDLp3yzErNX6bYzjQ46zCisKSTLCjtQbe2mcw3JtTBzBrfEasSQFSI2ZAB 09cugv0EIJgvf8sjDiaIrMKjEsveBCGBpgxchOAIHQc0CVOQFa1EAz9mkdIEe9AUvPEY S4wZ8KWTVz3pdWE2isrrA9zGz03USvPHYvpBo0BWrFdWhEdjq/1BKimWSgiM42UAZ1Jm lYxCfhe9OdcgxkkOSbgIWIFzBwILiaNGnOJiW7hNG1tZ9Z3+teVM+9S0iEZJY4HUujBr Lc3dTXyBr1NsTiuxbOif3fkNyLMNIOtLnHXi4vWrrg2P2Z/5P3+5wMOowwp+EgWD+j13 Nbmg== X-Gm-Message-State: ANoB5plI5IMrBIPXVmr6MBGqGAwE17WuvppRlwSdoDzmIJezm2so175t 0+xWNKVzglirHYfjxDT6zrrz/3Pqt1LjW3GkZKOtz4GYdb8= X-Received: by 2002:adf:f944:0:b0:236:8f54:f1f4 with SMTP id q4-20020adff944000000b002368f54f1f4mr18763863wrr.654.1669245625634; Wed, 23 Nov 2022 15:20:25 -0800 (PST) MIME-Version: 1.0 References: <20221123180208.2068936-1-namhyung@kernel.org> <20221123180208.2068936-2-namhyung@kernel.org> In-Reply-To: <20221123180208.2068936-2-namhyung@kernel.org> From: Ian Rogers Date: Wed, 23 Nov 2022 15:20:12 -0800 Message-ID: Subject: Re: [PATCH 01/15] perf stat: Fix cgroup display in JSON output To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Adrian Hunter , linux-perf-users@vger.kernel.org, Kan Liang , Zhengjun Xing , James Clark , Athira Jajeev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Wed, Nov 23, 2022 at 10:02 AM Namhyung Kim wrote: > > It missed the 'else' keyword after checking json output mode. > > Fixes: 41cb875242e7 ("perf stat: Split print_cgroup() function") > Signed-off-by: Namhyung Kim Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/stat-display.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c > index f5501760ff2e..46e90f0bb423 100644 > --- a/tools/perf/util/stat-display.c > +++ b/tools/perf/util/stat-display.c > @@ -175,7 +175,7 @@ static void print_cgroup(struct perf_stat_config *config, struct cgroup *cgrp) > > if (config->json_output) > print_cgroup_json(config, cgrp_name); > - if (config->csv_output) > + else if (config->csv_output) > print_cgroup_csv(config, cgrp_name); > else > print_cgroup_std(config, cgrp_name); > -- > 2.38.1.584.g0f3c55d4c2-goog >