Skip to content

perf jitdump: Add riscv64 support

Eric Lin linux-perf-users linux-riscv lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyApplied
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Rebase on tag v5.18-rc2
- Show perf jitdump commands and dump in the commit message.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/1perf jitdump: Add riscv64 support.tools/perf/arch/riscv/Makefile tools/perf/util/genelf.h+4 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] perf jitdump: Add riscv64 support

This patch enable perf jitdump for riscv64 and it tested with V8 on qemu rv64.

Qemu rv64:

$ perf record -e cpu-clock -c 1000 -g -k mono ./d8_rv64 --perf-prof --no-write-protect-code-memory test.js
$ perf inject -j -i perf.data -o perf.data.jitted
$ perf report -i perf.data.jitted

Output:
To display the perf.data header info, please use --header/--header-only options.

Total Lost Samples: 0

Samples: 87K of event 'cpu-clock'
Event count (approx.): 87974000

Children Self Command Shared Object Symbol

....

     0.28%     0.06%  d8_rv64          d8_rv64                      [.] _ZN2v88i
nternal6WasmJs7InstallEPNS0_7IsolateEb
     0.28%     0.00%  d8_rv64          d8_rv64                      [.] _ZN2v88i
nternal10ParserBaseINS0_6ParserEE22ParseLogicalExpressionEv
     0.28%     0.03%  d8_rv64          jitted-112-76.so             [.] Builtin:
InterpreterEntryTrampoline
     0.12%     0.00%  d8_rv64          d8_rv64                      [.] _ZN2v88i
nternal19ContextDeserializer11DeserializeEPNS0_7IsolateENS0_6HandleINS0_13JSGlob
alProxyEEENS_33DeserializeInternalFieldsCallbackE
     0.12%     0.01%  d8_rv64          jitted-112-651.so            [.] Builtin:

CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit
....

Changed in v2:
- Rebase on tag v5.18-rc2
- Show perf jitdump commands and dump in the commit message.

Eric Lin (1):
perf jitdump: Add riscv64 support.

 tools/perf/arch/riscv/Makefile | 1 +
 tools/perf/util/genelf.h       | 3 +++
 2 files changed, 4 insertions(+)
Signature · 1 line
2.35.1