[PATCH] D117929: [XRay] Add support for RISCV

Ashwin Poduval via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 09:37:24 PDT 2023


ashwin98 updated this revision to Diff 552054.
ashwin98 added a reviewer: MaskRay.
ashwin98 added a comment.
Herald added a subscriber: sunshaoce.

Ok, I've tried to make the changes you've suggested @MaskRay , let me know if I've missed something.

On another note, I lost my previous qemu VM and have rebuilt LLVM with this patch in a new one; I am now getting the following issue with the XRay runtime:

SanitizerTool: CHECK failed: sanitizer_allocator_primary32.h:292 "((res)) < ((kNumPossibleRegions))" (0x7fff93a, 0x40000) (tid=24873)

A previous thread (https://reviews.llvm.org/D87580) suggests this might be a qemu issue, but I am using qemu-system-riscv64 (and not qemu user-mode.) However, I figured I'd check anyway.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117929/new/

https://reviews.llvm.org/D117929

Files:
  clang/lib/Driver/XRayArgs.cpp
  compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
  compiler-rt/lib/xray/CMakeLists.txt
  compiler-rt/lib/xray/xray_interface.cpp
  compiler-rt/lib/xray/xray_riscv.cpp
  compiler-rt/lib/xray/xray_trampoline_riscv32.S
  compiler-rt/lib/xray/xray_trampoline_riscv64.S
  compiler-rt/lib/xray/xray_tsc.h
  llvm/lib/CodeGen/XRayInstrumentation.cpp
  llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
  llvm/lib/Target/RISCV/RISCVSubtarget.h
  llvm/test/CodeGen/RISCV/xray-attribute-instrumentation.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117929.552054.patch
Type: text/x-patch
Size: 31455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230821/4304f54b/attachment-0001.bin>


More information about the cfe-commits mailing list