Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3014450pxy; Sun, 25 Apr 2021 11:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT6fItvVGiOv8Rh2eZ/1K0APL2URxLCNtnoNzyhs52bnG01GdguxIoRij3QU5TKGYRp1VT X-Received: by 2002:a17:90a:7893:: with SMTP id x19mr16895363pjk.3.1619373859258; Sun, 25 Apr 2021 11:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619373859; cv=none; d=google.com; s=arc-20160816; b=BzW0C1LV31jiGs84Ftg9br0LiQmJFp+DZJbGGIJxDuoiHBLRackFBk1Bzs4hYhOT8A qSCtpsNGgsbvYbL8Z5JU/xlp1M3aOACH8gnn/7bNGZd9DZrERAeCm07K+oC6nUlydzXf MCJ5dO81F8Oo3Kpyj+AhBq5drziLeVgyDgD0fg7vpqRwNdlud7ANgOPtgoZghoJvLDSP Lgiz/QXAGxkBEEQH2RduFJw2T0YxCmHZXBb4wdowc3ZvmfS4r78GBF74W+ez1YPFJCEo lRpXMfPBpFsaEC0WYF8fD5vTtW1HCis6t+frlbf2s4qzkJ9zmhM14yZ7Ga6vUScu2NDm 2G1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=GbUMS2JuOdFIzZ6GmHh2YemZvICksDJ7OE+zcwEY45M=; b=xCgBSRedJZnTzijZBQr4luIdCCPsqCrKdDpn+XQVu4BO7w/min34Jwz3r3MfVzS8Vh SZPqxr8pr1CDtZ3fHj6ko+nOIuo/Gx9we1bKZP2dnXNmSOzaNPdQHU9WB+Wws5WcUe0g bIpoQfP6c87tt/hdvsid8Y2OJvbIoF/SlqZ0l5ShFFzCQQP9jVG3d51SMUBU9IpeBlC1 UsUagf14Tf9EWfBD4dnxh0YOdc5uxJ04arDpv4thoXgsWGxYzxzdj3dm4IHkSK0oPe4z a9jcboJR8AG7/XOrSS0Xjw1TZMCzqzJFFwopwExv9bT9DqdDESrF/yr900yShD+cJy6R YiKA== ARC-Authentication-Results: i=1; mx.google.com; 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 v4si14819839pgr.472.2021.04.25.11.04.07; Sun, 25 Apr 2021 11:04:19 -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; 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 S230465AbhDYSEC convert rfc822-to-8bit (ORCPT + 99 others); Sun, 25 Apr 2021 14:04:02 -0400 Received: from mail-lj1-f176.google.com ([209.85.208.176]:39479 "EHLO mail-lj1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbhDYSEA (ORCPT ); Sun, 25 Apr 2021 14:04:00 -0400 Received: by mail-lj1-f176.google.com with SMTP id s9so3469675ljj.6 for ; Sun, 25 Apr 2021 11:03:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=q5J9xudjoo8hMtcXfHkZfDpyQujMZHxCp1k4/7VO9A0=; b=UCADVueLQK2J2LzMtxcgBzv3fobpDKLigXNTGK9IvqmHug0Z8O8PC5GHq5bBJJ/7pr CQcld2MNGAnxhMawibGXI/A5/nhPE/4GUUC/ssnUC9h7BXY+4tCirDjvI/MH64aNB2is 19vObkYjBwoRVR5drmit1esStAuIKKeznVfhMka5jmtoS1iI2S7F68hkovNpyJtHr9Kg Ss4jJ1SjFAxEh4c0P9+p85opq/A+Quf8OEqREbcNKogdVqZc03pJOQdVbDurpqf90jKM oZHYkt9iwnkmbION9/9TdwcZjVFTCbP9L7uUBGm3H0YqNew2Nt4LX8BfhUAP+urThtow DLHg== X-Gm-Message-State: AOAM531Y3cOcTsfSbWrXXjFSMIy2AgfszrD8LT9t6pPnOv1d/m3GIclG 4tHGZEN1TAN0mtbDz5UPKsaVcMvE2DV2GBk8K9U= X-Received: by 2002:a2e:9015:: with SMTP id h21mr9880223ljg.233.1619373797875; Sun, 25 Apr 2021 11:03:17 -0700 (PDT) MIME-Version: 1.0 References: <20210423182813.1472902-1-namhyung@kernel.org> <20210423184647.GN1401198@tassilo.jf.intel.com> In-Reply-To: From: Namhyung Kim Date: Mon, 26 Apr 2021 03:03:06 +0900 Message-ID: Subject: Re: [PATCHSET 0/5] perf report: Make --stat output more compact To: Jiri Olsa Cc: Andi Kleen , Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Mark Rutland , Alexander Shishkin , LKML , Ian Rogers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 24, 2021 at 9:23 PM Jiri Olsa wrote: > > On Fri, Apr 23, 2021 at 11:46:47AM -0700, Andi Kleen wrote: > > > So I added --skip-empty (and --no-skip-empty automatically) to suppres > > > the 0 output and add the event stats like below. > > > > I doubt we need the option for this. > > I agree this could be default, but I'm getting compilation fail: Actually the patch 5/5 makes it as default. I just wrote the example command line to see the difference explicitly. Anyway, will fix the build error. Thanks, Namhyung > > CC ui/browsers/hists.o > ui/browsers/hists.c: In function ‘hist_browser__handle_hotkey’: > ui/browsers/hists.c:699:29: error: ‘struct hists_stats’ has no member named ‘nr_lost_warned’ > 699 | (browser->hists->stats.nr_lost_warned != > | ^ > ui/browsers/hists.c:700:28: error: ‘struct hists_stats’ has no member named ‘nr_events’ > 700 | browser->hists->stats.nr_events[PERF_RECORD_LOST])) { > | ^ > ui/browsers/hists.c:701:25: error: ‘struct hists_stats’ has no member named ‘nr_lost_warned’ > 701 | browser->hists->stats.nr_lost_warned = > | ^ > ui/browsers/hists.c:702:26: error: ‘struct hists_stats’ has no member named ‘nr_events’ > 702 | browser->hists->stats.nr_events[PERF_RECORD_LOST]; > | ^ > ui/browsers/hists.c: In function ‘perf_evsel_menu__write’: > ui/browsers/hists.c:3419:40: error: ‘struct hists_stats’ has no member named ‘nr_events’ > 3419 | unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; > | ^ > ui/browsers/hists.c:3435:33: error: ‘struct hists_stats’ has no member named ‘nr_events’ > 3435 | nr_events += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; > | ^ > ui/browsers/hists.c:3444:26: error: ‘struct hists_stats’ has no member named ‘nr_events’ > 3444 | nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; > | ^ > ui/browsers/hists.c: In function ‘block_hists_browser__title’: > ui/browsers/hists.c:3650:41: error: ‘struct hists_stats’ has no member named ‘nr_events’ > 3650 | unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; > | ^ > > jirka > > > > > > But if you change it I would add the percentages after the absolute values. > > > > -Andi > > >