Vince, Could you try the attached patch? I could not compile but I think it should cover most issues.
On Thu, Jan 22, 2009 at 8:58 PM, Vince Weaver <[email protected]> wrote: > > On Wed, 21 Jan 2009, stephane eranian wrote: >> >> I am sorry about that. Unfortunately I don't have any MIPS systems >> handy (like you) >> and it is not easy to cross-compile user level stuff. >> Phil can probably help. > > I can provide accounts on the MIPS box in question if it would help. > > Complicating things is that on my machine it has a 64-bit kernel but a > 32-bit userspace. > >> Just post the error message, maybe it is going to ring a bell with me. > > The errors are below. > > I can patch around the first and replace pfmon_detect_unavail_pmcs() with > pfmon_detect_unavail_regs(). But if I comment out the offending breakpoint > lines and try to use the resulting pfmon it just gives 0 values for all > measured counters (though that could be a problem with the kernel too I > suppose). > > gcc -ggdb -g -Wall -Werror -D_REENTRANT -I/usr/local/include -DPFMON_DEBUG > -DDATADIR=\"/usr/local/share/pfmon\" -I. -I/usr/include/libelf -D_GNU_SOURCE > -DCONFIG_PFMON_MIPS64 -DPFMON_DEBUG -g -c pfmon_util_mips64.c > cc1: warnings being treated as errors > pfmon_util_mips64.c: In function "is_delay_slot": > pfmon_util_mips64.c:68: error: integer constant is too large for "long" type > pfmon_util_mips64.c: In function "pfmon_mips64_set_breakpoint": > pfmon_util_mips64.c:144: error: "pfmon_trigger_state_t" has no member named > "start" > pfmon_util_mips64.c:157: error: "pfmon_trigger_state_t" has no member named > "start" > pfmon_util_mips64.c:175: error: "pfmon_trigger_state_t" has no member named > "start" > pfmon_util_mips64.c: In function "pfmon_mips64_clear_breakpoint": > pfmon_util_mips64.c:198: error: "pfmon_trigger_state_t" has no member named > "start" > pfmon_util_mips64.c:206: error: "pfmon_trigger_state_t" has no member named > "start" > pfmon_util_mips64.c: In function "pfmon_resume_after_code_breakpoint": > pfmon_util_mips64.c:300: error: "pfmon_trigger_state_t" has no member named > "start" > pfmon_util_mips64.c: In function "pfmon_arch_initialize": > pfmon_util_mips64.c:325: error: implicit declaration of function > "pfmon_detect_unavail_pmcs" > pfmon_util_mips64.c: In function "pfmon_get_dlopen_hook": > pfmon_util_mips64.c:517: error: field "rd64" has incomplete type > pfmon_util_mips64.c:519: error: invalid application of "sizeof" to > incomplete type "struct r_debug" > pfmon_util_mips64.c:539: error: invalid application of "sizeof" to > incomplete type "struct r_debug" > make[1]: *** [pfmon_util_mips64.o] Error 1 > make[1]: Leaving directory `/opt/perfmon/pfmon-3.6/pfmon' > make: *** [all] Error 2 > >
pfmon-mips.diff
Description: Binary data
------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________ perfmon2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
