linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] perf stat: Fix trailing comma when there is no metric unit
@ 2024-10-30 11:39 James Clark
  2024-10-30 11:39 ` [PATCH v2 1/2] " James Clark
  2024-10-30 11:39 ` [PATCH v2 2/2] perf stat: Also hide metric-units from JSON when event didn't run James Clark
  0 siblings, 2 replies; 6+ messages in thread
From: James Clark @ 2024-10-30 11:39 UTC (permalink / raw)
  To: linux-perf-users, acme, namhyung, irogers, tim.c.chen
  Cc: James Clark, Peter Zijlstra, Ingo Molnar, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Adrian Hunter, Liang, Kan,
	Yicong Yang, linux-kernel

The first commit is failing on Arm and I think the fix should stop more
trailing comma issues which keep happening.

The second one I just noticed when looking at it. I don't feel strongly
about it so not sure if we should do it or not, but seems like the empty
metric-units exclusion from the JSON should be consistent if we're going
to have it at all.

Changes since v1:

  * Don't skip printing when the metric-unit string is empty but pass
    NULL instead of an empty string.

James Clark (2):
  perf stat: Fix trailing comma when there is no metric unit
  perf stat: Also hide metric-units from JSON when event didn't run

 .../tests/shell/lib/perf_json_output_lint.py  |  14 +-
 tools/perf/util/stat-display.c                | 182 ++++++++++--------
 2 files changed, 107 insertions(+), 89 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-01 11:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 11:39 [PATCH v2 0/2] perf stat: Fix trailing comma when there is no metric unit James Clark
2024-10-30 11:39 ` [PATCH v2 1/2] " James Clark
2024-10-31  4:17   ` Ian Rogers
2024-11-01 11:09     ` James Clark
2024-10-30 11:39 ` [PATCH v2 2/2] perf stat: Also hide metric-units from JSON when event didn't run James Clark
2024-10-31  4:17   ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).