[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241016215139.212939-1-irogers@google.com>
Date: Wed, 16 Oct 2024 14:51:31 -0700
From: Ian Rogers <irogers@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>, Namhyung Kim <namhyung@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa <jolsa@...nel.org>,
Ian Rogers <irogers@...gle.com>, Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>, John Garry <john.g.garry@...cle.com>,
Will Deacon <will@...nel.org>, James Clark <james.clark@...aro.org>,
Mike Leach <mike.leach@...aro.org>, Leo Yan <leo.yan@...ux.dev>,
Yicong Yang <yangyicong@...ilicon.com>, Weilin Wang <weilin.wang@...el.com>,
Tim Chen <tim.c.chen@...ux.intel.com>, Thomas Richter <tmricht@...ux.ibm.com>,
Sumanth Korikkar <sumanthk@...ux.ibm.com>, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v4 0/7] CSV/JSON metric thresholds, fix printf modifiers
Metric thresholds are being computed for CSV and JSON output but not
displayed. Rename the color that encodes the threshold as enum values
and use to generate string constants for a json dictionary
value. Disable metric thresholds with CSV output.
Add printf attribute to functions in color.h that could support
it. Fix bad printf format strings that this detected.
v4. Drop CSV metric thresholds due to formatting variation on
hypervisors (broken counters) and not as detected by
tests/shell/stat+csv_output.sh.
v3. Rebase.
v2. Don't display metric-value for json output if there is no unit.
Ian Rogers (7):
perf color: Add printf format checking and resolve issues
perf stat: Fix/add parameter names for print_metric
perf stat: Display "none" for NaN with metric only json
perf stat: Drop metric-unit if unit is NULL
perf stat: Change color to threshold in print_metric
perf stat: Add metric-threshold to json output
perf stat: Disable metric thresholds for CSV and JSON metric-only mode
tools/perf/arch/x86/util/iostat.c | 2 +-
tools/perf/builtin-sched.c | 2 +-
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 8 ++
tools/perf/builtin-trace.c | 2 +-
.../tests/shell/lib/perf_json_output_lint.py | 5 +-
tools/perf/util/arm-spe.c | 2 +-
tools/perf/util/color.h | 9 +-
tools/perf/util/intel-bts.c | 2 +-
tools/perf/util/intel-pt.c | 2 +-
tools/perf/util/s390-cpumsf.c | 2 +-
tools/perf/util/s390-sample-raw.c | 6 +-
tools/perf/util/stat-display.c | 73 +++++++---
tools/perf/util/stat-shadow.c | 128 ++++++++++--------
tools/perf/util/stat.h | 16 ++-
15 files changed, 169 insertions(+), 96 deletions(-)
--
2.47.0.105.g07ac214952-goog
Powered by blists - more mailing lists