Package: qprof
Version: 0.5.1-4
Tags: patch

Hi,

qprof is failing to build on amd64 because SET_PC is not defined
for it.  I've attached a patch that should fix it.

I also ran a make check and let it run for 9 hours, after which I
stopped it.  I have no idea how long it should run, but to me
that seems rather long for just a test suite.  If this is normal,
I can run it for a longer time.


Kurt

--- ./src/prof_utils_libpfm2.c.old      2005-02-24 21:42:39.883847719 +0000
+++ ./src/prof_utils_libpfm2.c  2005-02-24 21:40:45.159219032 +0000
@@ -616,6 +616,10 @@
 # define SET_PC \
     struct sigcontext *sc = (struct sigcontext *) &si; \
     unsigned long pc = (AO_T)(sc->eip)
+#elif defined(__x86_64__)
+# define SET_PC \
+    struct sigcontext *sc = (struct sigcontext *) &si; \
+    unsigned long pc = (AO_T)(sc->rip)
 #elif defined(__ia64__)
 # define SET_PC \
     struct sigcontext *sc = (struct sigcontext *) scv; \
--- src/prof_utils_libpfm3.c.old        2005-02-24 22:45:07.624325482 +0100
+++ src/prof_utils_libpfm3.c    2005-02-24 22:45:50.407355402 +0100
@@ -695,6 +695,10 @@
 # define SET_PC \
     struct sigcontext *sc = (struct sigcontext *) &si; \
     unsigned long pc = (AO_T)(sc->eip)
+#elif defined(__x86_64__)
+# define SET_PC \
+    struct sigcontext *sc = (struct sigcontext *) &si; \
+    unsigned long pc = (AO_T)(sc->rip)
 #elif defined(__ia64__)
 # define SET_PC \
     struct sigcontext *sc = (struct sigcontext *) scv; \

Reply via email to