]> sourceware.org Git - systemtap.git/commitdiff
Correct RISC-V handling of SDT markers and document their format.
authorWilliam Cohen <wcohen@redhat.com>
Tue, 14 Sep 2021 02:01:41 +0000 (10:01 +0800)
committerWilliam Cohen <wcohen@redhat.com>
Mon, 20 Sep 2021 01:20:04 +0000 (21:20 -0400)
tapsets.cxx

index ef6fb19d90a98164714b2b2afd3d2352c145786e..2776d622c9e9cff498a274fea8e3091beeccb1d2 100644 (file)
@@ -7061,7 +7061,8 @@ sdt_uprobe_var_expanding_visitor::try_parse_arg_register (target_symbol *e,
   // NB: Because PR11821, we must use percent_regnames here.
   string regexp;
   if (elf_machine == EM_PPC || elf_machine == EM_PPC64
-     || elf_machine == EM_ARM || elf_machine == EM_AARCH64)
+     || elf_machine == EM_ARM || elf_machine == EM_AARCH64
+     || elf_machine == EM_RISCV)
     regexp = "^(" + regnames + ")$";
   else
     regexp = "^(" + percent_regnames + ")$";
@@ -7444,6 +7445,7 @@ sdt_uprobe_var_expanding_visitor::visit_target_symbol_arg (target_symbol *e)
       // arm    #N      rR  [rR]     [rR, #N]
       // arm64  N       rR  [rR]     [rR, N]
       // mips   N       $r           N($r)
+      // riscv  N       r            N(r)
 
       expression* argexpr = 0; // filled in in case of successful parse
 
This page took 0.038841 seconds and 5 git commands to generate.