]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf jevents: Support parsing negative exponents
authorIan Rogers <irogers@google.com>
Tue, 2 Dec 2025 17:50:02 +0000 (09:50 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 00:12:49 +0000 (16:12 -0800)
commit826650f76e6a634ae6e92f5f7341087b12bda4d0
treedcf4dadf87a40266492ea6cdbe98d63c0c4deb77
parente90c66c37c646962d5a7e525f5e04c75ea31f167
perf jevents: Support parsing negative exponents

Support negative exponents when parsing from a json metric string by
making the numbers after the 'e' optional in the 'Event' insertion fix
up.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/pmu-events/metric.py
tools/perf/pmu-events/metric_test.py