]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
src/stackprof.cxx: one more piece to enable arm
authorSerhei Makarov <serhei@serhei.io>
Fri, 20 Mar 2026 18:32:36 +0000 (14:32 -0400)
committerSerhei Makarov <serhei@serhei.io>
Fri, 20 Mar 2026 18:32:36 +0000 (14:32 -0400)
src/stackprof.cxx

index a941357a1981e5bebd349fb1469cbbc477ca979e..aedddd092ab2a9d9e56826f59b6c60f649196f99 100644 (file)
@@ -783,6 +783,7 @@ PerfReader::PerfReader(perf_event_attr* attr, PerfConsumer* consumer, int pid)
   int em = EM_NONE;
   if (strcmp(u.machine, "x86_64") == 0) em = EM_X86_64;
   else if (strcmp(u.machine, "i686") == 0 || strcmp(u.machine, "i386") == 0) em = EM_386;
+  else if (strcmp(u.machine, "aarch64") == 0 || strcmp(u.machine, "armv7l")) em = EM_ARM;
   else {
     cerr << "Unsupported architecture: " << u.machine << endl;
     exit(1);