]> sourceware.org Git - systemtap.git/commitdiff
Recognize the arm64 registers in SDT_V3 format
authorWilliam Cohen <wcohen@redhat.com>
Fri, 21 Nov 2014 15:17:12 +0000 (10:17 -0500)
committerWilliam Cohen <wcohen@redhat.com>
Fri, 21 Nov 2014 15:17:12 +0000 (10:17 -0500)
The check for the arm64 architecture was missing, so systemtap was not
recognizing the arm64 registers.  This addition should allow systemtap
to find the various arguments being passed in by user-space markers.

tapsets.cxx

index 0b4e0d870c2a56c7dca59637e57343085f636ac7..9c5111015c1f42e8790b0e977174c7c6a6f7e9e1 100644 (file)
@@ -6234,7 +6234,8 @@ sdt_uprobe_var_expanding_visitor::try_parse_arg_register (target_symbol *e,
   // test for REGISTER
   // NB: Because PR11821, we must use percent_regnames here.
   string regexp;
-  if (elf_machine == EM_PPC || elf_machine == EM_PPC64 || elf_machine == EM_ARM)
+  if (elf_machine == EM_PPC || elf_machine == EM_PPC64
+     || elf_machine == EM_ARM || elf_machine == EM_AARCH64)
     regexp = "^(" + regnames + ")$";
   else
     regexp = "^(" + percent_regnames + ")$";
@@ -6319,7 +6320,7 @@ sdt_uprobe_var_expanding_visitor::try_parse_arg_offset_register (target_symbol *
 
   string regexp;
   int reg, offset1;
-  if (elf_machine == EM_ARM)
+  if (elf_machine == EM_ARM || elf_machine == EM_AARCH64)
     {
       regexp = "^\\[(" + regnames + ")(, #([+-]?[0-9]+)([+-][0-9]*)?([+-][0-9]*)?)?\\]$";
       reg = 1;
This page took 0.04514 seconds and 5 git commands to generate.