From: SourceForge.net <no...@so...> - 2012-11-19 22:50:00
|
Bugs item #3585871, was opened at 2012-11-09 14:25 Message generated for change (Comment added) made by maynardj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3585871&group_id=16191 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Resolution: Fixed Priority: 5 Private: No Submitted By: Maynard Johnson (maynardj) Assigned to: Maynard Johnson (maynardj) Summary: operf build fails: PERF_RECORD_MISC_GUEST_* not declared Initial Comment: The PERF_RECORD_MISC_GUEST_KERNEL and PERF_RECORD_MISC_GUEST_USER macros were not defined in perf_events until ~2.6.35 kernel version (I think). Attempts to build operf on vanilla kernel.org kernel headers between 2.6.31 and 2.6.35 will fail with the following error: operf_utils.cpp: In function ‘void __handle_sample_event(event_t*, u64)’: operf_utils.cpp:735: error: ‘PERF_RECORD_MISC_GUEST_KERNEL’ was not declared in this scope operf_utils.cpp:738: error: ‘PERF_RECORD_MISC_GUEST_USER’ was not declared in this scope We should add something to configure.ac to check for existence of these macros and then put some #ifdef's around the one spot in the code where they are found. ---------------------------------------------------------------------- >Comment By: Maynard Johnson (maynardj) Date: 2012-11-19 14:50 Message: I committed a fix for this problem today (see commit dbe24f5f0d98b1fe5517d2b137b4c59766e536ad). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3585871&group_id=16191 |