]> Gentwo Git Trees - linux/.git/commit
perf tools: Remove a trailing newline in the event terms
authorNamhyung Kim <namhyung@kernel.org>
Tue, 2 Dec 2025 23:01:31 +0000 (15:01 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 00:02:33 +0000 (16:02 -0800)
commit441863ae3de61dd813049a120e5656df2e210a4b
treead13653986af5487d8e55d6a7b95d08628fafcee
parent267c2e633af6e9461477bed91e428993f8b36ee8
perf tools: Remove a trailing newline in the event terms

So that it can show the correct encoding info in the JSON output.

  $ perf list -j hw
  [
  {
          "Unit": "cpu",
          "Topic": "legacy hardware",
          "EventName": "branch-instructions",
          "EventType": "Kernel PMU event",
          "BriefDescription": "Retired branch instructions [This event is an alias of branches]",
          "Encoding": "cpu/event=0xc4/"
  },
  ...

Reviewed-by: Ian Rogers <irogers@google.com>
Suggested-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/pmu.c