[PATCH] Add entry for ppc64le in arch list

Athira atrajeev@linux.vnet.ibm.com
Wed May 20 12:22:00 GMT 2015


A few tests fails in ppc64le with error:

========
parse error: expected 'probe', 'global', 'function', or '%{'^M
         saw: identifier 'ERROR' at <input>:22:43^M
      source:     %( arch == "ppc64le"            %? %: ERROR %)^M
                                                        ^^M
^M
1 parse error.^M
Pass 1: parse failed.  [man error::pass1]^M
FAIL: preprocessor basic ops
=========

This is because ppc64le is not added to arch list in systemtap.exp .
cmd_parse.exp also fails with similar error for arch.  Modifying the 
code for ppc64le.

Signed-off-by: Athira Rajeev <atrajeev@in.ibm.com>
---
  testsuite/lib/systemtap.exp | 1 +
  1 file changed, 1 insertion(+)

diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 8b99d37..fc91ca6 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -432,6 +432,7 @@ proc normalize_arch { arch } {
      if {$arch == "armv7l"} then {return "arm"}
      if {$arch == "armv7lh"} then {return "arm"}
      if {$arch == "aarch64"} then {return "arm64"}
+    if {$arch == "ppc64le"} then {return "powerpc"}
      return $arch
  }

-- 



More information about the Systemtap mailing list