summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-09-08 10:42:21 +0200
committerMark Wielaard <mjw@redhat.com>2009-09-08 10:45:01 +0200
commit5a1c472ea889332ce6e16315ddd81fc6b51202cd (patch)
treec67a35dc2070326f65569277db15fa1de9bcd12f /tapsets.cxx
parent0957329e67f0d9612f50b66fdc07e3b3865963f4 (diff)
downloadsystemtap-steved-5a1c472ea889332ce6e16315ddd81fc6b51202cd.tar.gz
systemtap-steved-5a1c472ea889332ce6e16315ddd81fc6b51202cd.tar.xz
systemtap-steved-5a1c472ea889332ce6e16315ddd81fc6b51202cd.zip
PR4186 cont'd: Squash both EM_PPC and EM_PPC64 to powerpc.
* tapsets.cxx (validate_module_elf): Set expect_machine = "powerpc" for both EM_PPC and EM_PPC64 to match session architecture set in main.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 053344cf..ca3f1ecd 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -1604,11 +1604,8 @@ validate_module_elf (Dwfl_Module *mod, const char *name, base_query *q)
expect_machine2 = "x86_64";
break;
case EM_PPC:
- expect_machine = "ppc";
- if (! q->has_process) break; // 32-bit kernel/module
- /* FALLSTHROUGH */
case EM_PPC64:
- expect_machine2 = "ppc64";
+ expect_machine = "powerpc";
break;
case EM_S390: expect_machine = "s390"; break;
case EM_IA_64: expect_machine = "ia64"; break;